Skip to content

GyroscopeReadingEvent

Inherits: Event['Gyroscope']

Discrete reading from a gyroscope.

Gyroscope sample containing device rotation rate (rad/s) around each axis plus the microsecond timestamp.

Properties

  • timestamp(int) –

    Event timestamp, expressed in microseconds since epoch.

  • x(float) –

    Rotation rate around the X axis, in rad/s.

  • y(float) –

    Rotation rate around the Y axis, in rad/s.

  • z(float) –

    Rotation rate around the Z axis, in rad/s.

Properties#

timestamp instance-attribute #

timestamp: int

Event timestamp, expressed in microseconds since epoch.

x instance-attribute #

x: float

Rotation rate around the X axis, in rad/s.

y instance-attribute #

y: float

Rotation rate around the Y axis, in rad/s.

z instance-attribute #

z: float

Rotation rate around the Z axis, in rad/s.