Skip to content

AccelerometerReadingEvent

Inherits: 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.

Properties

  • timestamp(int) –

    Event timestamp, expressed in microseconds since epoch.

  • x(float) –

    Acceleration along the X axis, in m/s^2.

  • y(float) –

    Acceleration along the Y axis, in m/s^2.

  • z(float) –

    Acceleration along the Z axis, in m/s^2.

Properties#

timestamp instance-attribute #

timestamp: int

Event timestamp, expressed in microseconds since epoch.

x instance-attribute #

x: float

Acceleration along the X axis, in m/s^2.

y instance-attribute #

y: float

Acceleration along the Y axis, in m/s^2.

z instance-attribute #

z: float

Acceleration along the Z axis, in m/s^2.