\r
public void shooterButtonsPressed() {\r
\r
- if (Robot.oi.rightJoystick\r
- .getRawButton(Constants.OI.INCREMENT_SHOOTER_PORT)) {\r
+ if (Robot.oi.incrementSpeed.get()) {\r
changeSpeed(0.1);\r
}\r
\r
- if (Robot.oi.rightJoystick\r
- .getRawButton(Constants.OI.DECREMENT_SHOOTER_PORT)) {\r
+ if (Robot.oi.decrementSpeed.get()) {\r
changeSpeed(-0.1);\r
}\r
\r
- if (Robot.oi.rightJoystick.getRawButton(Constants.OI.TRIGGER_PORT)) {\r
+ if (Robot.oi.trigger.get()) {\r
if (this.getState() == State.STOPPED)\r
this.setSpeed(0.5);\r
} else {\r
}\r
}\r
\r
- if (Robot.oi.rightJoystick.getRawButton(Constants.OI.PRINT_PORT)) {\r
+ if (Robot.oi.outputCurrentShooterSpeed.get()) {\r
System.out.println("Current Shooter Speed: " + getCurrentSpeed());\r
}\r
}\r