public void StopMotor( int motor )
{
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.MotorOff;
ExecuteCommand( command );
}