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:
parent
46b072763d
commit
0420702070
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue