projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ports and unusuable code to make shooter test work
[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 bde311bd3147356a90d92129557a340b7f134bc7..07c47e8405422f77149aa54fabaf7c0cc81b0559 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.shooter.Shoot;
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;
@@
-43,9
+44,13
@@
public class OI {
rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
toggleGear = new JoystickButton(leftJoystick,
rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
toggleGear = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_JOYSTICK_T
RIGG
ER_PORT);
+ Constants.OI.LEFT_JOYSTICK_T
OP_CENT
ER_PORT);
toggleGear.toggleWhenPressed(new ChangeGear());
toggleGear.toggleWhenPressed(new ChangeGear());
+ shootBoulder = new JoystickButton(leftJoystick,
+ Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT);
+ shootBoulder.whenPressed(new Shoot());
+
// 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());