1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-10-16 05:50:44 +00:00
This commit is contained in:
kx1t 2024-05-23 18:05:29 -04:00 committed by Matthias Wirth
parent 5006f66b68
commit 67e548907d

View file

@ -46,10 +46,10 @@ while :; do
distance="$(nice -n 20 distance "$lat" "$lon" "$new_lat" "$new_lon")"
if (( ${distance%%.*} > ${GPSD_MIN_DISTANCE:-20} )); then
"${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
pkill -f "/usr/bin/python3 /usr/bin/mlat-client" >/dev/null 2>&1
lat="$new_lat"
lon="$new_lon"
fi
sleep "${GPSD_CHECK_INTERVAL:-30}" & wait $!
done