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