//******************************************************************************//
//                              Modofiers                                       //
//                              RobotC on NXT                                   //
//                                                                              //
//  This program allows your robot to move forward at one speed, backward at    //
//  another, and point turn left at yet another speed.                          //
//                                                                              //
//******************************************************************************//
//				Focus                                                                 //
//                                                                              //
//  The focus of this program is to teach the programmer about different types  //
//  of modifiers, specifically two types of modifiers: 1. Motor Speed and       //
//  2. Wait Time. As you can see, each of these "values" are different for each //
//  section of the program.                                                     //
//                                                                              //
//******************************************************************************//
//				Notes                                           //
//				                                                //
//  1. To change the forward movement's speed replace the first two "100"'s     //
//     with the desired speed number.                                           //
//  2. To change the backward movement's speed replace the two "-65"'s with the //
//     desried negative speed.                                                  //
//  3. To change the left point turn speed, replace the "75" with the desired   //
//     speed, and the "-75" with the negative of the desired speed.             //
//  4. To change the duration of any movement, replace the wait1Msec() command  //
//     following its motor settings with the desired number of milliseconds it  //
//     should run for.                                                          //
//                                                                              //
//******************************************************************************//
//				Motors & Sensors                                //
//                                                                              //
//  [I/O Port]          [Name]          [Type]          [Description]           //
//  Port A              none            Motor           Right Motor             //
//  Port B              none            Motor           Left Motor              //
//                                                                              //
//******************************************************************************//


task main()
{
   motor[motorA] = 100;   //motor A is run at a 100 power level
   motor[motorB] = 100;   //motor B is run at a 100 power level
   wait1Msec(2000);       //the program waits 2000 milliseconds before running further code

   motor[motorA] = -65;   //motor A is run at a -65 power level
   motor[motorB] = -65;   //motor B is run at a -65 power level
   wait1Msec(4000);       //the program waits 4000 milliseconds before running further code

   motor[motorA] = 75;    //motor A is run at a 75 power level
   motor[motorB] = -75;   //motor B is run at a -75 power level
   wait1Msec(2500);       //the program waits 2500 milliseconds before running further code
}