mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 23:47:34 +08:00
EKF: fix bug in status print statement
This commit is contained in:
+1
-3
@@ -184,9 +184,7 @@ 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;
|
||||
if (!baro_hgt_available) {
|
||||
printf("EKF baro hgt timeout - switching to gps\n");
|
||||
}
|
||||
printf("EKF baro hgt timeout - switching to gps\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user