1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 13:20:11 +00:00

minor addition

This commit is contained in:
kx1t 2024-05-23 17:47:57 -04:00 committed by Matthias Wirth
parent 46b072763d
commit 0420702070

View file

@ -42,7 +42,7 @@ while :; do
new_lat="$(jq -r .lat /run/readsb/gpsd.json)" new_lat="$(jq -r .lat /run/readsb/gpsd.json)"
new_lon="$(jq -r .lon /run/readsb/gpsd.json)" new_lon="$(jq -r .lon /run/readsb/gpsd.json)"
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 )); 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 # 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 touch /run/.gpsd_is_active