55 hal::SimDouble m_positionSim;
Class for supporting continuous analog encoders, such as the US Digital MA3.
Definition: AnalogEncoder.h:25
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition: Rotation2d.h:26
Class to control a simulated analog encoder.
Definition: AnalogEncoderSim.h:21
AnalogEncoderSim(const AnalogEncoder &encoder)
Constructs from an AnalogEncoder object.
Rotation2d GetPosition()
Get the position as a Rotation2d.
void SetPosition(Rotation2d angle)
Set the position using an Rotation2d.
void SetTurns(units::turn_t turns)
Set the position of the encoder.
units::turn_t GetTurns()
Get the simulated position.
Definition: AprilTagFieldLayout.h:22