diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index b3b2deba2f..00e2ee4ca1 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1799,6 +1799,14 @@ function mission:get_index_of_jump_tag(tag) end function mission:get_last_jump_tag() end +-- Jump the mission to the start of the closest landing sequence. Returns true if one was found +---@return boolean +function mission:jump_to_landing_sequence() end + +-- Jump to the landing abort sequence +-- @return boolean +function mission:jump_to_abort_landing_sequence() end + -- desc ---@class param param = {} diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 7cbc293a90..5788f9c64c 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -485,6 +485,8 @@ singleton AP_Mission method cmd_has_location boolean uint16_t'skip_check singleton AP_Mission method jump_to_tag boolean uint16_t 0 UINT16_MAX singleton AP_Mission method get_index_of_jump_tag uint16_t uint16_t 0 UINT16_MAX singleton AP_Mission method get_last_jump_tag boolean uint16_t'Null uint16_t'Null +singleton AP_Mission method jump_to_landing_sequence boolean +singleton AP_Mission method jump_to_abort_landing_sequence boolean userdata mavlink_mission_item_int_t depends AP_MISSION_ENABLED