[chronojump] Fixed forcesensor stiffness calculation (incorrecty used cm instead of m)



commit f9f01678692e244443a0f36ca3fc1b9bc16f4130
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Sep 15 16:35:15 2020 +0200

    Fixed forcesensor stiffness calculation (incorrecty used cm instead of m)

 src/gui/app1/forceSensor.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index c069caf1..b9d7ae62 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -791,7 +791,7 @@ public partial class ChronoJumpWindow
                }
 
                forceSensorOtherMessage = string.Format("Stiffness: {0} N/m", Math.Round(
-                                       
(forceAtMax-forceAtMin)/(forceSensorStiffMaxCm-forceSensorStiffMinCm), 3));
+                                       (forceAtMax-forceAtMin)/(forceSensorStiffMaxCm/100.0 - 
forceSensorStiffMinCm/100.0), 3));
        }
        //Attention: no GTK here!!
        private double forceSensorDetectStiffnessDo (int distanceCm, string letter)


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