[chronojump] Fixed encoder capture decimals conditions
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed encoder capture decimals conditions
- Date: Fri, 13 Apr 2012 08:17:52 +0000 (UTC)
commit 9e63b15af1a9550aeee7c7db92a8963e371a9188
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 13 10:17:06 2012 +0200
Fixed encoder capture decimals conditions
encoder/pyserial_pyper.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/encoder/pyserial_pyper.py b/encoder/pyserial_pyper.py
index ceb732b..2ce3509 100644
--- a/encoder/pyserial_pyper.py
+++ b/encoder/pyserial_pyper.py
@@ -54,10 +54,10 @@ smoothingOne = float(sys.argv[6])
eccon = sys.argv[7] #contraction "ec" or "c"
heightHigherCondition = int(sys.argv[8])
heightLowerCondition = int(sys.argv[9])
-meanSpeedHigherCondition = int(sys.argv[10])
-meanSpeedLowerCondition = int(sys.argv[11])
-maxSpeedHigherCondition = int(sys.argv[12])
-maxSpeedLowerCondition = int(sys.argv[13])
+meanSpeedHigherCondition = float(sys.argv[10])
+meanSpeedLowerCondition = float(sys.argv[11])
+maxSpeedHigherCondition = float(sys.argv[12])
+maxSpeedLowerCondition = float(sys.argv[13])
powerHigherCondition = int(sys.argv[14])
powerLowerCondition = int(sys.argv[15])
peakPowerHigherCondition = int(sys.argv[16])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]