[chronojump] RaceAnalyzer segmentMeters -> cm working also on R graph and export



commit 474f27842ce5566f4b04db24ec4765d3ce356259
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 14 17:12:27 2022 +0100

    RaceAnalyzer segmentMeters -> cm working also on R graph and export

 src/runEncoder.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/runEncoder.cs b/src/runEncoder.cs
index ab45a8fa2..7b672e77e 100644
--- a/src/runEncoder.cs
+++ b/src/runEncoder.cs
@@ -631,7 +631,7 @@ public class RunEncoderGraphExport
                        device.ToString() + ";" +
                        Util.ConvertToPoint(tempC) + ";" +
                        testLength.ToString() + ";" +
-                       rex.SegmentCm.ToString() + ";" +
+                       Util.ConvertToPoint(rex.SegmentCm / 100.0) + ";" + //in meters
                        title + ";" +
                        datetime + ";" +
                        printTriggers(TriggerList.Type3.ON) + ";" +
@@ -781,7 +781,7 @@ public class RunEncoderGraph
                        "#graphWidth\n" +               graphWidth.ToString() + "\n" +
                        "#graphHeight\n" +              graphHeight.ToString() + "\n" +
                        "#device\n" +                   device.ToString() + "\n" + //unused on multiple
-                       "#segmentCm\n" +                rex.SegmentCm + "\n" + //unused on multiple
+                       "#segmentCm\n" +                Util.ConvertToPoint(rex.SegmentCm / 100.0) + "\n" + 
//unused on multiple
                        "#title\n" +                    title + "\n" +          //unused on multiple
                        "#datetime\n" +                 datetime + "\n" +       //unused on multiple
                        "#startAccel\n" +               Util.ConvertToPoint(startAccel) + "\n" +


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