mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:53:35 +08:00
Add new mode AUTO_PRECLAND
This commit is contained in:
committed by
Kabir Mohammed
parent
f02ef20a23
commit
1b1617b5a0
@@ -207,6 +207,12 @@ void get_mavlink_navigation_mode(const struct vehicle_status_s *const status, ui
|
||||
custom_mode->sub_mode = PX4_CUSTOM_SUB_MODE_AUTO_FOLLOW_TARGET;
|
||||
break;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_PRECLAND:
|
||||
*mavlink_base_mode |= auto_mode_flags;
|
||||
custom_mode.main_mode = PX4_CUSTOM_MAIN_MODE_AUTO;
|
||||
custom_mode.sub_mode = PX4_CUSTOM_SUB_MODE_AUTO_PRECLAND;
|
||||
break;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_RTL:
|
||||
|
||||
/* fallthrough */
|
||||
|
||||
Reference in New Issue
Block a user