This commit is contained in:
Keenan D. Buckley
2020-01-16 17:56:18 -07:00
parent aa1fbe2e75
commit 69b28c73b3
3 changed files with 20 additions and 14 deletions
@@ -62,7 +62,7 @@ public class RobotContainer {
/* Driver Buttons */
// test command to spin the robot while pressing A on the driver controller
new JoystickButton(getDriverJoystick(), XboxController.A_BUTTON)
.whileHeld(() -> m_robotDrive.driveWithInput(0, 1));
.whileHeld(() -> m_robotDrive.driveWithInput(0, 1), m_robotDrive);
/* Operator Buttons */
// activates "Lit Mode"
@@ -72,7 +72,7 @@ public class RobotContainer {
/* PID Test Command */
new JoystickButton(getDriverJoystick(), XboxController.B_BUTTON)
.whenPressed(() -> m_robotDrive.goToTargetPos());
.whileHeld(() -> m_robotDrive.goToTargetPos(), m_robotDrive);
}
/**