[gps] Outback safety rules demand actions upon loss of GPS, but one still must be able to startup

closes #868
This commit is contained in:
dewagter
2014-10-23 09:19:57 +02:00
committed by Felix Ruess
parent 931bfb00c0
commit 3c776a5598
+9
View File
@@ -118,6 +118,15 @@ static inline bool_t GpsIsLost(void) {
return TRUE;
}
static inline bool_t gps_has_been_good(void) {
static bool_t gps_has_been_good = FALSE;
if (GpsFixValid()) {
gps_has_been_good = TRUE;
}
return gps_has_been_good;
}
/** Periodic GPS check.
* Marks GPS as lost when no GPS message was received for GPS_TIMEOUT seconds
*/