Browse Source

BaroGlitch: use baro healthy()

master
Randy Mackay 11 years ago
parent
commit
53b073148b
  1. 2
      libraries/AP_Baro/AP_Baro_Glitch.cpp

2
libraries/AP_Baro/AP_Baro_Glitch.cpp

@ -65,7 +65,7 @@ void Baro_Glitch::check_alt() @@ -65,7 +65,7 @@ void Baro_Glitch::check_alt()
bool all_ok; // true if the new baro alt passes sanity checks
// exit immediately if baro is unhealthy
if (!_baro.healthy) {
if (!_baro.healthy()) {
_flags.glitching = true;
return;
}

Loading…
Cancel
Save