Merge branch 'master' into shooter-and-limelight-tuning

This commit is contained in:
ryan123rudder
2020-03-07 17:38:42 -07:00
committed by GitHub
10 changed files with 266 additions and 142 deletions
@@ -165,7 +165,7 @@ public class RobotContainer {
.whenPressed(new InstantCommand(() -> m_robotPneumatics.setShiftState(false), m_robotDrive));
// Disengages the rachet to allow for a climb
new JoystickButton(getOperatorJoystick(), XboxController.BACK_BUTTON)
new JoystickButton(getDriverJoystick(), XboxController.BACK_BUTTON)
.whileHeld(new DisengageRachet(m_robotClimber));
/* Operator Buttons */
@@ -187,6 +187,7 @@ public class RobotContainer {
new JoystickButton(getOperatorJoystick(), XboxController.X_BUTTON)
.whileHeld(new RunCommand(() -> m_robotIntake.runExtender(0.5)))
.whenReleased(new InstantCommand(() -> m_robotIntake.runExtender(0)));
new JoystickButton(getOperatorJoystick(), XboxController.Y_BUTTON)
.whileHeld(new RunCommand(() -> m_robotIntake.runExtender(-0.5)))
.whenReleased(new InstantCommand(() -> m_robotIntake.runExtender(0)));
@@ -301,6 +302,13 @@ public class RobotContainer {
m_robotPneumatics.setShiftState(state);
}
/**
*
*/
public void shiftClimberRachet(boolean state) {
m_robotClimber.shiftServo(state);
}
/**
*
*/