diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 679f3e047b..497a60b2d8 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -3428,3 +3428,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 diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index cd2956dc41..92ce1c8025 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -912,3 +912,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