Commit 838729ab authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Add gpsIsOk function

parent 291edd3e
......@@ -469,3 +469,8 @@ float getClimbRate(void) {
int healthAllOk(void) {
return telemetry->health_all_ok();
}
int gpsIsOk(void) {
Telemetry::FixType fixType = telemetry->gps_info().fix_type;
return (fixType != Telemetry::FixType::NoGps) && (fixType != Telemetry::FixType::NoFix);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment