changes in eqep2 master
authorJordi <jordiguerrero@gmail.com>
Sat, 20 Feb 2016 13:32:19 +0000 (13:32 +0000)
committerJordi <jordiguerrero@gmail.com>
Sat, 20 Feb 2016 13:32:19 +0000 (13:32 +0000)
PID_test.py
bashScripts/enable_encoder_slots.sh

index 9c26b3f..e3dc69a 100644 (file)
@@ -11,9 +11,10 @@ from Fresonbot import Fresonbot
 robot1 = Fresonbot() # Using Fresonbot class
 
 # Use it variable to describe your trajectory ([x1,y2,x2,y2,....,xn,yn])
-it = iter([400,0,400,400,0,400,200,200,0,0,400,0,400,400,0,400,200,200,0,0])
+#it = iter([400,0,400,400,0,400,200,200,0,0,400,0,400,400,0,400,200,200,0,0])
 #it = iter([400,0,400,400,0,400,200,200,0,0])
 #it = iter([200,0,200,200,0,200,0,0])
+it = iter([100,0,100,100,0,100,0,0])
 #it = iter([200,100])
 
 # PID constants
index 04306e4..b65b5f7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 left_slot="bone_eqep1"
-right_slot="bone_eqep2b"
+right_slot="bone_eqep2"
 
 if grep -q  bone_eqep1 /sys/devices/bone_capemgr.9/slots; then
     echo "left slot already enabled"
@@ -9,9 +9,9 @@ else
     echo bone_eqep1 > /sys/devices/bone_capemgr.9/slots
 fi
 
-if grep -q  bone_eqep2b /sys/devices/bone_capemgr.9/slots; then
+if grep -q  bone_eqep2 /sys/devices/bone_capemgr.9/slots; then
     echo "right slot already enabled"
 else
-    echo bone_eqep2b > /sys/devices/bone_capemgr.9/slots
+    echo bone_eqep2 > /sys/devices/bone_capemgr.9/slots
 fi