Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 655e536

Browse files
committed
added buttons to test PID
1 parent 5c362c1 commit 655e536

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Robot2018/src/org/usfirst/frc/team199/Robot2018

Robot2018/src/org/usfirst/frc/team199/Robot2018/OI.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public class OI {
5050
private JoystickButton shiftLowGear;
5151
private JoystickButton shiftHighGear;
5252
private JoystickButton shiftDriveType;
53+
private JoystickButton PIDMove;
54+
private JoystickButton PIDTurn;
5355
public Joystick rightJoy;
5456
private JoystickButton updatePidConstants;
5557
private JoystickButton updateEncoderDPP;
@@ -70,6 +72,10 @@ public OI() {
7072
shiftHighGear.whenPressed(new ShiftHighGear());
7173
shiftDriveType = new JoystickButton(leftJoy, getButton("Shift Drive Type", 2));
7274
shiftDriveType.whenPressed(new ShiftDriveType());
75+
PIDMove = new JoystickButton(leftJoy, getButton("PID Move", 7));
76+
PIDMove.whenPressed(new PIDMove(40));
77+
PIDTurn = new JoystickButton(leftJoy, getButton("PID Turn", 8));
78+
PIDTurn.whenPressed(new PIDTurn(30));
7379

7480
rightJoy = new Joystick(1);
7581
updatePidConstants = new JoystickButton(rightJoy, getButton("Get PID Constants", 8));

0 commit comments

Comments
 (0)