Skip to content

Commit

Permalink
AP_GPS: stop blending if too many blending failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Mar 10, 2017
1 parent ebe8040 commit aeb2cf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_GPS/AP_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aeb2cf1

Please sign in to comment.