fix bug
This commit is contained in:
@ -106,7 +106,7 @@ public class CometBotAutoDevelopment {
|
|||||||
if(arm.getState() == ArmSubsystem.ArmState.GRAB_BLUEBERRY_SKYHOOK)
|
if(arm.getState() == ArmSubsystem.ArmState.GRAB_BLUEBERRY_SKYHOOK)
|
||||||
claw.init();
|
claw.init();
|
||||||
}
|
}
|
||||||
private void hangSkyhook (){
|
private void hangSkyhook(){
|
||||||
if(currentGamepad1.right_bumper && !previousGamepad1.right_bumper){
|
if(currentGamepad1.right_bumper && !previousGamepad1.right_bumper){
|
||||||
dualSlides.toHangHeight();
|
dualSlides.toHangHeight();
|
||||||
wrist.hangBlueberrySkyhook();
|
wrist.hangBlueberrySkyhook();
|
||||||
@ -118,7 +118,7 @@ public class CometBotAutoDevelopment {
|
|||||||
arm.hangBlueberrySkyhook();
|
arm.hangBlueberrySkyhook();
|
||||||
if(arm.getState() == ArmSubsystem.ArmState.HANG_BLUEBERRY_SKYHOOK){
|
if(arm.getState() == ArmSubsystem.ArmState.HANG_BLUEBERRY_SKYHOOK){
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(2000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}claw.closeClaw();
|
}claw.closeClaw();
|
||||||
|
Reference in New Issue
Block a user