Before 12-19/Autonomous/autonomous.c
void driveTranslateDuration(int angle, int power, int duration) {
	// Reset encoders
	nMotorEncoder[motorDrive1] = 0;
	nMotorEncoder[motorDrive2] = 0;
	nMotorEncoder[motorDrive3] = 0;
	nMotorEncoder[motorDrive4] = 0;
	
	// Begin translating
	driveTranslateStart(angle, power);
	
	// Wait for duration
	wait1Msec(duration);
	
	// Stop translating
	driveStop();
}
// Translates the robot through the given angle at the given power for the given duration
Translates the robot through the given angle at the given power for the given duration
Translates the robot through the given angle at the given power for the given duration
void driveTranslateDuration(int angle, int power, int duration) {
	nMotorEncoder[motorDrive1] = 0;
	nMotorEncoder[motorDrive2] = 0;
	nMotorEncoder[motorDrive3] = 0;
	nMotorEncoder[motorDrive4] = 0;
	driveTranslateStart(angle, power);
	wait1Msec(duration);
	driveStop();
}
void driveTranslateDuration ( int angle , int power , int duration ) { nMotorEncoder [ motorDrive1 ] = 0 ; nMotorEncoder [ motorDrive2 ] = 0 ; nMotorEncoder [ motorDrive3 ] = 0 ; nMotorEncoder [ motorDrive4 ] = 0 ; driveTranslateStart ( angle , power ) ; wait1Msec ( duration ) ; driveStop ( ) ; }
Translates the robot through the given angle at the given power for the given duration
Translates the robot through the given angle at the given power for the given duration
// Reset encoders // Begin translating // Wait for duration // Stop translating