Manual controls for limelight

Co-Authored-By: Nirvan Bhalala <78400306+nbhalala27@users.noreply.github.com>
This commit is contained in:
Aarav Shah
2021-03-02 17:11:50 -07:00
parent a7c41ebe2d
commit ea338ff9c7
@@ -269,15 +269,14 @@ public class RobotContainer {
//Run drum //Run drum
new JoystickManualButton(getOperatorJoystick(), XboxController.B_BUTTON, false) new JoystickManualButton(getOperatorJoystick(), XboxController.A_BUTTON, false)
.whileHeld(new ShootPrepGroup(m_robotShooter, m_robotShooterAim, m_robotShooterHood, m_robotStorage), false) //.whileHeld(new ShootPrepGroup(m_robotShooter, m_robotShooterAim, m_robotShooterHood, m_robotStorage), false)
//.whenReleased(new ManageStorage(m_robotStorage, StorageMode.RESET)) //.whenReleased(new ManageStorage(m_robotStorage, StorageMode.RESET))
.whenReleased(new InstantCommand(() -> m_robotLime.limeOff())); .whenPressed(new InstantCommand(() -> m_robotLime.limeOn()));
//Run drum manual //Run drum manual
new JoystickManualButton(getOperatorJoystick(), XboxController.B_BUTTON, true) new JoystickManualButton(getOperatorJoystick(), XboxController.B_BUTTON, true)
.whileHeld(new RunCommand(() -> m_robotShooter.runDrumShooterVelocityPID(10000))) .whenPressed(new InstantCommand(() -> m_robotLime.limeOff()));
.whenReleased(new RunCommand(() -> m_robotShooter.runDrumShooterVelocityPID(0)));