Set velocity of specified motor.
Namespace:
AForge.Robotics.TeRKAssembly: AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- motor
- Type: System..::.Int32
Motor to set velocity for, [0, Count).
- velocity
- Type: System..::.Int32
Velocity to set.
Remarks
The method sets specified motor's velocity, which is measured in ticks per second. "Ticks" is a made-up term, which does not depend on specific motor, but is an unknown in distance and rotation (see Qwerk documentation for details).
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | Invalid motor is specified. |
AForge..::.NotConnectedException | No connection to Qwerk or its service. |
AForge..::.ConnectionLostException | Connestion to Qwerk is lost. |