Before 12-19/Autonomous/autonomous.c
void driveRotateDuration(int direction, int power, int duration) {
	// Reset encoders
	nMotorEncoder[motorDrive1] = 0;
	nMotorEncoder[motorDrive2] = 0;
	nMotorEncoder[motorDrive3] = 0;
	nMotorEncoder[motorDrive4] = 0;
	
	// Begin rotating
	driveRotateStart(direction, power);
	
	// Wait for duration
	wait1Msec(duration);
	
	// Stop rotating
	driveStop();
}
// Rotates the robot in the given direction at the given power for the given duration
Rotates the robot in the given direction at the given power for the given duration
Rotates the robot in the given direction at the given power for the given duration
void driveRotateDuration(int direction, int power, int duration) {
	nMotorEncoder[motorDrive1] = 0;
	nMotorEncoder[motorDrive2] = 0;
	nMotorEncoder[motorDrive3] = 0;
	nMotorEncoder[motorDrive4] = 0;
	driveRotateStart(direction, power);
	wait1Msec(duration);
	driveStop();
}
void driveRotateDuration ( int direction , int power , int duration ) { nMotorEncoder [ motorDrive1 ] = 0 ; nMotorEncoder [ motorDrive2 ] = 0 ; nMotorEncoder [ motorDrive3 ] = 0 ; nMotorEncoder [ motorDrive4 ] = 0 ; driveRotateStart ( direction , power ) ; wait1Msec ( duration ) ; driveStop ( ) ; }
Rotates the robot in the given direction at the given power for the given duration
Rotates the robot in the given direction at the given power for the given duration
// Reset encoders // Begin rotating // Wait for duration // Stop rotating