XRPServo

class xrp.XRPServo(deviceNum: SupportsInt | SupportsIndex)

Bases: pybind11_object

XRPServo.

A SimDevice based servo

Constructs an XRPServo.

Parameters:

deviceNum – the servo channel

getAngle() wpimath.units.radians

Get the servo angle.

Returns:

Current servo angle in radians

setAngle(angle: wpimath.units.radians) None

Set the servo angle.

Parameters:

angle – Desired angle in radians