ServoConfigSetAngleLimits Method

Sets the servo angle lower and upper limits to prevent the servo travelling beyond physical boundaries.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetAngleLimits(
	int angleLowerLimit,
	int angleUpperLimit,
	Servo servo
)

Parameters

angleLowerLimit  Int32
An angle >= 0 and < angleUpperLimit
angleUpperLimit  Int32
An angle > angleLowerLimit and <= servo max angle
servo  Servo
The servo that will be affected.

Exceptions

ArgumentNullExceptionservo is null.
ArgumentOutOfRangeExceptionEither angleLowerLimit or angleUpperLimit is out of range.

See Also