OperationMode
Enumeration of sensor operation modes.
GyroFullScaleRange
Enumeration of gyroscope full-scale range settings.
Abstract base class for gyroscope implementations.
Abstract IMU device interface for polymorphic IMU sensor implementations.
virtual bool setGyroFullScaleRange(GyroFullScaleRange range)=0
Set gyroscope full scale range.
virtual bool setOperationMode(OperationMode mode)=0
Set IMU operation mode.
virtual bool readGyro(GyroscopeData &out)=0
Read gyroscope data.
virtual bool selfTest()=0
Perform self-test on the IMU sensor.
virtual bool isDataReady(uint8_t mask=static_cast< uint8_t >(DataReadyMask::BOTH))=0
Check if requested IMU data is available.
virtual bool reset()=0
Reset the IMU sensor to its default state.
virtual bool setGyroOutputDataRate(float data_rate_hz)=0
Set gyroscope output data rate.
Adapter: expose an IMU device as a GyroscopeBase.
bool setOutputDataRate(float data_rate_hz) override
Set gyroscope output data rate.
bool isDataReady() override
Check if new gyroscope data is available.
bool setFullScaleRange(GyroFullScaleRange range) override
Set gyroscope full-scale range.
ImuGyroscopeAdapter(ImuBase &dev)
bool readData(GyroscopeData &data) override
Read gyroscope data.
bool reset() override
Reset gyroscope to default state.
bool setOperationMode(OperationMode mode) override
Set gyroscope operation mode.
bool selfTest() override
Perform gyroscope self-test.
Structure representing gyroscope data.