Skip to content

Commit

Permalink
AP_Scripting: add get_breached_margins()
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 12, 2024
1 parent 63b9d9a commit 9fbfa49
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -3906,6 +3906,14 @@ function fence:get_breach_time() end
---| 8 # Minimum altitude
function fence:get_breaches() end

-- Returns the type bitmask of any fence whose margins have been crossed
---@return integer fence_type bitmask
---| 1 # Maximim altitude
---| 2 # Circle
---| 4 # Polygon
---| 8 # Minimum altitude
function fence:get_margin_breaches() end

-- desc
---@class (exact) stat_t_ud
local stat_t_ud = {}
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 @@ -992,6 +992,7 @@ singleton AC_Fence depends AP_FENCE_ENABLED
singleton AC_Fence rename fence
singleton AC_Fence method get_breaches uint8_t
singleton AC_Fence method get_breach_time uint32_t
singleton AC_Fence method get_margin_breaches uint8_t

include AP_Filesystem/AP_Filesystem.h depends AP_FILESYSTEM_FILE_READING_ENABLED
include AP_Filesystem/AP_Filesystem_config.h
Expand Down

0 comments on commit 9fbfa49

Please sign in to comment.