//******************************************************************************//
//                              Point Turns                                     //
//                              RobotC on NXT                                   //
//                                                                              //
//  This program allows your taskbot to point turn left then right for assigned //
//  amounts of time.                                                            //
//                                                                              //
//******************************************************************************//
//				Focus                                           //
//                                                                              //
//  This program's focus is to teach the programmer how to make point turns by turning one motor //
//  on forward and another motor on reverse to have the robot only change direction, but not position. //
//                                                                              //
//******************************************************************************//
//				Notes                                           //
//				                                                //
//  1. To change the left turn movement's speed replace the first "100" and     //
//     "-100" with the desired positive the negative speed number.              //
//  2. To change the right turn movement's speed replace the second "100" and   //
//     "-100" with the desired positive the negative speed number.              //
//  3. 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 reversed at a -100 power level
   wait1Msec(2500);        //the program waits 2500 milliseconds before running further code

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