PID OK
authorJordi <jordiguerrero@gmail.com>
Fri, 5 Feb 2016 16:46:42 +0000 (16:46 +0000)
committerJordi <jordiguerrero@gmail.com>
Fri, 5 Feb 2016 16:46:42 +0000 (16:46 +0000)
Fresonbot.py
bashScripts/test_encoders.sh

index e4e9fad..cdecd80 100644 (file)
@@ -65,8 +65,8 @@ class Fresonbot(object):
         global TicksLeft
         global TicksRight
 
-        fTicksLeft = "/sys/devices/ocp.3/48302000.epwmss/48302180.eqep/position"
-        fTicksRight = "/sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position"
+        fTicksLeft = "/sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position"
+        fTicksRight = "/sys/devices/ocp.3/48302000.epwmss/48302180.eqep/position"
         foTicksLeft = open(fTicksLeft, "r")
         foTicksRight = open(fTicksRight, "r")
 
index e38fbd3..9d55900 100755 (executable)
@@ -4,8 +4,8 @@
 
 while :
 do
-    echo -ne Left: $(cat /sys/devices/ocp.3/48302000.epwmss/48302180.eqep/position)
-    echo -ne " Right:" $(cat /sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position)
+    echo -ne Left: $(cat /sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position)
+    echo -ne " Right:" $(cat /sys/devices/ocp.3/48302000.epwmss/48302180.eqep/position)
     
     echo "  -- Press q to quit!"