[chronojump] RaceAnalyzer Do not graph triggers with 0 displacement
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer Do not graph triggers with 0 displacement
- Date: Thu, 6 May 2021 16:31:23 +0000 (UTC)
commit 9d2efe67d76e11c9acdcecc670c62407e0110555
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu May 6 18:29:35 2021 +0200
RaceAnalyzer Do not graph triggers with 0 displacement
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 729c8e37..08b95873 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -589,7 +589,7 @@ public partial class ChronoJumpWindow
//time (4 bytes: long at Arduino, uint at c-sharp), force (2 bytes: uint)
List<int> binaryReaded = readBinaryRunEncoderValues();
reCGSD.PassCapturedRow (binaryReaded);
- if(reCGSD.Calcule())
+ if(reCGSD.Calcule() && reCGSD.EncoderDisplacement != 0) //this 0s are triggers
without displacement
{
//distance/time
cairoGraphRaceAnalyzerPoints_dt_l.Add(new PointF(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]