AP_Scripting: camera state uses focus_type and focus_value

This commit is contained in:
Randy Mackay 2023-04-24 21:24:51 +09:00 committed by Peter Barker
parent d187368b33
commit edc2ea7bf6
2 changed files with 5 additions and 5 deletions

View File

@ -1102,12 +1102,12 @@ local AP_Camera__camera_state_t_ud = {}
function AP_Camera__camera_state_t() end
-- get field
---@return boolean
function AP_Camera__camera_state_t_ud:auto_focus() end
---@return number
function AP_Camera__camera_state_t_ud:focus_value() end
-- get field
---@return integer
function AP_Camera__camera_state_t_ud:focus_step() end
function AP_Camera__camera_state_t_ud:focus_type() end
-- get field
---@return number

View File

@ -615,8 +615,8 @@ userdata AP_Camera::camera_state_t field take_pic_incr uint16_t'skip_check read
userdata AP_Camera::camera_state_t field recording_video boolean read
userdata AP_Camera::camera_state_t field zoom_type uint8_t'skip_check read
userdata AP_Camera::camera_state_t field zoom_value float'skip_check read
userdata AP_Camera::camera_state_t field focus_step int8_t'skip_check read
userdata AP_Camera::camera_state_t field auto_focus boolean 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
singleton AP_Camera method get_state boolean uint8_t'skip_check AP_Camera::camera_state_t'Null
include AP_Winch/AP_Winch.h