mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 16:50:59 +03:00
add some scripts
This commit is contained in:
22
Auxiliary_utils/bash_scripts/park_telescope
Executable file
22
Auxiliary_utils/bash_scripts/park_telescope
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
A="01:48:38"
|
||||
H="01:13:29"
|
||||
|
||||
function sendcmd(){
|
||||
echo $1 | nc 192.168.70.33 10001 -q10
|
||||
}
|
||||
|
||||
#lower limit is 0
|
||||
sendcmd ":So0#"
|
||||
sendcmd ":Sz${A}#"
|
||||
sendcmd ":Sa${H}#"
|
||||
sendcmd ":MA#"
|
||||
while true; do
|
||||
ANS=$(sendcmd ":Gstat#")
|
||||
echo $ANS
|
||||
[ "$ANS" == "0#" -o "$ANS" == "7#" ] && break
|
||||
sleep 2
|
||||
done
|
||||
# stop tracking
|
||||
sendcmd ":AL#"
|
||||
Reference in New Issue
Block a user