mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
turret reset before auto climb
This commit is contained in:
@@ -359,6 +359,10 @@ public class RobotContainer {
|
||||
// toggle manual mode and autonomous mode based on the current control mode
|
||||
new JoystickButton(getButtonBox(), ButtonBox.Button.kRightSwitch.value)
|
||||
|
||||
.whenPressed(new InstantCommand(() -> {
|
||||
if (this.currentControlMode.equals(SubsystemMode.CLIMBER)) { m_robotTurret.gotoZero(); }
|
||||
}, m_robotTurret))
|
||||
|
||||
.whenPressed(new InstantCommand(() -> {
|
||||
if (this.currentControlMode.equals(SubsystemMode.SHOOTER)) { this.currentTurretMode = ControlMode.MANUAL; }
|
||||
if (this.currentControlMode.equals(SubsystemMode.CLIMBER)) { this.currentClimberMode = ControlMode.AUTONOMOUS; }
|
||||
|
||||
Reference in New Issue
Block a user