Browse Source

AP_GPS: stop blending if too many blending failures

master
Randy Mackay 8 years ago
parent
commit
e9c881c668
  1. 4
      libraries/AP_GPS/AP_GPS.cpp

4
libraries/AP_GPS/AP_GPS.cpp

@ -638,6 +638,10 @@ AP_GPS::update(void) @@ -638,6 +638,10 @@ AP_GPS::update(void)
} else if (_blend_health_counter > 0) {
_blend_health_counter--;
}
// stop blending if unhealthy
if (_blend_health_counter >= 50) {
_output_is_blended = false;
}
} else {
_output_is_blended = false;
_blend_health_counter = 0;

Loading…
Cancel
Save