mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: change_camera_setting binding
This commit is contained in:
parent
1f14c2ca6b
commit
79983944c6
|
@ -1409,6 +1409,16 @@ function AP_Camera__camera_state_t_ud:take_pic_incr() end
|
|||
---@return AP_Camera__camera_state_t_ud|nil
|
||||
function camera:get_state(instance) end
|
||||
|
||||
-- Change a camera setting to a given value
|
||||
---@param instance integer
|
||||
---@param setting integer
|
||||
---| '0' # THERMAL_PALETTE
|
||||
---| '1' # THERMAL_GAIN
|
||||
---| '2' # THERMAL_RAW_DATA
|
||||
---@param value number
|
||||
---@return boolean
|
||||
function camera:change_setting(instance, setting, value) end
|
||||
|
||||
-- desc
|
||||
mount = {}
|
||||
|
||||
|
|
|
@ -789,6 +789,7 @@ userdata AP_Camera::camera_state_t field tracking_type uint8_t'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
|
||||
singleton AP_Camera method change_setting boolean uint8_t'skip_check CameraSetting'enum CameraSetting::THERMAL_PALETTE CameraSetting::THERMAL_RAW_DATA float'skip_check
|
||||
|
||||
include AP_Winch/AP_Winch.h
|
||||
singleton AP_Winch depends AP_WINCH_ENABLED && APM_BUILD_COPTER_OR_HELI
|
||||
|
|
Loading…
Reference in New Issue