主题
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.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
x | float | required | Acceleration along the X axis, in m/s^2. |
y | float | required | Acceleration along the Y axis, in m/s^2. |
z | float | required | Acceleration along the Z axis, in m/s^2. |
timestamp | datetime | required | Event timestamp. |