相机能力集管理器
class CameraAbilitySetManager
描述: 相机能力集管理器,用于查询当前无人机相机的镜头列表、云台信息、变焦能力等。
包路径: com.autel.drone.sdk.vmodelx.manager.CameraAbilitySetManager
实现接口: ICameraAbilitySetManager(详见接口文档)
获取实例
// 通过设备对象获取相机能力集管理器实例
val cameraAbilitySetManager = droneDevice.getCameraAbilitySetManger()
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 getLensTypeById
fun getLensTypeById(id: Int, gimbalType: GimbalTypeEnum? = null): LensTypeEnum?
描述: 根据镜头 ID 获取镜头类型。
输入参数:
- id: 镜头 ID
- gimbalType: 云台类型枚举(可选)
输出参数: LensTypeEnum 镜头类型,可能为 null
相关参数: LensTypeEnum, GimbalTypeEnum
method isContainLensType
fun isContainLensType(lensType: LensTypeEnum, gimbalType: GimbalTypeEnum? = null): Boolean
描述: 判断云台是否包含指定镜头类型。
输入参数:
- lensType: 镜头类型枚举
- gimbalType: 云台类型枚举(可选)
输出参数: Boolean,true 表示包含该镜头类型
相关参数: LensTypeEnum, GimbalTypeEnum
method hasWideAngle
fun hasWideAngle(gimbalDeviceType: String): Boolean
描述: 判断云台是否存在广角镜头。
输入参数:
- gimbalDeviceType: 云台设备类型字符串
输出参数: Boolean,true 表示存在广角镜头
method getCameraSupport2
fun getCameraSupport2(): ICameraSupport2?
描述: 获取相机支持对象,用于查询相机详细能力信息。
输入参数: 无
输出参数: ICameraSupport2? 相机支持对象,可能为 null
相关参数: ICameraSupport2
method getCameraDeviceId
fun getCameraDeviceId(): Int
描述: 获取相机设备 ID,主要用于上云中拼接 videoId。
输入参数: 无
输出参数: Int 相机设备 ID
method getVideoZoomType
fun getVideoZoomType(): VideoZoomTypeEnum
描述: 获取当前变焦类型。
输入参数: 无
输出参数: VideoZoomTypeEnum 变焦类型枚举
相关参数: VideoZoomTypeEnum
method getZoomRange
fun getZoomRange(lensTypeEnum: LensTypeEnum): RangeStepValue?
描述: 获取当前相机模式(视频或拍照)的相机变焦范围。
输入参数:
- lensTypeEnum: 镜头类型枚举
输出参数: RangeStepValue? 变焦范围值,可能为 null
相关参数: LensTypeEnum, RangeStepValue