True False skyhook code

This commit is contained in:
robotics1
2024-12-12 17:15:16 -08:00
parent 46dac51c28
commit 1bf475772c

View File

@ -252,6 +252,18 @@ public class CometBotTeleopCompetition {
}
}
public void lowerSkyHook() {
if (this.currentGP2.dpad_down && !this.previousGP2.dpad_down) {
hook.lowerHook(1.00);
}
}
public void raiseSkyHook() {
if (this.currentGP2.dpad_up && !this.previousGP2.dpad_up) {
hook.raiseHook(1.00);
}
}
/*
Type: PS4
Controller: 2
@ -294,18 +306,16 @@ public class CometBotTeleopCompetition {
}
}
public void lowerSkyHook() {
hook.raiseHook(currentGP2.left_trigger);
}
public void raiseSkyHook() {
hook.lowerHook(currentGP2.right_trigger * 2.0);
}
}