[chronojump] on inertialCalibrated don't send curve until 0 is crossed



commit 43e5765091b4c7acc87842e745589c94f6a9c482
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 15 13:25:39 2017 +0100

    on inertialCalibrated don't send curve until 0 is crossed

 src/encoderCapture.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/encoderCapture.cs b/src/encoderCapture.cs
index 9e5f933..4bb908e 100644
--- a/src/encoderCapture.cs
+++ b/src/encoderCapture.cs
@@ -313,6 +313,10 @@ public abstract class EncoderCapture
                                                sendCurveMaybe = true;
                                }
 
+                               //but on inertialCalibrated don't send curve until 0 is crossed
+                               if(inertialCalibrated && inertialCalibratedFirstCross0Pos == 0)
+                                       sendCurveMaybe = false;
+
                                if(sendCurveMaybe)
                                {
                                        //int startFrame = previousFrameChange - directionChangeCount;  
//startFrame
@@ -451,7 +455,7 @@ public abstract class EncoderCapture
                        return false;
 
                saveToFile(outputData1);
-               
+
                LogB.Debug("runEncoderCaptureCsharp ended");
 
                return true;


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