Run motors connected to the SVS board.
Namespace:
AForge.Robotics.SurveyorAssembly: AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
Parameters
- leftSpeed
- Type: System..::.Int32
Left motor's speed, [-127, 127].
- rightSpeed
- Type: System..::.Int32
Right motor's speed, [-127, 127].
- duration
- Type: System..::.Int32
Time duration to run motors measured in number of 10 milliseconds (0 for infinity), [0, 255].
Remarks
The method sets specified speed to both motors connected to the SVS board. The maximum absolute speed equals to 127, but the sign specifies direction of motor's rotation (forward or backward).
Exceptions
| Exception | Condition |
|---|---|
| AForge..::.NotConnectedException | Not connected to SVS. Connect to SVS board before using this method. |