[chronojump] RaceAnalyzer do not write to file the triggers with 0 displacement
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer do not write to file the triggers with 0 displacement
- Date: Thu, 6 May 2021 16:31:23 +0000 (UTC)
commit 2622b48d72159f70a43348f25e1e0282a60e7638
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu May 6 18:29:02 2021 +0200
RaceAnalyzer do not write to file the triggers with 0 displacement
src/gui/app1/runEncoder.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index b64bd66a..729c8e37 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -603,7 +603,12 @@ public partial class ChronoJumpWindow
}
LogB.Information(string.Format("{0};{1};{2};{3};{4}", pps,
reCGSD.EncoderDisplacement, reCGSD.Time, reCGSD.Force, reCGSD.EncoderOrRCA));
- writer.WriteLine(string.Format("{0};{1};{2}", reCGSD.EncoderDisplacement,
reCGSD.Time, reCGSD.Force));
+
+ if(reCGSD.EncoderDisplacement == 0)
+ LogB.Information("It is a trigger and without displacement, do not write it
to file");
+ else
+ writer.WriteLine(string.Format("{0};{1};{2}", reCGSD.EncoderDisplacement,
reCGSD.Time, reCGSD.Force));
+
if(reCGSD.EncoderOrRCA == 0)
rowsCount ++; //note this is not used right now, and maybe it will need to be
for all cases, not just for encoderOrRCA
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]