[chronojump] Fixed bug in gearedDown since last commits



commit a83b5a810e5efe329e3ec35d81da745d6c6b0088
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Mar 9 01:21:45 2016 +0100

    Fixed bug in gearedDown since last commits

 encoder/graph.R |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 3ff348c..6742632 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -2206,6 +2206,9 @@ doProcess <- function(options)
                                countLines=countLines+1;
                                next;
                        }
+
+                       #fix gearedDown
+                       inputMultiData$econfGearedDown[i] = 
readFromFile.gearedDown(inputMultiData$econfGearedDown[i])
                        
                        dataTempFile=scan(file=as.vector(inputMultiData$fullURL[i]),sep=",")
 
@@ -2266,7 +2269,7 @@ doProcess <- function(options)
                                econfAnglePush[(i+newLines)] = inputMultiData$econfAnglePush[i]
                                econfAngleWeight[(i+newLines)] = inputMultiData$econfAngleWeight[i]
                                econfInertia[(i+newLines)] = inputMultiData$econfInertia[i]/10000.0 #comes in 
Kg*cm^2 eg: 100; convert it to Kg*m^2 eg: 0.010
-                               econfGearedDown[(i+newLines)] = 
readFromFile.gearedDown(inputMultiData$econfGearedDown[i])
+                               econfGearedDown[(i+newLines)] = inputMultiData$econfGearedDown[i]
 
                                curvesHeight[(i+newLines)] = sum(dataTempPhase)
 


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