[chronojump] ForceSensor. NotElastic also shows force in one measurement direction



commit af659756d62dbebce9a7f5501eb6b578800dfb2b
Author: Xavier Padullés <testing chronojump org>
Date:   Thu Dec 23 16:48:46 2021 +0100

    ForceSensor. NotElastic also shows force in one measurement direction

 src/forceSensorDynamics.cs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/forceSensorDynamics.cs b/src/forceSensorDynamics.cs
index 21caa0165..a2a05b740 100644
--- a/src/forceSensorDynamics.cs
+++ b/src/forceSensorDynamics.cs
@@ -394,11 +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));
                }
 
                calculeRepetitions(force_l);


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