Compare commits
3 Commits
fed445b171
...
7dcdde3b49
Author | SHA1 | Date | |
---|---|---|---|
7dcdde3b49 | |||
3f08d9b00b | |||
90355add55 |
@ -106,21 +106,23 @@ 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(){
|
||||||
dualSlides.toHangHeight();
|
if(currentGamepad1.right_bumper && !previousGamepad1.right_bumper){
|
||||||
wrist.hangBlueberrySkyhook();
|
dualSlides.toHangHeight();
|
||||||
try {
|
wrist.hangBlueberrySkyhook();
|
||||||
Thread.sleep(1000);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
arm.hangBlueberrySkyhook();
|
|
||||||
if(arm.getState() == ArmSubsystem.ArmState.HANG_BLUEBERRY_SKYHOOK){
|
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}claw.closeClaw();
|
}
|
||||||
|
arm.hangBlueberrySkyhook();
|
||||||
|
if(arm.getState() == ArmSubsystem.ArmState.HANG_BLUEBERRY_SKYHOOK){
|
||||||
|
try {
|
||||||
|
Thread.sleep(2000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}claw.closeClaw();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -137,7 +139,6 @@ public class CometBotAutoDevelopment {
|
|||||||
}
|
}
|
||||||
private void armAndWristToFloor(){
|
private void armAndWristToFloor(){
|
||||||
if(currentGamepad2.a && !previousGamepad2.a){
|
if(currentGamepad2.a && !previousGamepad2.a){
|
||||||
|
|
||||||
double increment = 0.7 - arm.getPosition();
|
double increment = 0.7 - arm.getPosition();
|
||||||
for(int i = 0; i < 3; i ++){
|
for(int i = 0; i < 3; i ++){
|
||||||
arm.setPosition(arm.getPosition() + increment);
|
arm.setPosition(arm.getPosition() + increment);
|
||||||
|
Reference in New Issue
Block a user