AForge.Robotics.TeRK.Qwerk.Motors.StopMotor C# (CSharp) Метод

StopMotor() публичный Метод

Stop specified motor.
Invalid motor is specified. No connection to Qwerk or its service. Connestion to Qwerk is lost.
public StopMotor ( int motor ) : void
motor int Motor to stop, [0, ).
Результат void
            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 );
            }