[chronojump] ForceSensor capture HVLines works much better on negative values



commit 747cc7472d786ced056f8f2be1ace7b40a2ea646
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu May 27 11:24:56 2021 +0200

    ForceSensor capture HVLines works much better on negative values

 src/gui/app1/forceSensor.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index 6873e529e..dd584b6b9 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -1092,7 +1092,7 @@ public partial class ChronoJumpWindow
 
                LogB.Information("RealHeight = " + fscPoints.RealHeightG.ToString());
 
-               forcePaintHVLines(ForceSensorGraphs.CAPTURE, fscPoints.RealHeightG, 
ForceSensorCapturePoints.DefaultRealHeightGNeg, 10, false);
+               forcePaintHVLines(ForceSensorGraphs.CAPTURE, fscPoints.RealHeightG, 
-1*fscPoints.RealHeightGNeg, 10, false);
                //draw horizontal rectangle of feedback
                if(preferences.forceSensorCaptureFeedbackActive == 
Preferences.ForceSensorCaptureFeedbackActiveEnum.RECTANGLE)
                        forceSensorSignalPlotFeedbackRectangle(fscPoints, 
force_capture_drawingarea.Allocation.Width,
@@ -1611,7 +1611,7 @@ LogB.Information(" fs I ");
                                fscPoints.NumPainted = 0;
 
                                if(! configChronojump.LowCPU)
-                                       forcePaintHVLines(ForceSensorGraphs.CAPTURE, fscPoints.RealHeightG, 
forceSensorValues.Min * 2, fscPoints.RealWidthG, false);
+                                       forcePaintHVLines(ForceSensorGraphs.CAPTURE, fscPoints.RealHeightG, 
-1*fscPoints.RealHeightGNeg, fscPoints.RealWidthG, false);
 
 
                                //draw horizontal rectangle of feedback


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