mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
GPS Rescue: Add GPS LOST to Sanity Checks
This commit is contained in:
parent
f57b3f3dc7
commit
888c0e48f6
3 changed files with 14 additions and 0 deletions
|
@ -591,6 +591,11 @@ bool gpsNewFrame(uint8_t c)
|
|||
return false;
|
||||
}
|
||||
|
||||
// Check for healthy communications
|
||||
bool gpsIsHealthy()
|
||||
{
|
||||
return (gpsData.state == GPS_RECEIVING_DATA);
|
||||
}
|
||||
|
||||
/* This is a light implementation of a GPS frame decoding
|
||||
This should work with most of modern GPS devices configured to output 5 frames.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue