class QAccelerometerReading

The QAccelerometerReading class reports on linear acceleration along the X, Y and Z axes. More

Inheritance diagram of PySide6.QtSensors.QAccelerometerReading

Synopsis

Properties

  • xᅟ - The acceleration on the X axis

  • yᅟ - The acceleration on the Y axis

  • zᅟ - The acceleration on the Z axis

Methods

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

QAccelerometerReading Units

The scale of the values is meters per second squared. The axes are arranged as follows.

../../_images/sensors-coordinates2.jpg

A monoblock device sitting at rest, face up on a desk will experience a force of approximately 9.8 on the Z axis (ie. towards the roof). This is the proper acceleration the device experiences relative to freefall.

Note

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

property xᅟ: float

This property holds the acceleration on the X axis..

The scale of the values is meters per second squared.

See also

QAccelerometerReading Units

Access functions:
property yᅟ: float

This property holds the acceleration on the Y axis..

The scale of the values is meters per second squared.

See also

QAccelerometerReading Units

Access functions:
property zᅟ: float

This property holds the acceleration on the Z axis..

The scale of the values is meters per second squared.

See also

QAccelerometerReading Units

Access functions:
__init__(parent)
Parameters:

parentQObject

setX(x)
Parameters:

x – float

Sets the acceleration on the X axis to x.

See also

x()

setY(y)
Parameters:

y – float

Sets the acceleration on the Y axis to y.

See also

y()

setZ(z)
Parameters:

z – float

Sets the acceleration on the Z axis to z.

See also

z()

x()
Return type:

float

See also

setX()

Getter of property xᅟ .

y()
Return type:

float

See also

setY()

Getter of property yᅟ .

z()
Return type:

float

See also

setZ()

Getter of property zᅟ .