AP_Scripting: add get_camera_state binding

This commit is contained in:
Randy Mackay 2023-02-07 19:45:40 +09:00
parent 04e8fffc53
commit a84cf91dd0
2 changed files with 10 additions and 0 deletions

View File

@ -969,6 +969,15 @@ function winch:healthy() end
---@class mount
mount = {}
-- desc
---@param param1 integer
---@return integer|nil -- pic_count
---@return boolean|nil -- record_video
---@return integer|nil -- zoom_step
---@return integer|nil -- focus_step
---@return boolean|nil -- auto_focus
function mount:get_camera_state(param1) end
-- desc
---@param instance integer
---@param roll_deg number

View File

@ -570,6 +570,7 @@ singleton AP_Mount method get_rate_target boolean uint8_t'skip_check float'Null
singleton AP_Mount method get_angle_target boolean uint8_t'skip_check float'Null float'Null float'Null boolean'Null
singleton AP_Mount method get_location_target boolean uint8_t'skip_check Location'Null
singleton AP_Mount method set_attitude_euler void uint8_t'skip_check float'skip_check float'skip_check float'skip_check
singleton AP_Mount method get_camera_state boolean uint8_t'skip_check uint16_t'Null boolean'Null int8_t'Null int8_t'Null boolean'Null
include AP_Winch/AP_Winch.h depends APM_BUILD_COPTER_OR_HELI
singleton AP_Winch depends APM_BUILD_COPTER_OR_HELI