From 1d780509ab787fbf327679f54cd62c3e60541eeb 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 3a34534316..eb30722fe4 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 ae6ba0a48f..29e0f6dc7b 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -821,6 +821,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)