exchanging encoders
[fresonbot.git] / bashScripts / test_encoders.sh
1 #!/bin/bash
2
3 ./enable_encoder_slots.sh
4
5 while :
6 do
7     echo -ne Left: $(cat /sys/devices/ocp.3/48302000.epwmss/48302180.eqep/position)
8     echo -ne " Right:" $(cat /sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position)
9     
10     echo "  -- Press q to quit!"
11
12     read -t 2 -n 1 key
13
14     if [[ $key = q ]]
15     then
16         break
17     fi
18 done