[chronojump] RunEncoder: Updated meters/pulse 0.003003 -> 0.0030321



commit dfbc2d88fe8768c990e7756bb563f7d534acf5e1
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Mar 4 19:14:31 2021 +0100

    RunEncoder: Updated meters/pulse 0.003003 -> 0.0030321

 r-scripts/sprintEncoder.R  | 2 +-
 src/gui/app1/runEncoder.cs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/r-scripts/sprintEncoder.R b/r-scripts/sprintEncoder.R
index 35c9742b..7979d0cc 100644
--- a/r-scripts/sprintEncoder.R
+++ b/r-scripts/sprintEncoder.R
@@ -100,7 +100,7 @@ getSprintFromEncoder <- function(filename, testLength, Mass, Temperature = 25, H
         #TODO: measure metersPerPulse several times to have an accurate value
        metersPerPulse = NULL
        if(device == "MANUAL")                 #manual race analyzer - Hand device
-               metersPerPulse = 0.003003       #HARDCODED, same as: src/gui/app1/runEncoder.cs
+               metersPerPulse = 0.0030321      #HARDCODED, same as: src/gui/app1/runEncoder.cs
        else                                    #resisted race analyzer - sled device
                metersPerPulse = 4 * 30 / 12267         #With an encoder of 200 ppr, in 30m there are 12267 
pulses.
 
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 8146154f..40a7fdf4 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -560,7 +560,7 @@ public partial class ChronoJumpWindow
                        {
                                if(timePre > 0)
                                {
-                                       double runEncoderCaptureDistanceAtThisSample = 
Math.Abs(encoderDisplacement) * 0.003003; //hardcoded: same as sprintEncoder.R
+                                       double runEncoderCaptureDistanceAtThisSample = 
Math.Abs(encoderDisplacement) * 0.0030321; //hardcoded: same as sprintEncoder.R
                                        runEncoderCaptureSpeed = 
UtilAll.DivideSafe(runEncoderCaptureDistanceAtThisSample, (time - timePre)) * 1000000;
 
                                        runEncoderCaptureDistance += runEncoderCaptureDistanceAtThisSample;


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