12class DutyCycleEncoder;
47 void Set(units::turn_t turns);
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.
double GetDistance()
Get the distance.
void Set(units::turn_t turns)
Set the position in turns.
void SetConnected(bool isConnected)
Set if the encoder is connected.
double Get()
Get the position in turns.
void SetDistance(double distance)
Set the distance.
DutyCycleEncoderSim(const DutyCycleEncoder &encoder)
Constructs from a DutyCycleEncoder object.
void SetAbsolutePosition(double position)
Set the absolute position.
double GetAbsolutePosition()
Get the absolute position.
bool IsConnected()
Get if the encoder is connected.
double GetDistancePerRotation()
Get the distance per rotation for this encoder.
C++ wrapper around a HAL simulator boolean value handle.
Definition: SimDevice.h:608
C++ wrapper around a HAL simulator double value handle.
Definition: SimDevice.h:533
Definition: AprilTagPoseEstimator.h:15