[chronojump] Fixed ForceMax being 0 on negative values of forceAnalyzeInstant



commit 245253996db67f6364f12bca986c38e159fea2a5
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jan 3 15:50:32 2022 +0100

    Fixed ForceMax being 0 on negative values of forceAnalyzeInstant

 src/forceSensor.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 0bd5ed626..032aeb2de 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -1026,7 +1026,7 @@ public class ForceSensorCapturePoints
                }
 
                double sum = 0;
-               max = 0;
+               max = -100000;
                for(int i = countA; i <= countB; i ++) {
                        sum += forces[i];
                        if(forces[i] > max)


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