add bottom middle flag

This commit is contained in:
shark 2019-04-07 18:26:36 -05:00
parent 157cde0558
commit bd3601271d

7
main.c
View File

@ -149,15 +149,16 @@ task autonomous() {
driveTiles(1, REVERSE);
turnRight(1);
driveTiles(0.33, REVERSE);
driveTiles(2.5, FORWARD);
ballIn();
delay(100);
driveTiles(2.5, FORWARD); // Flip the other cap without turning on the spinner
ballIn(); // So we can pick up the ball!
delay(1000);
driveTiles(0.1, FORWARD);
turnLeft(1);
driveTiles(0.33, REVERSE);
delay(1000);
ballOff();
shootBall();
driveTiles(2.2, FORWARD); // Hit middle column bottom flag
}
void turnRight(int turns) {