Camera Management
The header file for camera management-related functions is uav_camera_manager.h
. This document describes the key information and usage of function prototypes in the uav_camera_manager.h
file.
Function Prototypes
UAV_CameraManager_Init
- Function: Initialize the camera management module. This function should be called by the user.
Note:
- Please initialize this interface after
UAV_Core_Init()
.
T_UAVReturnCode UAV_CameraManager_Init(void)
UAV_CameraManager_DeInit
- Function: Deinitialize camera management module.
T_UAVReturnCode UAV_CameraManager_DeInit(void)
UAV_CameraManager_GetCameraType
- Function:Get camera type.
T_UAVReturnCode UAV_CameraManager_GetCameraType(E_UAVCameraType &cameraType)
- Parameter
cameraType
: E_UAVCameraType。
UAV_CameraManager_GetFirmwareVersion
- Function: Get the camera firmware version of the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetFirmwareVersion(T_UAVCameraManagerFirmwareVersion *firmwareVersion)
- Parameter
firmwareVersion
:Firmware version, refer toT_UAVCameraManagerFirmwareVersion
.
UAV_CameraManager_GetCameraConnectStatus
- Function: Get the camera connection status of the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetCameraConnectStatus(bool *connectStatus)
- Parameter
connectStatus
:Return value of the connection status.
UAV_CameraManager_SetMode
- Function: Set the working mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetMode(E_UAVCameraManagerWorkMode workMode)
- Parameter
workMode
: Working mode, refer toE_UAVCameraManagerWorkMode
.
UAV_CameraManager_GetMode
- Function: Get the working mode of the camera at the selected installation position.
T_UAVReturnCode UAV_CameraManager_GetMode(E_UAVCameraManagerWorkMode &workMode)
- Parameter
workMode
: Working mode, refer toE_UAVCameraManagerWorkMode
.
UAV_CameraManager_SetShootPhotoMode
- Function: Set the photo mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetShootPhotoMode(E_UAVCameraManagerShootPhotoMode mode)
- Parameter
mode
:Photo mode, refer toE_UAVCameraManagerShootPhotoMode
.
UAV_CameraManager_GetShootPhotoMode
- Function: Get the photo mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetShootPhotoMode(E_UAVCameraManagerShootPhotoMode &takePhotoMode)
- Parameter
`mode`:Photo mode, refer to `E_UAVCameraManagerShootPhotoMode`.
UAV_CameraManager_StartShootPhoto
- Function: Start taking photos.
T_UAVReturnCode UAV_CameraManager_StartShootPhoto(E_UAVMountPosition position)
UAV_CameraManager_StopShootPhoto
- Function: Stop taking photos during the photo-taking process.
T_UAVReturnCode UAV_CameraManager_StopShootPhoto(E_UAVMountPosition mountPosition)
UAV_CameraManager_GetCapturingState
- Function:Get the camera shooting status.
T_UAVReturnCode UAV_CameraManager_GetCapturingState(E_UAVCameraManagerCapturingState &capturingState)
- Parameter
capturingState
:Get the photo-taking status, refer toE_UAVCameraManagerCapturingState
.
UAV_CameraManager_SetPhotoBurstCount
- Function:Set the number of continuous shots in burst mode.
T_UAVReturnCode UAV_CameraManager_SetPhotoBurstCount(E_UAVCameraBurstCount count)
- Parameter
count
:Number of continuous shots, refer toE_UAVCameraBurstCount
.
UAV_CameraManager_GetPhotoBurstCount
- Function: Get the number of continuous shots in burst mode.
T_UAVReturnCode UAV_CameraManager_GetPhotoBurstCount(E_UAVCameraBurstCount &count)
- Parameter
count
:Number of continuous shots, refer toE_UAVCameraBurstCount
.
UAV_CameraManager_SetPhotoAEBCount
- Function: et the number of continuous shots in AEB (Auto Exposure Bracketing) mode.
T_UAVReturnCode UAV_CameraManager_SetPhotoAEBCount(E_UAVCameraManagerPhotoAEBCount count)
- Parameter
count
:Number of AEB shots, refer toE_UAVCameraManagerPhotoAEBCount
.
UAV_CameraManager_GetPhotoAEBCount
- Function: Get the number of continuous shots in AEB mode.
T_UAVReturnCode UAV_CameraManager_GetPhotoAEBCount(E_UAVCameraManagerPhotoAEBCount &count)
- Parameter
count
:Number of AEB shots, refer toE_UAVCameraManagerPhotoAEBCount
.
UAV_CameraManager_SetPhotoTimeIntervalSettings
- Function: Set the parameters for interval shooting mode.
T_UAVReturnCode UAV_CameraManager_SetPhotoTimeIntervalSettings(uint32_t interval)
- Parameter
interval
:Photo interval time.
UAV_CameraManager_GetPhotoTimeIntervalSettings
- Function: Get the parameters of interval shooting mode.。
T_UAVReturnCode UAV_CameraManager_GetPhotoTimeIntervalSettings(uint32_t &interval)
- Parameter
interval
:Photo interval time.
UAV_CameraManager_SetFocusMode
- Function: Set the autofocus mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetFocusMode(E_UAVCameraManagerFocusMode focusMode)
- Parameter
focusMode
:Focus mode, refer toE_UAVCameraManagerFocusMode
.
UAV_CameraManager_GetFocusMode
- Function: Get the focus mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetFocusMode(E_UAVCameraManagerFocusMode &focusMode)
- Parameter
focusMode
:Focus mode, refer toE_UAVCameraManagerFocusMode
."
UAV_CameraManager_SetFocusTarget
- Function: Set the focus point of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetFocusTarget(T_UAVCameraManagerFocusPosData focusPosData)
- Parameter
focusPosData
:Focus mode, refer toE_UAVCameraManagerFocusMode
."
UAV_CameraManager_GetFocusTarget
- Function:Get the focus point of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetFocusTarget(T_UAVCameraManagerFocusPosData &tapFocusPos)
- Parameter
focusPosData
:Focus mode, refer toE_UAVCameraManagerFocusMode
."
UAV_CameraManager_StartContinuousOpticalZoom
- Function: Enable continuous optical zoom for the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_StartContinuousOpticalZoom(E_UAVCameraZoomDirection zoomDirection, E_UAVCameraZoomSpeed zoomSpeed)
- Parameter
zoomSpeed
:Camera zoom speed, refer toE_UAVCameraZoomSpeed
.zoomDirection
:Camera zoom direction, refer toE_UAVCameraZoomDirection
.
UAV_CameraManager_StopContinuousOpticalZoom
- Function: Stop continuous optical zoom for the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_StopContinuousOpticalZoom(E_UAVMountPosition position)
UAV_CameraManager_SetOpticalZoomParam
- Function: Set the optical zoom parameters of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetOpticalZoomParam(autel_f32_t factor)
- Parameter
factor
:Zoom parameters.
UAV_CameraManager_GetOpticalZoomParam
- Function: Get the optical zoom parameters of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetOpticalZoomParam(autel_f32_t &factor)
- Parameter
factor
:Zoom parameters.
UAV_CameraManager_SetInfraredZoomParam
- Function: Set the infrared zoom parameters of the camera at the specified mounting position.
T_UAVReturnCode UAV_CameraManager_SetInfraredZoomParam(autel_f32_t factor)
- Parameter
factor
:Zoom parameters.
UAV_CameraManager_SetFocusRingValue
- Function: Set the value of the camera's focal length ring.
T_UAVReturnCode UAV_CameraManager_SetFocusRingValue(uint32_t value)
- Parameter
value
:The value of the focal length ring.
UAV_CameraManager_GetFocusRingValue
- Function: Get the value of the camera's focal length ring.
T_UAVReturnCode UAV_CameraManager_GetFocusRingValue(uint32_t &value)
- Parameter
value
:The value of the focal length ring.
UAV_CameraManager_SetExposureMode
- Function: Set the exposure mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetExposureMode(E_UAVCameraManagerExposureMode mode)
- Parameter
mode
:Exposure mode, refer toE_UAVCameraManagerExposureMode
.
UAV_CameraManager_GetExposureMode
- Function: Get the exposure mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetExposureMode(E_UAVCameraManagerExposureMode &mode)
- Parameter
mode
:Exposure mode, refer toE_UAVCameraManagerExposureMode
.
UAV_CameraManager_SetISO
- Function: Set the ISO value of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetISO(E_UAVCameraManagerISO iso)
- Parameter
iso
:Gain value, refer toE_UAVCameraManagerISO
.
UAV_CameraManager_GetISO
- Function: Get the ISO value of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetISO(E_UAVCameraManagerISO &iso)
- Parameter
iso
: Gain value, refer toE_UAVCameraManagerISO
.
UAV_CameraManager_SetAperture
- Function: Set the aperture value of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetAperture(E_UAVCameraManagerAperture aperture)
- Parameter
aperture
:Aperture value, please refer toE_UAVCameraManagerAperture
.
UAV_CameraManager_GetAperture
- Function: Get the aperture value of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetAperture(E_UAVCameraManagerAperture &aperture)
- Parameter
aperture
:Aperture value, please refer toE_UAVCameraManagerAperture
.
UAV_CameraManager_SetShutterSpeed
- Function: Set the shutter speed of the camera at the specified mounting position.
T_UAVReturnCode UAV_CameraManager_SetShutterSpeed(E_UAVCameraManagerShutterSpeed shutterSpeed)
- Parameter
shutterSpeed
:Shutter speed, please refer toE_UAVCameraManagerShutterSpeed
.
UAV_CameraManager_GetShutterSpeed
- Function: Get the shutter speed of the camera at the specified mounting position.
T_UAVReturnCode UAV_CameraManager_GetShutterSpeed(E_UAVCameraManagerShutterSpeed &shutterSpeed)
- Parameter
shutterSpeed
:Get the shutter speed of the camera at the specified mounting position.
UAV_CameraManager_SetExposureCompensation
- Function: Set the exposure compensation of the camera at the specified mounting position.
T_UAVReturnCode UAV_CameraManager_SetExposureCompensation(E_UAVCameraManagerExposureCompensation ev)
- Parameter
ev
:Exposure compensation value, please refer toE_UAVCameraManagerExposureCompensation
.
UAV_CameraManager_GetExposureCompensation
- Function: Get the exposure compensation of the camera at the specified mounting position.
T_UAVReturnCode UAV_CameraManager_GetExposureCompensation(E_UAVCameraManagerExposureCompensation &ev)
- Parameter
ev
:Exposure compensation value, please refer toE_UAVCameraManagerExposureCompensation
.
UAV_CameraManager_SetAELockEnabled
- Function: Set the auto exposure lock.
T_UAVReturnCode UAV_CameraManager_SetAELockEnabled(bool enable)
- Parameter
enable
:Enable withtrue
, disable withfalse
.
UAV_CameraManager_GetAELockEnabled
- Function: Get the auto exposure lock status.
T_UAVReturnCode UAV_CameraManager_GetAELockEnabled(bool &enable)
- Parameter
enable
:Enable withtrue
, disable withfalse
.
UAV_CameraManager_ResetCameraSettings
- Function: Reset the camera settings.
T_UAVReturnCode UAV_CameraManager_ResetCameraSettings(E_UAVMountPosition position)
UAV_CameraManager_StartRecordVideo
- Function: The camera at the selected mounting position starts recording.
T_UAVReturnCode UAV_CameraManager_StartRecordVideo(E_UAVMountPosition position)
UAV_CameraManager_StopRecordVideo
- Function: The camera at the selected mounting position stops recording.
T_UAVReturnCode UAV_CameraManager_StopRecordVideo(E_UAVMountPosition position)
UAV_CameraManager_GetRecordingState
- Function: Get the camera recording status.
T_UAVReturnCode UAV_CameraManager_GetRecordingState(E_UAVMountPosition position,E_UAVCameraManagerRecordingState *recordingState)
- Parameter
recordingState
:Recording status, please refer toE_UAVCameraManagerRecordingState
.
UAV_CameraManager_GetStreamSource
- Function: Select the camera stream source.
T_UAVReturnCode UAV_CameraManager_GetStreamSource(E_UAVCameraManagerStreamSource &streamSource)
- Parameter
rangeList
:Return the range of results.
UAV_CameraManager_GetStreamSourceRange
- Function: Get the range of camera streaming data sources.
T_UAVReturnCode UAV_CameraManager_GetStreamSourceRange(T_UAVCameraManagerRangeList &rangeList)
- Parameter
rangeList
:Return the range of results.
UAV_CameraManager_GetPhotoFormatStorageRange
- Function: Get the range of photo storage formats.
T_UAVReturnCode UAV_CameraManager_GetPhotoFormatStorageRange(T_UAVCameraManagerRangeList &rangeList)
- Parameter
rangeList
:Return the range of results.
UAV_CameraManager_SetPhotoFormat
- Function: Set the photo storage format.
T_UAVReturnCode UAV_CameraManager_SetPhotoFormat(E_UAVCameraManagerPhotoStorageFormat format)
- Parameter
format
:Storage format.
UAV_CameraManager_GetPhotoFormat
- Function:Get the photo storage format.
T_UAVReturnCode UAV_CameraManager_GetPhotoFormat(E_UAVCameraManagerPhotoStorageFormat &format)
- Parameter
format
:Storage format.
UAV_CameraManager_GetVideoFormatRange
- Function: Get the range of video storage formats.
T_UAVReturnCode UAV_CameraManager_GetVideoFormatRange(T_UAVCameraManagerRangeList &rangeList)
- Parameter
rangeList
:Return the range of results.
UAV_CameraManager_SetVideoStorageFormat
- Function: Set the video storage format.
T_UAVReturnCode UAV_CameraManager_SetVideoStorageFormat(E_UAVCameraManagerVideoStorageFormat format)
- Parameter
format
:Storage format.
UAV_CameraManager_GetVideoFormat
- Function: Get the video storage format.
T_UAVReturnCode UAV_CameraManager_GetVideoFormat(E_UAVCameraManagerVideoStorageFormat &format)
- Parameter
format
:Storage format.
UAV_CameraManager_GetVideoResolutionFrameRate
- Function: Get the video resolution and frame rate.
T_UAVReturnCode UAV_CameraManager_GetVideoResolutionFrameRate(T_UAVCameraManagerVideoFormat &videoParam)
- Parameter
videoParam
:Return the video resolution and frame rate.
UAV_CameraManager_SetSynchronizedSplitScreenZoomEnabled
- Function:Enable/Disable synchronized split-screen zoom function.
T_UAVReturnCode UAV_CameraManager_SetSynchronizedSplitScreenZoomEnabled(bool enable)
- Parameter
enable
:Set totrue
to enable,false
to disable.
UAV_CameraManager_FormatStorage
- Function: Format the SD card.
T_UAVReturnCode UAV_CameraManager_FormatStorage(E_UAVMountPosition position)
UAV_CameraManager_GetStorageInfo
- Function: Get the storage information of the SD card.
T_UAVReturnCode UAV_CameraManager_GetStorageInfo(T_UAVCameraManagerStorageInfo *storageInfo)
- Parameter
storageInfo
:The result of retrieving the SD card storage information.
UAV_CameraManager_SetPointThermometryCoordinate
- *Function:Set the camera point temperature coordinates at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetPointThermometryCoordinate(T_UAVCameraManagerPointThermometryCoordinate pointCoordinate)
- Parameter
pointCoordinate
:Point temperature coordinates.
UAV_CameraManager_GetPointThermometryData
- Function: Set the working mode of the camera at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_GetPointThermometryData(T_UAVCameraManagerPointThermometryData &pointThermometryData)
- Parameter
pointCoordinate
:Point temperature result.
UAV_CameraManager_SetAreaThermometryCoordinate
- Function: Set the camera area temperature coordinates at the selected mounting position.
T_UAVReturnCode UAV_CameraManager_SetAreaThermometryCoordinate(T_UAVCameraManagerAreaThermometryCoordinate areaCoordinate)
- Parameter
areaCoordinate
:Area temperature coordinates.
UAV_CameraManager_GetAreaThermometryData
- Function:Get the area temperature result.
T_UAVReturnCode UAV_CameraManager_GetAreaThermometryData(T_UAVCameraManagerAreaThermometryData &areaThermometryData)
- Parameter
areaCoordinate
:Area temperature result.
UAV_CameraManager_SetFfcMode
- Function: Set the FFC mode.
T_UAVReturnCode UAV_CameraManager_SetFfcMode(E_UAVCameraManagerFfcMode ffcMode)
- Parameter
ffcMode
:Mode to be set.
UAV_CameraManager_TriggerFfc
- Function: Trigger a single FFC.
T_UAVReturnCode UAV_CameraManager_TriggerFfc(E_UAVMountPosition position)
UAV_CameraManager_SetInfraredCameraGainMode
- Function:Set the infrared camera gain mode.
T_UAVReturnCode UAV_CameraManager_SetInfraredCameraGainMode(E_UAVCameraManagerIrGainMode gainMode)
- Parameter
gainMode
:Gain mode to be set.
UAV_CameraManager_SetMeteringMode
- Function: Set the camera metering mode.
T_UAVReturnCode UAV_CameraManager_SetMeteringMode(E_UAVCameraManagerMeteringMode meteringMode)
UAV_CameraManager_GetMeteringMode
- Function: Get the camera metering mode.
T_UAVReturnCode UAV_CameraManager_GetMeteringMode(E_UAVCameraManagerMeteringMode &meteringMode)
- Parameter
meteringMode
:Return the metering mode value.
UAV_CameraManager_SetMeteringPoint
- Function: Set the metering point.
T_UAVReturnCode UAV_CameraManager_SetMeteringPoint(T_UAVCameraManagerMeteringPosData meteringPosData)
- Parameter
meteringPosData
:Metering point coordinates.
UAV_CameraManager_GetMeteringPoint
- Function: Get the current metering point.
T_UAVReturnCode UAV_CameraManager_GetMeteringPoint(T_UAVCameraManagerMeteringPosData &meteringPosData)
- Parameter
meteringPosData
:Metering point coordinates.