Direct servos control of SRV-1 robot.

Namespace:  AForge.Robotics.Surveyor
Assembly:  AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public void ControlServos(
	int leftServo,
	int rightServo
)

Parameters

leftServo
Type: System..::.Int32
Left servo setting, [0, 100].
rightServo
Type: System..::.Int32
Right servo setting, [0, 100].

Remarks

Servo settings represent timing pulse widths ranging from 1ms to 2ms. 0 corresponds to a 1ms pulse, 100 corresponds to a 2ms pulse, and 50 is midrange with a 1.5ms pulse.

Note:The method sends 'sab' SRV-1 command (see SRV-1 Control Protocol), which controls 2nd bank of servos using 6th and 7th timers.

See Also