13 #include "HAL/cpp/priority_mutex.h"
37 double GetRate()
const override;
38 void Reset()
override;
44 uint16_t ReadRegister(
int reg);
SPI bus interface class.
Definition: SPI.h:24
double GetRate() const override
Return the rate of rotation of the gyro.
Definition: ADXRS450_Gyro.cpp:151
ADXRS450_Gyro()
Gyro constructor on onboard CS0.
Definition: ADXRS450_Gyro.cpp:57
double GetAngle() const override
Return the actual angle in degrees that the robot is currently facing.
Definition: ADXRS450_Gyro.cpp:140
void Reset() override
Reset the gyro.
Definition: ADXRS450_Gyro.cpp:126
GyroBase is the common base class for Gyro implementations such as AnalogGyro.
Definition: GyroBase.h:24
void Calibrate() override
Initialize the gyro.
Definition: ADXRS450_Gyro.cpp:42
Use a rate gyro to return the robots heading relative to a starting position.
Definition: ADXRS450_Gyro.h:30