WPILibC++ 2023.4.3
|
Class to control a simulated duty cycle encoder. More...
#include <frc/simulation/DutyCycleEncoderSim.h>
Public Member Functions | |
DutyCycleEncoderSim (const DutyCycleEncoder &encoder) | |
Constructs from a DutyCycleEncoder object. More... | |
DutyCycleEncoderSim (int channel) | |
Constructs from a digital input channel. More... | |
void | Set (units::turn_t turns) |
Set the position in turns. More... | |
void | SetDistance (double distance) |
Set the position. More... | |
Class to control a simulated duty cycle encoder.
|
explicit |
Constructs from a DutyCycleEncoder object.
encoder | DutyCycleEncoder to simulate |
|
explicit |
Constructs from a digital input channel.
channel | digital input channel |
void frc::sim::DutyCycleEncoderSim::Set | ( | units::turn_t | turns | ) |
Set the position in turns.
turns | The position. |
void frc::sim::DutyCycleEncoderSim::SetDistance | ( | double | distance | ) |
Set the position.