[chronojump] Encoder ecc ground phase starts when force >= 0 like in paint (not >= weight)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Encoder ecc ground phase starts when force >= 0 like in paint (not >= weight)
- Date: Mon, 4 Nov 2019 12:15:45 +0000 (UTC)
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]