Skip to content

Commit

Permalink
CSV manager tested working
Browse files Browse the repository at this point in the history
Captures all data synchronized
  • Loading branch information
madhephaestus committed Nov 5, 2019
1 parent 8cb66e1 commit e442c7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ public void writeToFile() {
// TODO Auto-generated catch block
e.printStackTrace();
}
String content = "Timestamp,Current Value 1,Current Value 1,Current Value 1,Target Value,Hardware Value\n";
String content = "timestamp,pos0, pos1, pos2, vel0, vel1, vel2, hw0, hw1, hw2, velsetpoint0, velsetpoint1,velsetpoint2, setpoint0, setpoint1, setpoint2,Azimuth\n";
for(int j=0;j<hashMap.size();j++) {
double[] line=hashMap.get(j);
for(int i=0;i<line.length;i++)
content+=line[i]+",";


content+="\n";
}
PrintWriter out;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public class InterfaceController {
private static final int numPIDControllersOnDevice = 3;
private File lastSearchedName = new File(
System.getProperty("user.home") + "/" + "rbeFieldControllerLastSearchedRobot.txt");
private CSVManager csv;
private CSVManager csv=new CSVManager();
private double Azimuth =0;
@FXML
private void initialize() {
Expand Down

0 comments on commit e442c7d

Please sign in to comment.