This commit is contained in:
OnDYCLaptop
2026-03-10 21:01:01 +08:00
parent 50c9af952c
commit 1f397e6b6e
10 changed files with 115 additions and 70 deletions
+15 -15
View File
@@ -91,7 +91,7 @@ public class RobotContainer {
configueClimber();
bingdingLED();
configueIntaker();
configureBindings();
//configureBindings();
}
/* ====================== */
@@ -202,21 +202,21 @@ public class RobotContainer {
controllerupper.a().onTrue(intakerControls.resetIntakerRotaterEncoderCommand(IntakerSubsystem));
}
private void configureBindings() {
teleopStartTrigger.onTrue(handleClimberAtTeleopStartCommand());
}
// private void configureBindings() {
// teleopStartTrigger.onTrue(handleClimberAtTeleopStartCommand());
// }
private Command handleClimberAtTeleopStartCommand() {
return new InstantCommand(() -> {
if (climberSubsystem.wasAutoClimbUsedInAuto()) {
climberSubsystem.climbUp();
climberSubsystem.clearAutoClimbUsedInAutoFlag();
}
}, climberSubsystem);
}
// private Command handleClimberAtTeleopStartCommand() {
// return new InstantCommand(() -> {
// if (climberSubsystem.wasAutoClimbUsedInAuto()) {
// climberSubsystem.climbUp();
// climberSubsystem.clearAutoClimbUsedInAutoFlag();
// }
// }, climberSubsystem);
// }
public ClimberSubsystem getClimberSubsystem() {
return climberSubsystem;
}
// public ClimberSubsystem getClimberSubsystem() {
// return climberSubsystem;
// }
}