Class ServoSim

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

public class ServoSim extends Object
Class to control a simulated Servo.
  • Constructor Details

    • ServoSim

      public ServoSim(Servo servo)
      Constructor.
      Parameters:
      servo - The device to simulate
    • ServoSim

      public ServoSim(int channel)
      Constructor.
      Parameters:
      channel - The channel the servo is attached to.
  • Method Details

    • getPosition

      public double getPosition()
      Gets the position set.
      Returns:
      Position
    • getAngle

      public double getAngle()
      Gets the angle set.
      Returns:
      Angle