Enumeration of predefined motors' commands.

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

Syntax

C#
public enum MotorCommand

Members

Member nameDescription
DriveForward
Robot drive forward.
DriveBack
Robot drive back.
DriveLeft
Robot drive left.
DriveRight
Robot drive right.
DriftLeft
Robot drift left.
DriftRight
Robot drift right.
Stop
Robot stop.
DriveBackRight
Robot drive back and right.
DriveBackLeft
Robot drive back and left.
RotateLeft
Robot rotate left 20 degrees.
RotateRight
Robot rotate right 20 degrees.
IncreaseSpeed
Increase motors' speed.
DecreaseSpeed
Decrease motors' speed.

Remarks

This enumeration defines set of motors' commands, which can be executed using ControlMotors(SRV1..::.MotorCommand) method.

Note:Controlling SRV-1 motors with these commands is only possible after at least one direct motor command is sent, which is done using StopMotors()()() or RunMotors(Int32, Int32, Int32) methods.

Note:The IncreaseSpeed and DecreaseSpeed commands do not have any effect unless another driving command is sent. In other words, these do not increase/decrease speed of current operation, but affect speed of all following commands.

Note:The RotateLeft and RotateRight commands may be useful only for the original Surveyor SRV-1 Blackfin Robot. For most of other robots, which may have different motors and moving base, these commands will not be accurate – will not rotate for 20 degrees.

See Also