This commit is contained in:
InventorXtreme 2024-01-11 15:52:15 -05:00
parent efe1fe6bcd
commit 00cf4c6d83

View file

@ -505,6 +505,16 @@ void opcontrol() {
flaparr[i] = false; flaparr[i] = false;
} }
bool l1toggle[10];
for (int i=0; i<10; i++) {
l1toggle[i] = false;
}
bool l2toggle[10];
for (int i=0; i < 10; i++) {
l2toggle[i] = false;
}
bool pullback = false; bool pullback = false;
bool ready = false; bool ready = false;
int tcount = 0; int tcount = 0;
@ -537,9 +547,9 @@ void opcontrol() {
r1arr[i] = false; r1arr[i] = false;
} }
bool y1arr[10]; bool upflaparr[10];
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
y1arr[i] = false; upflaparr[i] = false;
} }
bool modeswap[10]; bool modeswap[10];
@ -616,7 +626,7 @@ void opcontrol() {
tcount++; tcount++;
} }
if (is_tapped(flaparr, R2.isPressed())) { if(is_tapped(l1toggle, L1.isPressed() )) {
flapsOn = !flapsOn; flapsOn = !flapsOn;
} }
@ -626,11 +636,11 @@ void opcontrol() {
tcount++; tcount++;
} }
if (is_tapped(funnyarr, downarrow.isPressed())) { if (is_tapped(funnyarr, L2.isPressed())) {
funnypistonstatus = !funnypistonstatus; funnypistonstatus = !funnypistonstatus;
} }
if (is_tapped(y1arr, Bbutton.isPressed())) { if (is_tapped(upflaparr, R2.isPressed())) {
upflapstatus = !upflapstatus; upflapstatus = !upflapstatus;
} }
@ -712,14 +722,7 @@ void opcontrol() {
// flywheel.moveVoltage(0); // flywheel.moveVoltage(0);
// } // }
if(L1.isPressed()) {
lift.moveVoltage(-12000);
}
else if (L2.isPressed()) {
lift.moveVoltage(12000);
} else {
lift.moveVoltage(0);
}
// if (fly.isPressed()) { // if (fly.isPressed()) {
// pullback = true; // pullback = true;