Skip to content

Commit

Permalink
text display of robot name
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Sep 23, 2019
1 parent e0c78a0 commit 8558813
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,15 @@ private void connectToDevice() {
Platform.runLater(() -> connectToDevice.setDisable(true));
Platform.runLater(() -> teensyButton.setDisable(true));
Platform.runLater(() -> {
robotName.setText(name);
robotName.setText("Connected to: "+name);
pidTab.setDisable(false);
pidVelTab.setDisable(false);
});

}
} catch (Exception ex) {
// ex.printStackTrace();
Platform.runLater(() -> robotName.setText(teamName.getText() + " Not Found!"));
Platform.runLater(() -> robotName.setText( "Robot Not Found!"));
}
if (getRobot() == null) {
Platform.runLater(() -> connectToDevice.setDisable(false));
Expand Down Expand Up @@ -331,15 +331,15 @@ void connectTeensy() {
Platform.runLater(() -> connectToDevice.setDisable(true));
Platform.runLater(() -> teensyButton.setDisable(true));
Platform.runLater(() -> {
robotName.setText(getRobot().getName());
robotName.setText("Connected to: TeensyHID");
pidTab.setDisable(false);
pidVelTab.setDisable(false);
});

}
} catch (Exception ex) {
// ex.printStackTrace();
Platform.runLater(() -> robotName.setText(teamName.getText() + " Not Found!"));
Platform.runLater(() -> robotName.setText("TeensyHID Not Found!"));
}
if (getRobot() == null) {
Platform.runLater(() -> connectToDevice.setDisable(false));
Expand Down

0 comments on commit 8558813

Please sign in to comment.