Gyroscope#

Hardware Interface#

Defined in namespace hal

#include <libhal/gyroscope.hpp>

class gyroscope#

Angular velocity sensing hardware abstraction interface.

Subclassed by hal::soft::inert_gyroscope

Public Functions

inline read_t read()#

Read the latest angular velocity sensed by the device.

Returns:

read_t - angular velocity data

struct read_t#

Result from reading the gyroscope.

Public Members

rpm x#

Angular velocity in the X axis, relative to the device’s reference frame.

rpm y#

Angular velocity in the Y axis, relative to the device’s reference frame.

rpm z#

Angular velocity in the Z axis, relative to the device’s reference frame.