[chronojump] Fixed a bug in forceSensor calculation since these days commits



commit f711e233abec146f788e4e60165f502325869d4b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 29 12:12:15 2021 +0100

    Fixed a bug in forceSensor calculation since these days commits

 src/forceSensorDynamics.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/forceSensorDynamics.cs b/src/forceSensorDynamics.cs
index 0bcdf92ba..31840707f 100644
--- a/src/forceSensorDynamics.cs
+++ b/src/forceSensorDynamics.cs
@@ -394,14 +394,14 @@ public class ForceSensorDynamicsNotElastic : ForceSensorDynamics
        {
                for (int i = 0 ; i < force_l.Count; i ++)
                {
-            /*
+                       /*
                        double force = Math.Sqrt(
                                        Math.Pow(Math.Cos(fse.AngleDefault * Math.PI / 180.0) * 
(Math.Abs(force_l[i])), 2) +                  //Horizontal
                                        Math.Pow(Math.Sin(fse.AngleDefault * Math.PI / 180.0) * 
(Math.Abs(force_l[i])) + totalMass * 9.81, 2) //Vertical
                                        );
-                       force_l[i] = calculeForceWithCaptureOptions(force);
                        */
-            double force = Math.Abs(force_l[i])  +  totalMass * 9.81 * Math.Sin(fse.AngleDefault * Math.PI / 
180.0);
+                       double force = Math.Abs(force_l[i])  +  totalMass * 9.81 * Math.Sin(fse.AngleDefault 
* Math.PI / 180.0);
+                       force_l[i] = calculeForceWithCaptureOptions(force);
                }
 
                calculeRepetitions(force_l);


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