This commit is contained in:
ary 2023-10-17 23:49:29 -04:00
parent 0eb8c3a77e
commit 9cadf951d1
2 changed files with 6 additions and 20 deletions

View File

@ -53,6 +53,7 @@ namespace globals {
enum e_controlsch {
RENU,
RIA
RIA,
CHRIS
};
}

View File

@ -6,22 +6,6 @@ using namespace superstruct;
e_controlsch currentuser = RENU;
/**
* A callback function for LLEMU's center button.
*
* When this callback is fired, it will toggle line 2 of the LCD text between
* "I was pressed!" and nothing.
*/
void on_center_button() {
static bool pressed = false;
pressed = !pressed;
if (pressed) {
pros::lcd::set_text(2, "I was pressed!");
} else {
pros::lcd::clear_line(2);
}
}
/**
* Runs initialization code. This occurs as soon as the program is started.
*
@ -98,13 +82,14 @@ void opcontrol() {
opControlInit();
while (true) {
chassis.tank_control();
if (currentuser == RENU) {
chassis.tank_control();
renu_control();
} else if (currentuser = RIA) {
chassis.tank_control();
ria_control();
} else {
} else if (currentuser == CHRIS) {
chassis.arcade_standard(ary::SPLIT, ary::DEFAULT);
renu_control();
}