Use a rate gyro to return the robots heading relative to a starting position.
Definition: AnalogGyro.h:33
Class to control a simulated analog gyro.
Definition: AnalogGyroSim.h:20
bool GetInitialized() const
Check if the gyro is initialized.
void SetInitialized(bool initialized)
Set whether this gyro is initialized.
void SetRate(double rate)
Change the rate of the gyro.
void SetAngle(double angle)
Change the angle measured by the gyro.
void ResetData()
Reset all simulation data for this object.
double GetAngle() const
Get the current angle of the gyro.
std::unique_ptr< CallbackStore > RegisterRateCallback(NotifyCallback callback, bool initialNotify)
Register a callback on the rate.
double GetRate() const
Get the rate of angle change on this gyro.
AnalogGyroSim(const AnalogGyro &gyro)
Constructs from an AnalogGyro object.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback on whether the gyro is initialized.
AnalogGyroSim(int channel)
Constructs from an analog input channel number.
std::unique_ptr< CallbackStore > RegisterAngleCallback(NotifyCallback callback, bool initialNotify)
Register a callback on the angle.
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition: CallbackStore.h:14
Definition: AprilTagPoseEstimator.h:15