|
10 | 10 | import org.usfirst.frc.team199.Robot2018.commands.AutoLift; |
11 | 11 | import org.usfirst.frc.team199.Robot2018.commands.FindTurnTimeConstant; |
12 | 12 | import org.usfirst.frc.team199.Robot2018.commands.IntakeCube; |
| 13 | +import org.usfirst.frc.team199.Robot2018.commands.InvertDrivetrain; |
13 | 14 | import org.usfirst.frc.team199.Robot2018.commands.MoveLift; |
14 | 15 | import org.usfirst.frc.team199.Robot2018.commands.MoveLiftWithPID; |
15 | 16 | import org.usfirst.frc.team199.Robot2018.commands.OuttakeCube; |
@@ -55,6 +56,7 @@ public class OI { |
55 | 56 | private JoystickButton findTurnTimeConstantButton; |
56 | 57 | private JoystickButton updatePIDConstantsButton; |
57 | 58 | private JoystickButton updateEncoderDPPButton; |
| 59 | + private JoystickButton invertDTButton; |
58 | 60 |
|
59 | 61 | public Joystick manipulator; |
60 | 62 | private JoystickButton closeIntakeButton; |
@@ -83,6 +85,9 @@ public OI(Robot robot) { |
83 | 85 | shiftDriveTypeButton = new JoystickButton(leftJoy, getButton("Shift Drive Type", 2)); |
84 | 86 | shiftDriveTypeButton.whenPressed(new ShiftDriveType()); |
85 | 87 |
|
| 88 | + invertDTButton = new JoystickButton(leftJoy, getButton("Invert Drivetrain", 3)); |
| 89 | + invertDTButton.whenPressed(new InvertDrivetrain()); |
| 90 | + |
86 | 91 | pIDMoveButton = new JoystickButton(leftJoy, getButton("PID Move", 7)); |
87 | 92 | pIDMoveButton |
88 | 93 | .whenPressed(new PIDMove(Robot.sd.getConst("Move Targ", 24), Robot.dt, Robot.sd, RobotMap.distEncAvg)); |
|
0 commit comments