add bottom middle flag

master
shark 5 years ago
parent 157cde0558
commit bd3601271d

@ -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) {

Loading…
Cancel
Save