From 35b756efa45db6f5e3ccfbe94c0fb445f032e90f Mon Sep 17 00:00:00 2001 From: Adam Long Date: Sun, 11 Sep 2016 23:34:20 +0000 Subject: [PATCH] assigned movearm to buttons --- src/org/usfirst/frc/team2059/robot/OI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/usfirst/frc/team2059/robot/OI.java b/src/org/usfirst/frc/team2059/robot/OI.java index 9d4ecf7..37a9763 100644 --- a/src/org/usfirst/frc/team2059/robot/OI.java +++ b/src/org/usfirst/frc/team2059/robot/OI.java @@ -4,6 +4,7 @@ import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.buttons.JoystickButton; import org.usfirst.frc.team2059.robot.commands.LogEncoder; +import org.usfirst.frc.team2059.robot.commands.MoveArm; /** * This class is the glue that binds the controls on the physical operator * interface to the commands and command groups that allow control of the robot. @@ -24,7 +25,8 @@ public class OI { } // Print log when button 1 pressed joystickButtons[0][0].whenPressed(new LogEncoder()); -// joystickButtons[1][0].whenPressed(new + joystickButtons[1][0].whenPressed(new MoveArm(0.25)); + joystickButtons[1][1].whenPressed(new MoveArm(-0.25)); } public Joystick[] getJoysticks() { return joysticks;