This commit is contained in:
mayabartels
2020-02-13 19:12:08 -08:00
parent 29cdf74ea1
commit 6f8c90751c
3 changed files with 24 additions and 19 deletions
@@ -137,11 +137,14 @@ public class RobotContainer {
/* TEST shooter rotate PIDs */
new JoystickButton(getOperatorJoystick(), XboxController.Y_BUTTON)
.whileHeld(new RunCommand(() -> m_robotShooter.runAngleAdjustPID(360, 0.2, 0.0, 0.0, 0.0, 0.0, 1, -1)));
.whileHeld(new RunCommand(() -> m_robotShooter.runAngleAdjustPID(360)));
new JoystickButton(getOperatorJoystick(), XboxController.B_BUTTON)
.whileHeld(new RunCommand(() -> m_robotShooter.runshooterRotatePID(360, 0.2, 0.0, 0.0, 0.0, 0.0, 1, -1)));
.whileHeld(new RunCommand(() -> m_robotShooter.runshooterRotatePID(360)));
new JoystickButton(getOperatorJoystick(), XboxController.X_BUTTON)
.whileHeld(new RunCommand(() -> m_robotShooter.runshooterRotatePID(720, 0.2, 0.0, 0.0, 0.0, 0.0, 1, -1)));
.whileHeld(new RunCommand(() -> m_robotShooter.runshooterRotatePID(720)));
/* TEST for both commands above */
}