From 3325bdd7dfe7e3233c1bf8e3d5459974f412474a Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 15 Nov 2024 08:26:31 +0900 Subject: [PATCH] AP_Scripting: set-video-stream-info encoding binding and docs --- libraries/AP_Scripting/docs/docs.lua | 8 ++++++++ .../AP_Scripting/generator/description/bindings.desc | 1 + 2 files changed, 9 insertions(+) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 677d0baadf..660c1650fa 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1686,6 +1686,14 @@ function mavlink_video_stream_information_t_ud:uri(index) end ---@param value integer function mavlink_video_stream_information_t_ud:uri(index, value) end +-- get field +---@return integer +function mavlink_video_stream_information_t_ud:encoding() end + +-- set field +---@param value integer +function mavlink_video_stream_information_t_ud:encoding(value) end + -- Populate the fields of the VIDEO_STREAM_INFORMATION message ---@param instance integer ---@param stream_info mavlink_video_stream_information_t_ud diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index c8c72e3377..d0ff5b1e49 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -826,6 +826,7 @@ userdata mavlink_video_stream_information_t field count uint8_t'skip_check read userdata mavlink_video_stream_information_t field type uint8_t'skip_check read write userdata mavlink_video_stream_information_t field name'array 32 uint8_t'skip_check read write userdata mavlink_video_stream_information_t field uri'array 160 uint8_t'skip_check read write +userdata mavlink_video_stream_information_t field encoding uint8_t'skip_check read write include AP_Camera/AP_Camera.h singleton AP_Camera depends AP_CAMERA_ENABLED && (AP_CAMERA_SCRIPTING_ENABLED == 1)