36 double GetRate()
const override;
37 void Reset()
override;
43 uint16_t ReadRegister(
int reg);
Definition: RobotController.cpp:14
SPI bus interface class.
Definition: SPI.h:31
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:20
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:29