mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:53:34 +08:00
EKF: Publish initial altitude estimate in any case
This commit is contained in:
@@ -699,10 +699,9 @@ void AttitudePositionEstimatorEKF::task_main()
|
||||
// Publish Local Position estimations
|
||||
publishLocalPosition();
|
||||
|
||||
// Publish Global Position, but only if it's any good
|
||||
if (_gpsIsGood || _global_pos.dead_reckoning) {
|
||||
publishGlobalPosition();
|
||||
}
|
||||
// Publish Global Position, it will have a large uncertainty
|
||||
// set if only altitude is known
|
||||
publishGlobalPosition();
|
||||
|
||||
// Publish wind estimates
|
||||
if (hrt_elapsed_time(&_wind.timestamp) > 99000) {
|
||||
|
||||
Reference in New Issue
Block a user