Package edu.wpi.first.wpilibj.simulation
Class ServoSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.ServoSim
Class to control a simulated Servo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getAngle()
Gets the angle set.double
Gets the position set.
-
Constructor Details
-
ServoSim
Constructor.- Parameters:
servo
- The device to simulate
-
ServoSim
Constructor.- Parameters:
channel
- The channel the servo is attached to.
-
-
Method Details
-
getPosition
Gets the position set.- Returns:
- Position
-
getAngle
Gets the angle set.- Returns:
- Angle
-