Enables fail safe mode - setting motors' speed after timeout.

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 EnableFailsafeMode(
	int leftSpeed,
	int rightSpeed
)

Parameters

leftSpeed
Type: System..::.Int32
Left motor's speed, [-127, 127].
rightSpeed
Type: System..::.Int32
Right motor's speed, [-127, 127].

Remarks

In the case if fail safe mode is enabled and no commands are received by SVS robot withing 2 seconds, motors' speed will be set to the specified values. The command is very useful to instruct robot to stop if no other commands were sent within 2 last seconds (probably lost connection).

Exceptions

ExceptionCondition
AForge..::.NotConnectedExceptionNot connected to SVS. Connect to SVS board before using this method.

See Also