Skip to content

Commit

Permalink
AP_Scripting: Add bindings for jump to landing and abort in the mission
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell committed Jan 8, 2024
1 parent 0cf6160 commit f3c3823
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,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
Expand Down

0 comments on commit f3c3823

Please sign in to comment.