QGyroscopeReading#

The QGyroscopeReading class represents one reading from the gyroscope sensor. More

Inheritance diagram of PySide6.QtSensors.QGyroscopeReading

Synopsis#

Properties#

  • x - The angular velocity around the x axis

  • y - The angular velocity around the y axis

  • z - The angular velocity around the z axis

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

QGyroscopeReading Units#

The reading contains 3 values, measured in degrees per second that define the movement of the device around the x, y and z axes. Unlike QRotationReading , the values represent the current angular velocity rather than a fixed rotation. The measurements are in degrees per second.

../../_images/sensors-coordinates3.jpg
class PySide6.QtSensors.QGyroscopeReading(parent)#
Parameters:

parentPySide6.QtCore.QObject

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtSensors.QGyroscopeReading.x: float#

This property holds the angular velocity around the x axis..

Measured as degrees per second.

See also

QGyroscopeReading Units

Access functions:
  • x ()

property PᅟySide6.QtSensors.QGyroscopeReading.y: float#

This property holds the angular velocity around the y axis..

Measured as degrees per second.

See also

QGyroscopeReading Units

Access functions:
  • y ()

property PᅟySide6.QtSensors.QGyroscopeReading.z: float#

This property holds the angular velocity around the z axis..

Measured as degrees per second.

See also

QGyroscopeReading Units

Access functions:
  • z ()

PySide6.QtSensors.QGyroscopeReading.setX(x)#
Parameters:

x – float

Sets the angular velocity around the x axis to x.

See also

x()

PySide6.QtSensors.QGyroscopeReading.setY(y)#
Parameters:

y – float

Sets the angular velocity around the y axis to y.

See also

y()

PySide6.QtSensors.QGyroscopeReading.setZ(z)#
Parameters:

z – float

Sets the angular velocity around the z axis to z.

See also

z()

PySide6.QtSensors.QGyroscopeReading.x()#
Return type:

float

See also

setX()

Getter of property x .

PySide6.QtSensors.QGyroscopeReading.y()#
Return type:

float

See also

setY()

Getter of property y .

PySide6.QtSensors.QGyroscopeReading.z()#
Return type:

float

See also

setZ()

Getter of property z .