[chronojump] Encoder ecc ground phase starts when force >= 0 like in paint (not >= weight)



commit 2d08ef7afbea32cb359308c92a2230efe21b1e2a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Nov 4 13:14:42 2019 +0100

    Encoder ecc ground phase starts when force >= 0 like in paint (not >= weight)

 encoder/util.R | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/encoder/util.R b/encoder/util.R
index c5ec01da..0ba27b69 100644
--- a/encoder/util.R
+++ b/encoder/util.R
@@ -628,8 +628,8 @@ kinematicsF <- function(displacement, repOp, smoothingOneEC, smoothingOneC, g, i
                }
                
                weight = mass * g
-               if(length(which(force[eccentric] <= weight)) > 0) {
-                       landing = max(which(force[eccentric]<=weight))
+               if(length(which(force[eccentric] <= 0)) > 0) {
+                       landing = max(which(force[eccentric]<=0))
                        start = landing
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]