togglePiston = new JoystickButton(rightJoystick,
Constants.Shooter.TOGGLE_INDEXER);
- togglePiston.whenPressed(new ToggleIndexerPiston());
+ togglePiston.toggleWhenPressed(new ToggleIndexerPiston());
toggleDriveTrainPiston = new JoystickButton(rightJoystick,
Constants.DriveTrain.TOGGLE_DRIVE_PISTON);