mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 13:07:34 +08:00
ekf2: vehicle_local_position add dead_reckoning flag
This commit is contained in:
committed by
Silvan Fuhrer
parent
9886660862
commit
ac209c2e78
@@ -1019,6 +1019,9 @@ void EKF2::PublishLocalPosition(const hrt_abstime ×tamp)
|
||||
_ekf.get_posNE_reset(&lpos.delta_xy[0], &lpos.xy_reset_counter);
|
||||
_ekf.get_velNE_reset(&lpos.delta_vxy[0], &lpos.vxy_reset_counter);
|
||||
|
||||
lpos.dead_reckoning = _ekf.control_status_flags().inertial_dead_reckoning
|
||||
|| _ekf.control_status_flags().wind_dead_reckoning;
|
||||
|
||||
// get control limit information
|
||||
_ekf.get_ekf_ctrl_limits(&lpos.vxy_max, &lpos.vz_max, &lpos.hagl_min, &lpos.hagl_max);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user