This repository was archived by the owner on Sep 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
src/org/usfirst/frc/team199/Robot2018 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 <classpathentry kind =" var" path =" wpiutil" sourcepath =" wpiutil.sources" />
1010 <classpathentry kind =" lib" path =" /Robot2017/libs/jars/navx_frc.jar" />
1111 <classpathentry kind =" var" path =" USERLIBS_DIR/CTRE_Phoenix.jar" />
12+ <classpathentry kind =" var" path =" USERLIBS_DIR/CTRE_Phoenix-sources.jar" />
13+ <classpathentry kind =" var" path =" USERLIBS_DIR/navx_frc.jar" />
1214 <classpathentry kind =" output" path =" bin" />
1315</classpath >
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ public class OI {
4848 // button.whenReleased(new ExampleCommand());
4949
5050 public Joystick leftJoy ;
51- public JoystickButton shiftDrive ;
52- public JoystickButton shiftDriveType ;
51+ private JoystickButton shiftDrive ;
52+ private JoystickButton shiftDriveType ;
5353 public Joystick rightJoy ;
5454 public Joystick manipulator ;
5555
5656 public int getButton (String key , int def ) {
57- if (!SmartDashboard .containsKey (key )) {
57+ if (!SmartDashboard .containsKey ("Button/" + key )) {
5858 SmartDashboard .putNumber ("Button/" + key , def );
5959 }
6060 return (int ) SmartDashboard .getNumber ("Button/" + key , def );
You can’t perform that action at this time.
0 commit comments