]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/commitdiff
Added forgotten files
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 28 Mar 2013 15:54:43 +0000 (16:54 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 28 Mar 2013 15:54:43 +0000 (16:54 +0100)
GNUmakefile [new file with mode: 0644]
motor-reg.sh [new file with mode: 0644]

diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644 (file)
index 0000000..ad14bee
--- /dev/null
@@ -0,0 +1,2 @@
+override KERNELDIR=$(shell cd ../3.4-rt/build/; pwd)
+include Makefile
diff --git a/motor-reg.sh b/motor-reg.sh
new file mode 100644 (file)
index 0000000..fec5aae
--- /dev/null
@@ -0,0 +1,10 @@
+A=/sys/devices/motorek.1/action
+P=/sys/devices/motorek.1/position
+ref=1000
+while true; do 
+       p=$(cat $P); 
+       e=$((ref-p));
+       echo $((e/2)) > $A; 
+       echo $p; 
+       sleep 0.01; 
+done