True False skyhook code
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user