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

Add gpsIsOk function

parent 189de831
......@@ -475,3 +475,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