[chronojump] RaceAnalyzer. Fixed speed shown during capture
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer. Fixed speed shown during capture
- Date: Mon, 4 Jan 2021 16:45:16 +0000 (UTC)
commit 30cafbc5da78f800c99ceb6313f871e338f3f3b1
Author: Xavier Padullés <x padulles gmail com>
Date: Mon Jan 4 17:44:21 2021 +0100
RaceAnalyzer. Fixed speed shown during capture
src/gui/app1/runEncoder.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 8c5917893..c5312cee5 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -545,7 +545,7 @@ public partial class ChronoJumpWindow
if(timePre > 0)
{
double runEncoderCaptureDistanceAtThisSample =
Math.Abs(encoderDisplacement) * 0.003003; //hardcoded: same as sprintEncoder.R
- runEncoderCaptureSpeed =
UtilAll.DivideSafe(runEncoderCaptureDistanceAtThisSample, (time - timePre));
+ runEncoderCaptureSpeed =
UtilAll.DivideSafe(runEncoderCaptureDistanceAtThisSample, (time - timePre)) * 1000000;
runEncoderCaptureDistance += runEncoderCaptureDistanceAtThisSample;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]