From a8aaf7c5f42e2128165aeb231d9d5c9aa2805425 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 6 Nov 2019 07:34:28 -0500 Subject: [PATCH] drop the auto dump to 10k lines --- build.gradle | 2 +- .../java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a5c1330..681683b 100644 --- a/build.gradle +++ b/build.gradle @@ -54,6 +54,6 @@ shadowJar { mainClassName = 'edu.wpi.rbe.rbe2001.fieldsimulator.gui.Main' baseName = 'FieldControl' classifier = null - version = '0.2.2' + version = '0.2.3' mergeServiceFiles() } \ No newline at end of file diff --git a/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java b/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java index f9e256e..93c5412 100644 --- a/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java +++ b/src/main/java/edu/wpi/rbe/rbe2001/fieldsimulator/gui/CSVManager.java @@ -21,7 +21,7 @@ public void addLine(long timestamp, double pos0, double pos1, double pos2, doubl double[] line = new double[] { timestamp,pos0, pos1, pos2, vel0, vel1, vel2, hw0, hw1, hw2, velsetpoint0, velsetpoint1, velsetpoint2, setpoint0, setpoint1, setpoint2,Azimuth }; hashMap.add( line); - if(hashMap.size()>100000) + if(hashMap.size()>10000) writeToFile(); }