ServoConfigSetType Method
Sets the type of specified servo motor in terms of minimum and maximum pulse width to ensure correct positioning.
Namespace: RoboTx.ApiAssembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
public void SetType(
int maxAngle,
int minPulseWidth,
int maxPulseWidth,
params Servo[] servo
)
Public Sub SetType (
maxAngle As Integer,
minPulseWidth As Integer,
maxPulseWidth As Integer,
ParamArray servo As Servo()
)
member SetType :
maxAngle : int *
minPulseWidth : int *
maxPulseWidth : int *
servo : Servo[] -> unit
Parameters
- maxAngle Int32
- Maximum angle of the servo. Must be between 180 and 360 degrees inclusive.
- minPulseWidth Int32
- Minimum pulse width expressed as milliseconds. Must be between 500 and 1250 inclusive.
- maxPulseWidth Int32
- Maximum pulse width expressed as milliseconds Must be between minPulseWidth and 2500 inclusive.
- servo Servo
- The servo that will be affected.