87 virtual bool reset()
override = 0;
SensorType
Enumeration of sensor types.
@ GYROSCOPE
Gyroscope sensor.
OperationMode
Enumeration of sensor operation modes.
GyroFullScaleRange
Enumeration of gyroscope full-scale range settings.
Abstract base class for gyroscope implementations.
virtual bool selfTest() override=0
Perform gyroscope self-test.
virtual ~GyroscopeBase()=default
Destroy the GyroscopeBase object.
virtual bool reset() override=0
Reset gyroscope to default state.
GyroscopeBase(const GyroscopeBase &)=delete
virtual bool setOperationMode(OperationMode mode)=0
Set gyroscope operation mode.
virtual bool setFullScaleRange(GyroFullScaleRange range)=0
Set gyroscope full-scale range.
GyroscopeBase()
Construct a new GyroscopeBase object.
GyroscopeBase & operator=(const GyroscopeBase &)=delete
virtual bool setOutputDataRate(float data_rate_hz)=0
Set gyroscope output data rate.
virtual bool isDataReady() override=0
Check if new gyroscope data is available.
virtual bool readData(GyroscopeData &data) override=0
Read gyroscope data.
Template base class for all sensor implementations.
Structure representing gyroscope data.