mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user