12 #include <hal/SimDevice.h>
14 #include "frc/GyroBase.h"
72 double GetRate()
const override;
81 void Reset()
override;
100 hal::SimDevice m_simDevice;
101 hal::SimDouble m_simAngle;
102 hal::SimDouble m_simRate;
104 uint16_t ReadRegister(
int reg);
void Calibrate() override
Initialize the gyro.
ADXRS450_Gyro()
Gyro constructor on onboard CS0.
SPI bus interface class.
Definition: SPI.h:32
double GetRate() const override
Return the rate of rotation of the gyro.
void Reset() override
Reset the gyro.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
GyroBase is the common base class for Gyro implementations such as AnalogGyro.
Definition: GyroBase.h:22
double GetAngle() const override
Return the actual angle in degrees that the robot is currently facing.
Use a rate gyro to return the robots heading relative to a starting position.
Definition: ADXRS450_Gyro.h:32