summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGravatar jet tsang zeon-git <zeon-git@jettsang.com> 2020-08-11 14:17:51 +0800
committerGravatar jet tsang zeon-git <zeon-git@jettsang.com> 2020-08-11 14:17:51 +0800
commit9864f3621afd5b08c68de8f2176c780051426b53 (patch)
tree1c180de73ce81128fb1fdd47121bc31a201c8634 /cmd
parentAdd lobotctl for debug instruction bytes (diff)
downloadlobot-9864f3621afd5b08c68de8f2176c780051426b53.tar.gz
lobot-9864f3621afd5b08c68de8f2176c780051426b53.tar.bz2
lobot-9864f3621afd5b08c68de8f2176c780051426b53.zip
sendInstruction not need values
Signed-off-by: jet tsang zeon-git <zeon-git@jettsang.com>
Diffstat (limited to 'cmd')
-rwxr-xr-xcmd/lobotctl/demo.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/cmd/lobotctl/demo.sh b/cmd/lobotctl/demo.sh
new file mode 100755
index 0000000..abb2304
--- /dev/null
+++ b/cmd/lobotctl/demo.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+#init
+./lobotctl -port /dev/ttyAMA0 -id 2 -instruction MoveTimeWrite -arguments 130,150
+sleep 0.5
+
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 200,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 280,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 200,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 280,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 0,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 280,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 380,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 280,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 380,150
+sleep 0.5
+./lobotctl -port /dev/ttyAMA0 -id 1 -instruction MoveTimeWrite -arguments 0,150
+sleep 0.8
+
+./lobotctl -port /dev/ttyAMA0 -id 2 -instruction MoveTimeWrite -arguments 210,150
+sleep 0.2
+./lobotctl -port /dev/ttyAMA0 -id 2 -instruction MoveTimeWrite -arguments 0,150