ServoSetPosition Method

Sets the position angle of a specified servo motor.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetPosition(
	float angle
)

Parameters

angle  Single
The position angle to rotate to. Must be between 0 and maximum angle range set by method SetRange(). The angle value is constrained to the limits specified using SetAngleLimits(Int32, Int32)

Exceptions

ArgumentOutOfRangeExceptionangle is out of range.
IOExceptionSerial port is in error state or not open.

See Also