projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add compressor control code and fix solenoid ports
[3501/stronghold-2016]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
OI.java
diff --git
a/src/org/usfirst/frc/team3501/robot/OI.java
b/src/org/usfirst/frc/team3501/robot/OI.java
index cb7e12d9b3120c094e24f39869be0d6deea94cf6..8de027b73502223533f8b786c11f1804909ca53a 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/OI.java
+++ b/
src/org/usfirst/frc/team3501/robot/OI.java
@@
-1,6
+1,7
@@
package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.commands.driving.ChangeGear;
package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.commands.driving.ChangeGear;
+import org.usfirst.frc.team3501.robot.commands.driving.ToggleCompressor;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
@@
-34,6
+35,7
@@
public class OI {
public static Button intakeBoulder;
public static Button shootBoulder;
public static Button toggleGear;
public static Button intakeBoulder;
public static Button shootBoulder;
public static Button toggleGear;
+ public static Button toggleCompressor;
// button to change robot to the scaling mode
public static DigitalButton toggleScaling;
// button to change robot to the scaling mode
public static DigitalButton toggleScaling;
@@
-46,6
+48,10
@@
public class OI {
Constants.OI.RIGHT_JOYSTICK_TRIGGER_PORT);
toggleGear.toggleWhenPressed(new ChangeGear());
Constants.OI.RIGHT_JOYSTICK_TRIGGER_PORT);
toggleGear.toggleWhenPressed(new ChangeGear());
+ toggleCompressor = new JoystickButton(rightJoystick,
+ Constants.OI.TOGGLE_COMPRESSOR_PORT);
+ toggleCompressor.whenPressed(new ToggleCompressor());
+
// passPortcullis = new DigitalButton(
// new DigitalInput(Constants.OI.PASS_PORTCULLIS_PORT));
// passPortcullis.whenPressed(new PassPortcullis());
// passPortcullis = new DigitalButton(
// new DigitalInput(Constants.OI.PASS_PORTCULLIS_PORT));
// passPortcullis.whenPressed(new PassPortcullis());