Skip to content

Commit

Permalink
Added version numbeer, more comment parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerng committed Feb 24, 2017
1 parent ad440f8 commit fc0040e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
Binary file modified bin/org/usfirst/frc/team25/scouting/client/data/EventReport.class
Binary file not shown.
Binary file modified bin/org/usfirst/frc/team25/scouting/client/data/TeamReport.class
Binary file not shown.
Binary file modified bin/org/usfirst/frc/team25/scouting/client/ui/Window.class
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ public void processTeamReports(){
TeamReport report = teamReports.get(key);
if(teamNameList!=null){
report.autoGetTeamName(teamNameList);
System.out.println(key);

}
report.calculateStats();


teamReports.put(key, report);
System.out.println(report.totalCycles.get(0));

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,21 @@ public int getTeamNum(){
return teamNum;
}

String removeCommasAndBreaks(String s){
String newString = "";
for(int i = 0; i < s.length(); i++) {
if(s.charAt(i)!=','&&s.charAt(i)!='\n')
newString += s.charAt(i);
else newString+="; ";
}
return newString;
}


public void addEntry(ScoutEntry entry){
entry.getPostMatch().setRobotComment(removeCommasAndBreaks(entry.getPostMatch().getRobotComment()));

entry.getPostMatch().setPilotComment(removeCommasAndBreaks(entry.getPostMatch().getPilotComment()));
entries.add(entry);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static JFrame addIcon(JFrame frame){

public static void initialize(){

JLabel introText = new JLabel("<html><h1>Team 25 Scouting Client</h1><br>Press start to select data folder</html>");
JLabel introText = new JLabel("<html><h1>Team 25 Scouting Client - v1.11</h1><br>Press start to select data folder</html>");
introText.setHorizontalAlignment(JLabel.CENTER);
introText.setFont(new Font("Arial", Font.PLAIN, 16));

Expand Down

0 comments on commit fc0040e

Please # to comment.