Skip to content

Commit e442c7d

Browse files
committed
CSV manager tested working
Captures all data synchronized
1 parent 8cb66e1 commit e442c7d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ public void writeToFile() {
4242
// TODO Auto-generated catch block
4343
e.printStackTrace();
4444
}
45-
String content = "Timestamp,Current Value 1,Current Value 1,Current Value 1,Target Value,Hardware Value\n";
45+
String content = "timestamp,pos0, pos1, pos2, vel0, vel1, vel2, hw0, hw1, hw2, velsetpoint0, velsetpoint1,velsetpoint2, setpoint0, setpoint1, setpoint2,Azimuth\n";
4646
for(int j=0;j<hashMap.size();j++) {
4747
double[] line=hashMap.get(j);
4848
for(int i=0;i<line.length;i++)
4949
content+=line[i]+",";
50-
50+
51+
content+="\n";
5152
}
5253
PrintWriter out;
5354
try {

src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/InterfaceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public class InterfaceController {
218218
private static final int numPIDControllersOnDevice = 3;
219219
private File lastSearchedName = new File(
220220
System.getProperty("user.home") + "/" + "rbeFieldControllerLastSearchedRobot.txt");
221-
private CSVManager csv;
221+
private CSVManager csv=new CSVManager();
222222
private double Azimuth =0;
223223
@FXML
224224
private void initialize() {

0 commit comments

Comments
 (0)