Skip to content

UserAccelerometerReadingEvent 继承自: Event['UserAccelerometer']

Like AccelerometerReadingEvent, this is a discrete reading from an accelerometer and measures the velocity of the device. However, unlike AccelerometerReadingEvent, this event does not include the effects of gravity.

属性 ​

名称类型默认值说明
xfloatrequiredLinear acceleration along the X axis, gravity removed, in m/s^2.
yfloatrequiredLinear acceleration along the Y axis, gravity removed, in m/s^2.
zfloatrequiredLinear acceleration along the Z axis, gravity removed, in m/s^2.
timestampdatetimerequiredEvent timestamp.

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