![]() |
WPILibC++ 2025.3.2
|
Class to control a simulated analog encoder. More...
#include <frc/simulation/AnalogEncoderSim.h>
Public Member Functions | |
| AnalogEncoderSim (const AnalogEncoder &encoder) | |
| Constructs from an AnalogEncoder object. | |
| void | Set (double value) |
| Set the position. | |
| double | Get () |
| Get the simulated position. | |
Class to control a simulated analog encoder.
|
explicit |
Constructs from an AnalogEncoder object.
| encoder | AnalogEncoder to simulate |
| double frc::sim::AnalogEncoderSim::Get | ( | ) |
Get the simulated position.
| void frc::sim::AnalogEncoderSim::Set | ( | double | value | ) |
Set the position.
| value | The position. |