add some scripts

This commit is contained in:
2022-07-19 19:59:28 +03:00
parent 73bdcfb119
commit 3a649661b8
26 changed files with 482 additions and 43 deletions

21
Daemons/astrosib/point_AH.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
A="$1" # azimuth in sexagesimal notation, e.g. 10:00:00
H="$2" # altitude, same format as form azimuth
function sendcmd(){
echo $1 | nc localhost 10001 -q10
}
sendcmd ":Sz${A}#"
sendcmd ":Sa${H}#"
# not slew
sendcmd ":MA#"
# slew
# sendcmd ":MS#"
while true; do
ANS=$(sendcmd ":Gstat#")
echo $ANS
[ $ANS == "7#" ] && break
sleep 2
done