1
0
Fork 0
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:
Tony Cabello 2018-11-16 15:01:24 +01:00
parent f57b3f3dc7
commit 888c0e48f6
3 changed files with 14 additions and 0 deletions

View file

@ -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.