VEX V5 Python API
Public Member Functions | List of all members
vex.Servo Class Reference

Inherits vex.TriDevice.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a servo device. More...
 
def set_position (self, value, rotationUnits=RotationUnits.DEG)
 Sets the position of the servo device. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Servo.__init__ (   self,
  triport_port 
)

Use this class when programming with a servo device.

Member Function Documentation

◆ set_position()

def vex.Servo.set_position (   self,
  value,
  rotationUnits = RotationUnits.DEG 
)

Sets the position of the servo device.

Parameters
valueThe value to be set to the device. Range for degrees is from -50 to 50
rotationUnitsThe unit type that the previous parameter should be treated as.