mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Manual controls for limelight
Co-Authored-By: Nirvan Bhalala <78400306+nbhalala27@users.noreply.github.com>
This commit is contained in:
@@ -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)));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user