Skip to content

Commit

Permalink
Cleaned up Code
Browse files Browse the repository at this point in the history
  • Loading branch information
afera15 committed Nov 4, 2016
1 parent 46454e1 commit fbf12f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ftc/goal/counter/GoalCounterUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,14 @@ public void RedCenX(){
Teleop.setSelected(true);
AutoState = false;
TeleState = true;
AudDisplay.State.setText("Driver");
JoystickTest.pressLstJSRedCenXbtn = true;
}
else{
Auto.setSelected(true);
AutoState = true;
TeleState = false;
AudDisplay.State.setText("Auto");
JoystickTest.pressLstJSRedCenXbtn = true;
}
}
Expand Down Expand Up @@ -1069,10 +1071,12 @@ private void AutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:ev
if(Auto.isSelected()){
AutoState = true;
TeleState = false;
AudDisplay.State.setText("Auto");
}
else{
AutoState = false;
TeleState = true;
AudDisplay.State.setText("Driver");
}
}//GEN-LAST:event_AutoActionPerformed

Expand Down Expand Up @@ -1115,8 +1119,6 @@ public static void main(String args[]) {
java.util.logging.Logger.getLogger(GoalCounterUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>

// countdownclock2();

/* Create and display the form */
goal = new GoalCounterUI();
Expand Down Expand Up @@ -1169,4 +1171,4 @@ public static void main(String args[]) {
private javax.swing.JLabel copyright;
private javax.swing.JButton jButton1;
// End of variables declaration//GEN-END:variables
}
}

0 comments on commit fbf12f2

Please sign in to comment.