内容表

上一话题

QAccelerometerFilter

下一话题

QAltimeter

QAccelerometerReading

QAccelerometerReading class reports on linear acceleration along the X, Y and Z axes. 更多

Inheritance diagram of PySide2.QtSensors.QAccelerometerReading

概要

函数

详细描述

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.

class QAccelerometerReading ( parent )
参数

parent QObject

PySide2.QtSensors.QAccelerometerReading. setX ( x )
参数

x qreal

Sets the acceleration on the X axis to x .

另请参阅

x()

PySide2.QtSensors.QAccelerometerReading. setY ( y )
参数

y qreal

Sets the acceleration on the Y axis to y .

另请参阅

y()

PySide2.QtSensors.QAccelerometerReading. setZ ( z )
参数

z qreal

Sets the acceleration on the Z axis to z .

另请参阅

z()

PySide2.QtSensors.QAccelerometerReading. x ( )
返回类型

qreal

另请参阅

setX()

PySide2.QtSensors.QAccelerometerReading. y ( )
返回类型

qreal

另请参阅

setY()

PySide2.QtSensors.QAccelerometerReading. z ( )
返回类型

qreal

另请参阅

setZ()