Before 12-19/Autonomous/autonomous.c
void driveRotateAngleAbsolute(int direction, int power, int angle) {
	// Begin rotating
	driveRotateStart(direction, power);
	
	// Wait until target angle is within tolerance
	while (abs(SensorValue[sensorCompass] - wrapAngleDegrees(90 - angle)) > TOLERANCE_DRIVE_ROTATE_ANGLE) {}
	
	// Stop rotating
	driveStop();
}
// Rotates the robot in the given direction at the given power through the given absolute angle (0 degrees east, 90 degrees north)
Rotates the robot in the given direction at the given power through the given absolute angle (0 degrees east, 90 degrees north)
Rotates the robot in the given direction at the given power through the given absolute angle ( 0 degrees east 90 degrees north )
void driveRotateAngleAbsolute(int direction, int power, int angle) {
	driveRotateStart(direction, power);
	while (abs(SensorValue[sensorCompass] - wrapAngleDegrees(90 - angle)) > TOLERANCE_DRIVE_ROTATE_ANGLE) {}
	driveStop();
}
void driveRotateAngleAbsolute ( int direction , int power , int angle ) { driveRotateStart ( direction , power ) ; while ( abs ( SensorValue [ sensorCompass ] - wrapAngleDegrees ( 90 - angle ) ) > TOLERANCE_DRIVE_ROTATE_ANGLE ) { } driveStop ( ) ; }
Rotates the robot in the given direction at the given power through the given absolute angle (0 degrees east, 90 degrees north)
Rotates the robot in the given direction at the given power through the given absolute angle ( 0 degrees east 90 degrees north )
// Begin rotating // Wait until target angle is within tolerance // Stop rotating