[chronojump] New Dj power formula. Added info on preferences



commit 95a3c55b056c1376dd9f1a094225b2ae35c2d495
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jul 14 17:55:04 2014 +0200

    New Dj power formula. Added info on preferences

 src/gui/preferences.cs |   13 +++++++++++--
 src/util.cs            |    2 +-
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 850f844..495ec2a 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -315,9 +315,18 @@ public class PreferencesWindow {
                new DialogMessage(Constants.MessageTypes.INFO, 
                                Catalog.GetString("On jumps results tab, power is calculated depending on 
jump type:") + 
                                "\n\n" +
-                               Catalog.GetString("Jumps with TC & TF: Bosco Relative Power (W/Kg)") + 
+                               //Catalog.GetString("Jumps with TC & TF: Bosco Relative Power (W/Kg)") + 
+                               //"\n" +
+                               //Catalog.GetString("P = 24.6 * (Total time + Flight time) / Contact time") + 
+                               Catalog.GetString("Jumps with TC & TF:") + " " + Catalog.GetString("Developed 
by Chronojump team") + 
                                "\n" +
-                               Catalog.GetString("P = 24.6 * (Total time + Flight time) / Contact time") + 
+                               Catalog.GetString("Calcule the potential energies on fall and after the 
jump.") + "\n" + 
+                               Catalog.GetString("Divide them by time during force is applied.") +
+                               "\n" +
+                               //P = mass * g * ( fallHeight + 1.226 * Math.Pow(tf,2) ) / (Double)tt;
+                               "P = " + Catalog.GetString("mass") + " * g * ( " + 
+                               Catalog.GetString("falling height") + " + 1.226 * " + 
Catalog.GetString("flight time") + " ^ 2 ) / " + 
+                               Catalog.GetString("total_time") +
                                "\n\n" +
                                Catalog.GetString("Jumps without TC: Lewis Peak Power 1974 (W)") + 
                                "\n" +
diff --git a/src/util.cs b/src/util.cs
index d821626..8a0e13f 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -602,7 +602,7 @@ public class Util
 
                //new method (proposal by Xavier Padullés)
                //Calcule the potential energies before (mass * g * fallHeight) and after the jump (mass * g 
* tv^2 * 1.226)
-               //and divide by the time during force is produced
+               //and divide by the time during force is applied
                double g = 9.81;
                double tt = tc + tf; //totalTime
                fallHeight = fallHeight / 100.0; //cm -> m


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