- toggleFlyWheel = new JoystickButton(rightJoystick,
- Constants.OI.TOGGLE_FLYWHEEL_PORT);
- toggleFlyWheel.toggleWhenPressed(new RunFlyWheelContinuous());
+ runFlyWheel = new JoystickButton(gamePad, Constants.OI.RUN_FLYWHEEL_PORT);
+ runFlyWheel.whenPressed(new RunFlyWheelContinuous());
+
+ stopFlyWheel = new JoystickButton(gamePad, Constants.OI.STOP_FLYWHEEL_PORT);
+ stopFlyWheel.whenPressed(new StopFlyWheel());
+
+ reverseFlyWheel = new JoystickButton(gamePad,
+ Constants.OI.REVERSE_FLYWHEEL_PORT);
+ reverseFlyWheel.whileHeld(new ReverseFlyWheelContinuous());
+
+ shiftHigh = new JoystickButton(xboxController,
+ Constants.OI.SHIFT_HIGH_PORT);
+ shiftHigh.whenPressed(new ShiftDriveHighGear());
+
+ shiftLow = new JoystickButton(xboxController, Constants.OI.SHIFT_LOW_PORT);
+ shiftLow.whenPressed(new ShiftDriveLowGear());
+
+ /*
+ * toggleGearManipulatorPiston = new JoystickButton(gamePad,
+ * Constants.OI.TOGGLE_GEAR_MANIPULATOR_PORT);
+ * toggleGearManipulatorPiston.whenPressed(new
+ * ToggleGearManipulatorPiston());
+ */