public void SetMotorVelocity( int motor, int velocity )
{
if ( ( motor < 0 ) || ( motor >= Count ) )
{
throw new ArgumentOutOfRangeException( "Invalid motor is specified." );
}
// prepare command
TeRKIceLib.MotorCommand command = CreateCommand( );
command.motorMask[motor] = true;
command.motorModes[motor] = TeRKIceLib.MotorMode.MotorSpeedControl;
command.motorVelocities[motor] = velocity;
command.motorAccelerations[motor] = DefaultAcceleration;
ExecuteCommand( command );
}