Class AnalogEncoderSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.AnalogEncoderSim

public class AnalogEncoderSim extends Object
Class to control a simulated analog encoder.
  • Constructor Details

    • AnalogEncoderSim

      Constructs from an AnalogEncoder object.
      Parameters:
      encoder - AnalogEncoder to simulate
  • Method Details

    • set

      public void set(double value)
      Set the position.
      Parameters:
      value - The position.
    • get

      public double get()
      Get the simulated position.
      Returns:
      The simulated position.