From 2be750eaf8c36013dad431a702034633d812c8d2 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 8 May 2023 12:43:40 +0900 Subject: [PATCH] AP_Scripting: camera state bindings use Vector2f --- libraries/AP_Scripting/docs/docs.lua | 16 ++++------------ .../generator/description/bindings.desc | 6 ++---- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 567b68bd05..6e64f74c7d 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1114,20 +1114,12 @@ local AP_Camera__camera_state_t_ud = {} function AP_Camera__camera_state_t() end -- get field ----@return number -function AP_Camera__camera_state_t_ud:tracking_p1x() end +---@return Vector2f_ud +function AP_Camera__camera_state_t_ud:tracking_p1() end -- get field ----@return number -function AP_Camera__camera_state_t_ud:tracking_p1y() end - --- get field ----@return number -function AP_Camera__camera_state_t_ud:tracking_p2x() end - --- get field ----@return number -function AP_Camera__camera_state_t_ud:tracking_p2y() end +---@return Vector2f_ud +function AP_Camera__camera_state_t_ud:tracking_p2() end -- get field ---@return integer diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 79c4b3c8ea..5611d8d46a 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -618,10 +618,8 @@ userdata AP_Camera::camera_state_t field zoom_value float'skip_check read userdata AP_Camera::camera_state_t field focus_type uint8_t'skip_check read userdata AP_Camera::camera_state_t field focus_value float'skip_check read userdata AP_Camera::camera_state_t field tracking_type uint8_t'skip_check read -userdata AP_Camera::camera_state_t field tracking_p1x float'skip_check read -userdata AP_Camera::camera_state_t field tracking_p1y float'skip_check read -userdata AP_Camera::camera_state_t field tracking_p2x float'skip_check read -userdata AP_Camera::camera_state_t field tracking_p2y float'skip_check read +userdata AP_Camera::camera_state_t field tracking_p1 Vector2f read +userdata AP_Camera::camera_state_t field tracking_p2 Vector2f read singleton AP_Camera method get_state boolean uint8_t'skip_check AP_Camera::camera_state_t'Null include AP_Winch/AP_Winch.h