Package edu.wpi.first.wpilibj.simulation
Class AnalogEncoderSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.AnalogEncoderSim
Class to control a simulated analog encoder.
-
Constructor Summary
ConstructorDescriptionAnalogEncoderSim
(AnalogEncoder encoder) Constructs from an AnalogEncoder object. -
Method Summary
-
Constructor Details
-
AnalogEncoderSim
Constructs from an AnalogEncoder object.- Parameters:
encoder
- AnalogEncoder to simulate
-
-
Method Details
-
set
Set the position.- Parameters:
value
- The position.
-
get
Get the simulated position.- Returns:
- The simulated position.
-