mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 11:31:35 +08:00
Previously the condition was based on hard coded height rate estimate and setpoint values and an altitude error threshold. That showed to be leading to false positives when the vehicle doesn't tightly follow the altitdue ramp given by TECS to achieve a new altitude setpoint, and has become completely infeasibly with the latest TECS rework that leads to non-ramped altitude setpoint changes in the tecs_status message. The new check no longer checks the altitude error but only the height rate instead. It begins to integrate the height rate error once it detects an uncommanded descend condition (height rate negative while setpoint is positive). Integral threshold can be tuned by user (VT_QC_HR_ERROR_I). Signed-off-by: Silvan Fuhrer <silvan@auterion.com>