Skip to content

Commit

Permalink
AP_Scripting: Add a function to retrieve the LANDED_STATE
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 3, 2024
1 parent 9cbc234 commit a70ba26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2387,6 +2387,15 @@ function vehicle:is_taking_off() end
---@return boolean
function vehicle:is_landing() end

-- desc
---@return integer
---| '0' # unknown
---| '1' # landed (on ground)
---| '2' # in air
---| '3' # currently taking off
---| '4' # currently landing
function vehicle:get_landed_state() end

-- desc
onvif = {}

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ singleton AP_Vehicle method has_ekf_failsafed boolean
singleton AP_Vehicle method reboot void boolean
singleton AP_Vehicle method is_landing boolean
singleton AP_Vehicle method is_taking_off boolean
singleton AP_Vehicle method get_landed_state uint8_t

include AP_SerialLED/AP_SerialLED.h
singleton AP_SerialLED rename serialLED
Expand Down

0 comments on commit a70ba26

Please sign in to comment.