Set velocity of specified motor.

Namespace:  AForge.Robotics.TeRK
Assembly:  AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public void SetMotorVelocity(
	int motor,
	int velocity
)

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

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionInvalid motor is specified.
AForge..::.NotConnectedExceptionNo connection to Qwerk or its service.
AForge..::.ConnectionLostExceptionConnestion to Qwerk is lost.

See Also