mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 13:23:35 +08:00
vtol: always check for EKF2 resets, not just when QC is checked
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -373,6 +373,8 @@ VtolAttitudeControl::Run()
|
||||
_air_density = air_data.rho;
|
||||
}
|
||||
|
||||
_vtol_type->handleEkfResets();
|
||||
|
||||
// check if mc and fw sp were updated
|
||||
const bool mc_att_sp_updated = _mc_virtual_att_sp_sub.update(&_mc_virtual_att_sp);
|
||||
const bool fw_att_sp_updated = _fw_virtual_att_sp_sub.update(&_fw_virtual_att_sp);
|
||||
|
||||
Reference in New Issue
Block a user