XRPServo
- class xrp.XRPServo(device_num: SupportsInt | SupportsIndex)
Bases:
pybind11_objectXRPServo.
A SimDevice based servo
Constructs an XRPServo.
- Parameters:
device_num – the servo channel
- get_angle() wpimath.units.radians
Get the servo angle.
- Returns:
Current servo angle in radians
- set_angle(angle: wpimath.units.radians) None
Set the servo angle.
- Parameters:
angle – Desired angle in radians