![]() |
WPILibC++ 2027.0.0-alpha-4
|
Class to control a simulated analog encoder. More...
#include <wpi/simulation/AnalogEncoderSim.hpp>
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 wpi::sim::AnalogEncoderSim::Get | ( | ) |
Get the simulated position.
| void wpi::sim::AnalogEncoderSim::Set | ( | double | value | ) |
Set the position.
| value | The position. |