[chronojump] Force sensor analyze export to csv time in micros in diff, and labels "micros" ok now



commit 0e0c05a135e94123bc6017d4b86aaf649d8a2dc3
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Sep 28 15:18:16 2021 +0200

    Force sensor analyze export to csv time in micros in diff, and labels "micros" ok now

 src/forceSensor.cs | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index e8885f3ec..2aa7e592d 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -2296,6 +2296,11 @@ public class ForceSensorAnalyzeInstant
        {
                return fscAIPoints.GetTimeAtCount(count) / 1000.0; //microseconds to milliseconds
        }
+       public double GetTimeMicros(int count)
+       {
+               return fscAIPoints.GetTimeAtCount(count);
+       }
+
        public double GetForceAtCount(int count)
        {
                return fscAIPoints.GetForceAtCount(count);
@@ -2536,7 +2541,7 @@ public class ForceSensorAnalyzeInstant
                        str = Catalog.GetString("Sample") + sep;
 
                str += Catalog.GetString("Repetition") + sep +
-                       Catalog.GetString("Time") + " (ms)" + sep +
+                       Catalog.GetString("Time") + " (micros)" + sep +
                        Catalog.GetString("Force") + " (N)" + sep +
                        Catalog.GetString("RFD") + " (N/s)";
 
@@ -2551,8 +2556,8 @@ public class ForceSensorAnalyzeInstant
 
        private string exportCSVDifference(bool elastic, string sep, string sepString, int countA, int countB)
        {
-               double timeA = GetTimeMS(countA);
-               double timeB = GetTimeMS(countB);
+               double timeA = GetTimeMicros(countA);
+               double timeB = GetTimeMicros(countB);
                double forceA = GetForceAtCount(countA);
                double forceB = GetForceAtCount(countB);
                double rfdA = CalculateRFD(countA -1, countA +1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]