Skip to content

Commit

Permalink
Legacy autos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir-Encoded committed Dec 26, 2024
1 parent 27314d3 commit 6744447
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/auton/autonomous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ void testBM() {
chassis.moveToPose(52, 6, 320, 1000, {.forwards = false});
}

rd::Selector gui_selector({
{"E 5 Ring", Five_Ring},
{"Q 4 Ring + Bar", four_ring_bar},
{"Q SAWP 2 Mogo", SAWP_4},
{"Skills", skills},
});
void autonomous() {
//initializeColourSort();
chassis.setPose(0, 0, 0);
field_status = "autonomous";
console.println("Running auton...");
gui_selector.run_auton();
}


/* Legacy Auton Routines */
void four_ring_bar() {
if (alliance == "red" || alliance == "na") {
wallStake.move_voltage(10000); // Start
Expand Down Expand Up @@ -322,21 +338,4 @@ void skills() {
pros::delay(100);
intake.move_voltage(12000);
pros::delay(500);
}

rd::Selector gui_selector({
{"E 5 Ring", Five_Ring},
{"Q 4 Ring + Bar", four_ring_bar},
{"Q SAWP 2 Mogo", SAWP_4},
{"Skills", skills},
});
void autonomous() {
//initializeColourSort();
chassis.setPose(0, 0, 0);
field_status = "autonomous";
console.println("Running auton...");
gui_selector.run_auton();
}


/* Legacy Auton Routines */
}

0 comments on commit 6744447

Please sign in to comment.