mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
* fix(navigator): honor yaw in LAND and VTOL_LAND * fix(navigator): accept any altitude for ALIGN_TO_LAND work item mc_landing_after_transition (#24115) widens the altitude acceptance radius to FLT_MAX for WORK_ITEM_TYPE_MOVE_TO_LAND, since a VTOL back-transitioning to MC may be well above the landing altitude. The new WORK_ITEM_TYPE_ALIGN_TO_LAND work item has the same issue: a low VTOL climbs back to its current altitude to align heading before descending to land, so it needs the same unrestricted altitude acceptance or it can get stuck trying to exactly hit an altitude it isn't at. * fix(navigator): skip ROI yaw override during ALIGN_TO_LAND on_active() overrides the mission item's yaw toward the active ROI for rotary wing vehicles, excluding takeoff, VTOL transition, landing, and WORK_ITEM_TYPE_ALIGN_HEADING. WORK_ITEM_TYPE_ALIGN_TO_LAND runs with nav_cmd temporarily set to NAV_CMD_WAYPOINT, so none of those exclusions match it, and the ROI override stomps the mission-commanded landing heading before the vehicle starts descending. Exclude WORK_ITEM_TYPE_ALIGN_TO_LAND the same way WORK_ITEM_TYPE_ALIGN_HEADING already is. * test(navigator) honoring yaw during landing * fix(navigator): specifiy land_precision in handleLanding * fix(test): add RTL Align landing tests in seperate binary * docs(weathervane): weathervane is disable when yaw item is set * tests(navigator): bring RTL tests back into 1 file * refactor(navigator): remove unused setting of yaw of next waypoint --------- Signed-off-by: henrykotze <henry.kotze1996@gmail.com>