12class DutyCycleEncoder;
40 void Set(units::turn_t turns);
48 hal::SimDouble m_simPosition;
49 hal::SimDouble m_simDistancePerRotation;
Class for supporting duty cycle/PWM encoders, such as the US Digital MA3 with PWM Output,...
Definition: DutyCycleEncoder.h:28
Class to control a simulated duty cycle encoder.
Definition: DutyCycleEncoderSim.h:19
DutyCycleEncoderSim(int channel)
Constructs from a digital input channel.
void Set(units::turn_t turns)
Set the position in turns.
void SetDistance(double distance)
Set the position.
DutyCycleEncoderSim(const DutyCycleEncoder &encoder)
Constructs from a DutyCycleEncoder object.
Definition: AprilTagFieldLayout.h:22