[chronojump] Fixed ROTARYAXISINERTIAL



commit 6be4345a0d24f6cbb502bc50681332ed4d6d4b18
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Mar 14 15:03:45 2014 +0100

    Fixed ROTARYAXISINERTIAL

 encoder/graph.R |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index bbeb522..313a926 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -1923,7 +1923,7 @@ D=D/100 #cm -> m
        } else {
                #(encoderConfigurationName == "ROTARYAXISINERTIAL")
                ticksRotaryEncoder = 200 #our rotary axis encoder send 200 ticks by turn
-#revisar               angle = abs(cumsum(displacement)) * 2 * pi / ticksRotaryEncoder
+               angle = abs(cumsum(displacement * 1000)) * 2 * pi / ticksRotaryEncoder
 
                angleSpeed = getSpeed(angle, smoothing)
                angleAccel = getAcceleration(angleSpeed)      


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