[chronojump] RunInterval: fixed distance, time, speed on agility tests (distancesString != "") since reversed bar
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RunInterval: fixed distance, time, speed on agility tests (distancesString != "") since reversed bar
- Date: Thu, 21 Apr 2022 14:24:19 +0000 (UTC)
commit 75a0248295258407c42a98a04b9ce24bad70f97b
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Apr 21 16:23:17 2022 +0200
RunInterval: fixed distance, time, speed on agility tests (distancesString != "") since reversed bars
src/gui/eventExecute.cs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 4f3a122f5..545250454 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -3186,15 +3186,14 @@ public class CairoPaintBarsPreRunIntervalRealtimeCapture : CairoPaintBarsPre
int count = 0;
foreach(string t in timeFull)
{
- double distance = lastDistance;
- if(distancesString != "") //if distances are variable
+ if(distancesString != null && distancesString != "") //if distances are variable
{
//this will return a 0 on Rest period on RSA
- distance = Util.GetRunIVariableDistancesStringRow(distancesString, count);
+ distanceInterval = Util.GetRunIVariableDistancesStringRow(distancesString,
count);
}
//ifRSAstartRest = true;
- if(distance > 0 //is not RSA rest period
+ if(distanceInterval > 0 //is not RSA rest period
&&
Util.IsNumber(t, true))
{
@@ -3206,8 +3205,8 @@ public class CairoPaintBarsPreRunIntervalRealtimeCapture : CairoPaintBarsPre
time = tDouble;
time_l.Add(time);
- distance_l.Add(distance);
- speed_l.Add(distance / time);
+ distance_l.Add(distanceInterval);
+ speed_l.Add(distanceInterval / time);
//ifRSAstartRest = false;
}
count ++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]