35 double GetRate()
const override;
36 void Reset()
override;
42 uint16_t ReadRegister(
int reg);
SPI bus interface class.
Definition: SPI.h:28
double GetRate() const override
Return the rate of rotation of the gyro.
Definition: ADXRS450_Gyro.cpp:152
ADXRS450_Gyro()
Gyro constructor on onboard CS0.
Definition: ADXRS450_Gyro.cpp:58
double GetAngle() const override
Return the actual angle in degrees that the robot is currently facing.
Definition: ADXRS450_Gyro.cpp:141
void Reset() override
Reset the gyro.
Definition: ADXRS450_Gyro.cpp:127
GyroBase is the common base class for Gyro implementations such as AnalogGyro.
Definition: GyroBase.h:25
void Calibrate() override
Initialize the gyro.
Definition: ADXRS450_Gyro.cpp:43
Use a rate gyro to return the robots heading relative to a starting position.
Definition: ADXRS450_Gyro.h:28