Skip to content

AccelerometerReadingEvent 继承自: Event['Accelerometer']

Discrete reading from an accelerometer. Accelerometers measure the velocity of the device. Note that these readings include the effects of gravity. Put simply, you can use accelerometer readings to tell if the device is moving in a particular direction.

属性 ​

名称类型默认值说明
xfloatrequiredAcceleration along the X axis, in m/s^2.
yfloatrequiredAcceleration along the Y axis, in m/s^2.
zfloatrequiredAcceleration along the Z axis, in m/s^2.
timestampdatetimerequiredEvent timestamp.

关注我,学习大模型、大数据、Python等热门技术。