From ae060b62b899be98b007ce8c01765dc98fa4a628 Mon Sep 17 00:00:00 2001 From: Tobias Simon Date: Thu, 16 Feb 2012 14:26:32 +0100 Subject: [PATCH] increased GPS sat timeout from 1 second to 10 seconds sending GPS sat information via a low-bandwidth link like the UM96 @ 9600 baud should also work at low frequencies like 0.2 Hz --- src/ui/HSIDisplay.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/HSIDisplay.cc b/src/ui/HSIDisplay.cc index 9edb21991..3fc426aa1 100644 --- a/src/ui/HSIDisplay.cc +++ b/src/ui/HSIDisplay.cc @@ -1106,8 +1106,8 @@ void HSIDisplay::drawGPS(QPainter &painter) i.next(); GPSSatellite* sat = i.value(); - // Check if update is not older than 5 seconds, else delete satellite - if (sat->lastUpdate + 1000000 < currTime) { + // Check if update is not older than 10 seconds, else delete satellite + if (sat->lastUpdate + 10000000 < currTime) { // Delete and go to next satellite gpsSatellites.remove(i.key()); if (i.hasNext()) { -- 2.22.0