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