ServoConfigSetType Method

Sets the type of specified servo motor in terms of minimum and maximum pulse width to ensure correct positioning.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetType(
	int maxAngle,
	int minPulseWidth,
	int maxPulseWidth,
	params Servo[] servo
)

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.

Exceptions

ArgumentNullExceptionservo is null or has null elements.
ArgumentOutOfRangeExceptionEither angleRange, minPulseWidth or maxPulseWidth are out of range.

See Also