[chronojump] Fixed air/land shown on ec on some encoderConfigs that shouldn't
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed air/land shown on ec on some encoderConfigs that shouldn't
- Date: Mon, 21 Dec 2015 15:15:11 +0000 (UTC)
commit 7ce098cf2dd1e35d9e4e98bcb6d5a303ffbdf9bf
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 21 16:13:45 2015 +0100
Fixed air/land shown on ec on some encoderConfigs that shouldn't
encoder/graph.R | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 19b89dd..35652ae 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -1078,7 +1078,7 @@ paint <- function(displacement, eccon, xmin, xmax, yrange, knRanges, superpose,
if(eccon=="ec") {
#landing = min(which(force>=weight))
- if(length(which(force[eccentric] <= weight)) == 0)
+ if(! canJump(encoderConfigurationName) || length(which(force[eccentric] <= weight))
== 0)
landing = -1
else {
landing = max(which(force[eccentric]<=weight))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]