Tweak the on-the-ground conditions a little.

This commit is contained in:
Oliver Jowett 2016-09-02 18:45:39 +01:00
parent 2636353e4a
commit 1958b23a93

View file

@ -1837,7 +1837,8 @@ static void writeFATSV()
// don't send mode S very often // don't send mode S very often
minAge = 30000; minAge = 30000;
} else if ((airgroundValid && a->airground == AG_GROUND) || } else if ((airgroundValid && a->airground == AG_GROUND) ||
(altValid && a->altitude < 500 && speedValid && a->speed < 100)) { (altValid && a->altitude < 500 && (!speedValid || a->speed < 200)) ||
(speedValid && a->speed < 100 && (!altValid || a->altitude < 1000))) {
// we are probably on the ground, increase the update rate // we are probably on the ground, increase the update rate
minAge = 1000; minAge = 1000;
} else if (!altValid || a->altitude < 10000) { } else if (!altValid || a->altitude < 10000) {