Skip to content

Commit

Permalink
AP_Scripting: add VisualOdom bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Feb 24, 2024
1 parent 7e6c6d6 commit 8520c57
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3448,3 +3448,15 @@ function networking:get_netmask_active() end
-- desc
---@return uint32_t_ud
function networking:get_ip_active() end

-- visual odometry object
--@class visual_odom
visual_odom = {}

-- visual odometry health
---@return boolean
function visual_odom:healthy() end

-- visual odometry quality as a percentage from 1 to 100 or 0 if unknown
---@return integer
function visual_odom:quality() end
6 changes: 6 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -915,3 +915,9 @@ singleton AP_Networking method get_ip_active uint32_t
singleton AP_Networking method get_netmask_active uint32_t
singleton AP_Networking method get_gateway_active uint32_t
singleton AP_Networking method address_to_str string uint32_t'skip_check

include AP_VisualOdom/AP_VisualOdom.h
singleton AP_VisualOdom depends HAL_VISUALODOM_ENABLED
singleton AP_VisualOdom rename visual_odom
singleton AP_VisualOdom method healthy boolean
singleton AP_VisualOdom method quality int8_t

0 comments on commit 8520c57

Please sign in to comment.