mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 21:30:11 +00:00
updates
This commit is contained in:
parent
5006f66b68
commit
67e548907d
1 changed files with 2 additions and 2 deletions
|
@ -46,10 +46,10 @@ while :; do
|
||||||
distance="$(nice -n 20 distance "$lat" "$lon" "$new_lat" "$new_lon")"
|
distance="$(nice -n 20 distance "$lat" "$lon" "$new_lat" "$new_lon")"
|
||||||
if (( ${distance%%.*} > ${GPSD_MIN_DISTANCE:-20} )); then
|
if (( ${distance%%.*} > ${GPSD_MIN_DISTANCE:-20} )); then
|
||||||
"${s6wrap[@]}" echo "Receiver moved ${distance%%.*} meters - restarting all mlat-clients"
|
"${s6wrap[@]}" echo "Receiver moved ${distance%%.*} meters - restarting all mlat-clients"
|
||||||
# flag to the mlat-client script that it should try to use GPS coords instead of the predefined LAT/LON
|
|
||||||
touch /run/.gpsd_is_active
|
|
||||||
# kill the mlat-client instances so they get restarted with the new GPS coords
|
# kill the mlat-client instances so they get restarted with the new GPS coords
|
||||||
pkill -f "/usr/bin/python3 /usr/bin/mlat-client" >/dev/null 2>&1
|
pkill -f "/usr/bin/python3 /usr/bin/mlat-client" >/dev/null 2>&1
|
||||||
|
lat="$new_lat"
|
||||||
|
lon="$new_lon"
|
||||||
fi
|
fi
|
||||||
sleep "${GPSD_CHECK_INTERVAL:-30}" & wait $!
|
sleep "${GPSD_CHECK_INTERVAL:-30}" & wait $!
|
||||||
done
|
done
|
Loading…
Reference in a new issue