Set bounds for specified servos.

Namespace:  AForge.Robotics.TeRK
Assembly:  AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public void SetBounds(
	bool[] mask,
	IntRange[] bounds
)

Parameters

mask
Type: array< System..::.Boolean >[]()[]
Mask array specifying which servos need to be set.
bounds
Type: array< AForge..::.IntRange >[]()[]
Array of servos' bounds. Each bound may be in [0, 255] range.

Remarks

The method sets servos' physical bounds in which they may move. See documentation to Qwerk..::.Servos for clarification.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIncorrect length of mask, or bounds array.
AForge..::.NotConnectedExceptionNo connection to Qwerk or its service.
AForge..::.ConnectionLostExceptionConnestion to Qwerk is lost.

See Also