EKF: Fix error message which lied

This commit is contained in:
Lorenz Meier
2016-04-05 19:05:22 -07:00
parent a352c2f4e3
commit f86ef34782
+3 -1
View File
@@ -184,7 +184,9 @@ void Ekf::controlFusionModes()
_control_status.flags.rng_hgt = false;
// adjust the height offset so we can use the GPS
_hgt_sensor_offset = _state.pos(2) + gps_init.hgt - _gps_alt_ref;
printf("EKF baro hgt timeout - switching to gps\n");
if (!baro_hgt_available) {
printf("EKF baro hgt timeout - switching to gps\n");
}
}
}