@@ -88,20 +88,21 @@ public OI(Robot robot) {
8888 invertDTButton = new JoystickButton (leftJoy , getButton ("Invert Drivetrain" , 3 ));
8989 invertDTButton .whenPressed (new InvertDrivetrain ());
9090
91- pIDMoveButton = new JoystickButton (leftJoy , getButton ("PID Move" , 7 ));
92- pIDMoveButton
93- .whenPressed (new PIDMove (Robot .sd .getConst ("Move Targ" , 24 ), Robot .dt , Robot .sd , RobotMap .distEncAvg ));
94- pIDTurnButton = new JoystickButton (leftJoy , getButton ("PID Turn" , 8 ));
95- pIDTurnButton
96- .whenReleased (new PIDTurn (Robot .getConst ("Turn Targ" , 90 ), Robot .dt , Robot .sd , RobotMap .fancyGyro ));
97-
98- resetEncButton = new JoystickButton (leftJoy , getButton ("Reset Dist Enc" , 10 ));
99- resetEncButton .whenPressed (new ResetEncoders ());
100-
101- findTurnTimeConstantButton = new JoystickButton (leftJoy , getButton ("Find Turn Time Constant" , 11 ));
91+ // commented out for safety reasons
92+ // pIDMoveButton = new JoystickButton(leftJoy, getButton("PID Move", 7));
93+ // pIDMoveButton
94+ // .whenPressed(new PIDMove(Robot.sd.getConst("Move Targ", 24), Robot.dt, Robot.sd, RobotMap.distEncAvg));
95+ // pIDTurnButton = new JoystickButton(leftJoy, getButton("PID Turn", 8));
96+ // pIDTurnButton
97+ // .whenReleased(new PIDTurn(Robot.getConst("Turn Targ", 90), Robot.dt, Robot.sd, RobotMap.fancyGyro));
98+
99+ // resetEncButton = new JoystickButton(leftJoy, getButton("Reset Dist Enc", 10));
100+ // resetEncButton.whenPressed(new ResetEncoders());
101+
102+ // findTurnTimeConstantButton = new JoystickButton(leftJoy, getButton("Find Turn Time Constant", 11));
102103 // the command will only run in test mode
103- findTurnTimeConstantButton
104- .whenPressed (new FindTurnTimeConstant (robot , Robot .dt , Robot .rmap .fancyGyro , Robot .sd ));
104+ // findTurnTimeConstantButton
105+ // .whenPressed(new FindTurnTimeConstant(robot, Robot.dt, Robot.rmap.fancyGyro, Robot.sd));
105106
106107 testLiftPID = new JoystickButton (leftJoy , getButton ("Test Lift PID" , 5 ));
107108 testLiftPID .whenPressed (
@@ -118,10 +119,10 @@ public OI(Robot robot) {
118119 updateEncoderDPPButton = new JoystickButton (rightJoy , getButton ("Get Encoder Dist Per Pulse" , 9 ));
119120 updateEncoderDPPButton .whenPressed (new SetDistancePerPulse ());
120121
121- moveLiftUpButton = new JoystickButton (rightJoy , getButton ("Run Lift Motor Up" , 10 ));
122- moveLiftUpButton .whileHeld (new MoveLift (Robot .lift , true ));
123- moveLiftDownButton = new JoystickButton (rightJoy , getButton ("Run Lift Motor Down" , 11 ));
124- moveLiftDownButton .whileHeld (new MoveLift (Robot .lift , false ));
122+ // moveLiftUpButton = new JoystickButton(rightJoy, getButton("Run Lift Motor Up", 10));
123+ // moveLiftUpButton.whileHeld(new MoveLift(Robot.lift, true));
124+ // moveLiftDownButton = new JoystickButton(rightJoy, getButton("Run Lift Motor Down", 11));
125+ // moveLiftDownButton.whileHeld(new MoveLift(Robot.lift, false));
125126
126127 manipulator = new Joystick (2 );
127128 // if (manipulator.getButtonCount() == 0) {
0 commit comments