[chronojump] Encoder capture fixed realtime show of table data (missed two values)



commit 0d31936e0ab1701e4f5dba13572400a5bf0110d7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Nov 4 10:34:51 2019 +0100

    Encoder capture fixed realtime show of table data (missed two values)

 src/gui/encoder.cs          | 22 ++++++++++++----------
 src/gui/encoderTreeviews.cs |  1 +
 2 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 9eee089e..a660d6c9 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -5826,18 +5826,20 @@ public partial class ChronoJumpWindow
 
                        string [] strs = trimmed.Split(new char[] {','});
 
+                       //LogB.Information("before add: " + Util.StringArrayToString(strs, "///"));
                        encoderCaptureStringR.Add(string.Format("\n" + 
-                                               "{0},2,a,3,4," + //id, seriesName, exerciseName, massBody, 
massExtra
-                                               "{1},{2},{3}," + //start, width, height
-                                               "{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14}",
+                                               "{0},2,a,3,4," +                //id, seriesName, 
exerciseName, massBody, massExtra
+                                               "{1},{2},{3}," +                //start, width, height
+                                               "{4},{5},{6}," +                //speeds
+                                               "{7},{8},{9},{10}," +           //powers
+                                               "{11},{12},{13},{14}," +        //forces
+                                               "{15},{16}",                    //workJ, impulse
                                        strs[0],
-                                       strs[1], strs[2], strs[3],      //start, width, height
-                                       strs[4], strs[5], strs[6],      //speeds
-                                       strs[7], strs[8], strs[9],      //powers
-                                       strs[10],                       //pp/ppt
-                                       strs[11], strs[12], strs[13],   //forces
-                                       strs[14],                       //maxForce_maxForceT
-                                       strs[15], strs[16]              //workJ, impulse
+                                       strs[1], strs[2], strs[3],              //start, width, height
+                                       strs[4], strs[5], strs[6],              //speeds
+                                       strs[7], strs[8], strs[9], strs[10],    //powers
+                                       strs[11], strs[12], strs[13], strs[14], //forces
+                                       strs[15], strs[16]                      //workJ, impulse
                                        ));
 
                        //LogB.Debug("encoderCaptureStringR");
diff --git a/src/gui/encoderTreeviews.cs b/src/gui/encoderTreeviews.cs
index d1d681c6..a073da6e 100644
--- a/src/gui/encoderTreeviews.cs
+++ b/src/gui/encoderTreeviews.cs
@@ -1521,6 +1521,7 @@ public partial class ChronoJumpWindow
        private bool fixDecimalsWillWork(bool captureOrAnalyze, string [] cells)
        {
                LogB.Information(string.Format("captureOrAnalyze: {0}, cells.Length: {1}", captureOrAnalyze, 
cells.Length));
+               //LogB.Information(string.Format("cellsString: {0}", Util.StringArrayToString(cells, ";")));
                if(captureOrAnalyze && cells.Length < 21)               //from 0 to 20
                        return false;
                else if(! captureOrAnalyze && cells.Length < 23)        //from 0 to 22


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