[chronojump] cont of last commit



commit 2e45379af6502677a7c5956328a67c2bd4efb0f9
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 4 12:58:24 2022 +0200

    cont of last commit

 src/jump.cs          | 6 ++++++
 src/treeview/jump.cs | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/jump.cs b/src/jump.cs
index f851ffc89..c483a0000 100644
--- a/src/jump.cs
+++ b/src/jump.cs
@@ -97,6 +97,12 @@ public class Jump : Event
                return Util.GetStiffness(personMassInKg, extraMass, tv, tc);
        }       
 
+       //in JumpRj do not use this because we don't know on which subjumps use it
+       public double GetInitialSpeedJumpSimple (bool metersSecondsPreferred)
+       {
+               return (GetInitialSpeed (tv, metersSecondsPreferred));
+       }
+
        //old code sends and returns strings
        public static string GetInitialSpeed (string time, bool metersSecondsPreferred)
        {
diff --git a/src/treeview/jump.cs b/src/treeview/jump.cs
index a5c454bac..86e05beb9 100644
--- a/src/treeview/jump.cs
+++ b/src/treeview/jump.cs
@@ -231,7 +231,7 @@ public class TreeViewJumps : TreeViewEvent
                if (preferences.showStiffness)
                        myData[count++] = newJump.Stiffness(personWeight, weightInKg).ToString();
                if (preferences.showInitialSpeed) 
-                       myData[count++] = Util.TrimDecimals(Jump.GetInitialSpeed(newJump.Tv.ToString(), 
preferences.metersSecondsPreferred), pDN);
+                       myData[count++] = Util.TrimDecimals(newJump.GetInitialSpeedJumpSimple 
(preferences.metersSecondsPreferred), pDN);
                if (preferences.showJumpRSI)
                        myData[count++] = Util.TrimDecimals(newJump.RSI, pDN);
                if (preferences.showAngle) 


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