Provides access to Qwerk's motors' controllers.

The class allows to manipulate Qwerk's motors. The total number of available motors equals to Motors.Count.

Sample usage:

// get Qwerk's motors service Qwerk.Motors motors = qwerk.GetMotorsService( ); // stop all motors motors.StopMotors( ); // run first motor motors.SetMotorVelocity( 0, 10000 );
Exemplo n.º 1
0
 /// <summary>
 /// Get Qwerk's motors service.
 /// </summary>
 ///
 /// <returns>Returns Qwerk's motors service.</returns>
 ///
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Motors(Qwerk)"/>.</remarks>
 ///
 public Qwerk.Motors GetMotorsService( )
 {
     if (motors == null)
     {
         motors = new Motors(this);
     }
     return(motors);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get Qwerk's motors service.
 /// </summary>
 /// 
 /// <returns>Returns Qwerk's motors service.</returns>
 /// 
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Motors(Qwerk)"/>.</remarks>
 /// 
 public Qwerk.Motors GetMotorsService( )
 {
     if ( motors == null )
     {
         motors = new Motors( this );
     }
     return motors;
 }