相机能力集管理
interface ICameraAbilitySetManager
描述: 相机能力集管理接口,用于查询当前无人机相机的镜头列表、云台信息、变焦能力等。通过 IAutelDroneDevice.getCameraAbilitySetManger() 获取实例。适用于 EVO III MSDK 3.0。
包路径: com.autel.drone.sdk.vmodelx.interfaces.ICameraAbilitySetManager
method getGimbals
fun getGimbals(gimbalType: GimbalTypeEnum? = null): Map
描述: 获取云台的镜头映射信息
输入参数:
- gimbalType: 云台类型枚举(可选,传 null 查询所有云台)
输出参数: Map,key 为 LensTypeEnum(镜头类型),value 为镜头 ID
相关参数: GimbalTypeEnum, LensTypeEnum
method getLensList
fun getLensList(type: GimbalTypeEnum? = null): List?
描述: 获取镜头列表
输入参数:
- type: 云台类型枚举(可选,传 null 查询所有云台)
输出参数: 镜头类型枚举列表,可能为 null
相关参数: GimbalTypeEnum, LensTypeEnum
method getLenId
fun getLenId(lensType: LensTypeEnum, gimbalType: GimbalTypeEnum? = null): Int?
描述: 根据镜头类型获取镜头 ID
输入参数:
- lensType: 镜头类型枚举
- gimbalType: 云台类型枚举(可选)
输出参数: 镜头 ID,可能为 null
相关参数: LensTypeEnum, GimbalTypeEnum
method hasWideAngle
fun hasWideAngle(gimbalDeviceType: String): Boolean
描述: 判断云台是否存在广角镜头
输入参数:
- gimbalDeviceType: 云台设备类型字符串
输出参数: Boolean,true 表示存在广角镜头
method getLensTypeById
fun getLensTypeById(id: Int, gimbalType: GimbalTypeEnum? = null): LensTypeEnum?
描述: 根据镜头 ID 获取镜头类型
输入参数:
- id: 镜头 ID
- gimbalType: 云台类型枚举(可选)
输出参数: LensTypeEnum 镜头类型,可能为 null
method getCameraDeviceId
fun getCameraDeviceId(): Int
描述: 获取相机设备 ID,主要用于上云场景中拼接 videoId
输入参数: 无
输出参数: Int,相机设备 ID
method isContainLensType
fun isContainLensType(lensType: LensTypeEnum, gimbalType: GimbalTypeEnum? = null): Boolean
描述: 判断云台是否包含指定的镜头类型
输入参数:
- lensType: 镜头类型枚举
- gimbalType: 云台类型枚举(可选)
输出参数: Boolean,true 表示包含该镜头类型
method getVideoZoomType
fun getVideoZoomType(): VideoZoomTypeEnum
描述: 获取当前相机的变焦类型
输入参数: 无
输出参数: VideoZoomTypeEnum 变焦类型枚举
method getZoomRange
fun getZoomRange(lensTypeEnum: LensTypeEnum): RangeStepValue?
描述: 获取当前相机模式(视频或拍照)下指定镜头的变焦范围
输入参数:
- lensTypeEnum: 镜头类型枚举
输出参数: RangeStepValue 变焦范围及步进值,可能为 null
method getCameraSupport2
fun getCameraSupport2(): ICameraSupport2?
描述: 获取相机支持能力接口实例,可查询分辨率、帧率、ISO 等相机参数范围
输入参数: 无
输出参数: ICameraSupport2 相机支持能力接口实例,可能为 null