远程控制

2025-03-05
暂无评分

Event

摄像头 osd 推送

用于推送摄像头参数信息(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_osd_info_push

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
wide_lense广角镜头信息struct
»wide_exposure_mode广角镜头曝光模式enum_int{"1":"自动","2":"快门优先曝光","3":"光圈优先曝光","4":"手动曝光"}当前配置的广角镜头曝光模式
»wide_iso广角镜头感光度enum_int{"0":"Auto","1":"Auto(High Sense)","2":"50","3":"100","4":"200","5":"400","6":"800","7":"1600","8":"3200","9":"6400","10":"12800","11":"25600","255":"FIXED"}当前配置的广角镜头感光度
»wide_shutter_speed广角镜头快门速度enum_int{"0":"1/8000 s","1":"1/6400 s","2":"1/6000 s","3":"1/5000 s","4":"1/4000 s","5":"1/3200 s","6":"1/3000 s","7":"1/2500 s","8":"1/2000 s","9":"1/1600 s","10":"1/1500 s","11":"1/1250 s","12":"1/1000 s","13":"1/800 s","14":"1/725 s","15":"1/640 s","16":"1/500 s","17":"1/400 s","18":"1/350 s","19":"1/320 s","20":"1/250 s","21":"1/240 s","22":"1/200 s","23":"1/180 s","24":"1/160 s","25":"1/125 s","26":"1/120 s","27":"1/100 s","28":"1/90 s","29":"1/80 s","30":"1/60 s","31":"1/50 s","32":"1/40 s","33":"1/30 s","34":"1/25 s","35":"1/20 s","36":"1/15 s","37":"1/12.5 s","38":"1/10 s","39":"1/8 s","40":"1/6.25 s","41":"1/5 s","42":"1/4 s","43":"1/3 s","44":"1/2.5 s","45":"1/2 s","46":"1/1.67 s","47":"1/1.25 s","48":"1.0 s","49":"1.3 s","50":"1.6 s","51":"2.0 s","52":"2.5 s","53":"3.0 s","54":"3.2 s","55":"4.0 s","56":"5.0 s","57":"6.0 s","58":"7.0 s","59":"8.0 s","65534":"Auto"}当前配置的广角镜头快门速度
»wide_exposure_value广角镜头曝光值enum_int{"1":"-5.0EV","2":"-4.7EV","3":"-4.3EV","4":"-4.0EV","5":"-3.7EV","6":"-3.3EV","7":"-3.0EV","8":"-2.7EV","9":"-2.3EV","10":"-2.0EV","11":"-1.7EV","12":"-1.3EV","13":"-1.0EV","14":"-0.7EV","15":"-0.3EV","16":"0EV","17":"0.3EV","18":"0.7EV","19":"1.0EV","20":"1.3EV","21":"1.7EV","22":"2.0EV","23":"2.3EV","24":"2.7EV","25":"3.0EV","26":"3.3EV","27":"3.7EV","28":"4.0EV","29":"4.3EV","30":"4.7EV","31":"5.0EV","255":"FIXED"}当前配置的广角镜头曝光值
»wide_aperture_value光圈值enum_int{"0":"F_AUTO","50":"F0.5","70":"F0.7","80":"F0.8","90":"F0.9","95":"F0.95","100":"F1.0","110":"F1.1","120":"F1.2","140":"F1.4","160":"F1.6","170":"F1.7","180":"F1.8","200":"F2","220":"F2.2","240":"F2.4","250":"F2.5","280":"F2.8","320":"F3.2","330":"F3.3","340":"F3.4","350":"F3.5","400":"F4","440":"F4.4","450":"F4.5","480":"F4.8","500":"F5","560":"F5.6","630":"F6.3","670":"F6.7","680":"F6.8","710":"F7.1","800":"F8","900":"F9","950":"F9.5","960":"F9.6","1000":"F10","1100":"F11","1300":"F13","1400":"F14","1600":"F16","1800":"F18","1900":"F19","2000":"F20","2200":"F22","2500":"F25","2700":"F27","2900":"F29","3200":"F32","3600":"F36","3800":"F38","4000":"F40","4500":"F45","5100":"F51","5400":"F54","5700":"F57","6400":"F64","7200":"F72","7600":"F76","8000":"F80","9000":"F90","10700":"F107","12800":"F128","18000":"F180","25600":"F256"}根据不同机型,范围不一致
zoom_lense变焦镜头信息struct
»zoom_exposure_mode变焦镜头曝光模式enum_int{"1":"自动","2":"快门优先曝光","3":"光圈优先曝光","4":"手动曝光"}当前配置的变焦镜头曝光模式
»zoom_iso变焦镜头感光度enum_int{"0":"Auto","1":"Auto(High Sense)","2":"50","3":"100","4":"200","5":"400","6":"800","7":"1600","8":"3200","9":"6400","10":"12800","11":"25600","255":"FIXED"}当前配置的变焦镜头感光度
»zoom_shutter_speed变焦镜头快门速度enum_int{"0":"1/8000 s","1":"1/6400 s","2":"1/6000 s","3":"1/5000 s","4":"1/4000 s","5":"1/3200 s","6":"1/3000 s","7":"1/2500 s","8":"1/2000 s","9":"1/1600 s","10":"1/1500 s","11":"1/1250 s","12":"1/1000 s","13":"1/800 s","14":"1/725 s","15":"1/640 s","16":"1/500 s","17":"1/400 s","18":"1/350 s","19":"1/320 s","20":"1/250 s","21":"1/240 s","22":"1/200 s","23":"1/180 s","24":"1/160 s","25":"1/125 s","26":"1/120 s","27":"1/100 s","28":"1/90 s","29":"1/80 s","30":"1/60 s","31":"1/50 s","32":"1/40 s","33":"1/30 s","34":"1/25 s","35":"1/20 s","36":"1/15 s","37":"1/12.5 s","38":"1/10 s","39":"1/8 s","40":"1/6.25 s","41":"1/5 s","42":"1/4 s","43":"1/3 s","44":"1/2.5 s","45":"1/2 s","46":"1/1.67 s","47":"1/1.25 s","48":"1.0 s","49":"1.3 s","50":"1.6 s","51":"2.0 s","52":"2.5 s","53":"3.0 s","54":"3.2 s","55":"4.0 s","56":"5.0 s","57":"6.0 s","58":"7.0 s","59":"8.0 s","65534":"Auto"}当前配置的变焦镜头快门速度
»zoom_exposure_value变焦镜头曝光值enum_int{"1":"-5.0EV","2":"-4.7EV","3":"-4.3EV","4":"-4.0EV","5":"-3.7EV","6":"-3.3EV","7":"-3.0EV","8":"-2.7EV","9":"-2.3EV","10":"-2.0EV","11":"-1.7EV","12":"-1.3EV","13":"-1.0EV","14":"-0.7EV","15":"-0.3EV","16":"0EV","17":"0.3EV","18":"0.7EV","19":"1.0EV","20":"1.3EV","21":"1.7EV","22":"2.0EV","23":"2.3EV","24":"2.7EV","25":"3.0EV","26":"3.3EV","27":"3.7EV","28":"4.0EV","29":"4.3EV","30":"4.7EV","31":"5.0EV","255":"FIXED"}当前配置的变焦镜头曝光值
»zoom_focus_mode变焦镜头对焦模式enum_int{"0":"MF","1":"AFS","2":"AFC"}
»zoom_focus_value变焦镜头对焦值int
»zoom_max_focus_value变焦镜头最大对焦值int
»zoom_min_focus_value变焦镜头最小对焦值int
»zoom_calibrate_farthest_focus_value变焦镜头标定的最远对焦值int最清晰的最远位置对焦值
»zoom_calibrate_nearest_focus_value变焦镜头标定的最近对焦值int最清晰的最近位置对焦值
»zoom_focus_state变焦镜头对焦状态int{"max":"","min":"","step":"","unit_name":null}
»zoom_factor变焦倍数int{"max":"","min":"","step":"","unit_name":null}
»zoom_aperture_value变焦光圈值enum_int{"440":"F4.4"}根据不同机型,范围不一致
measure_target目标测距和测高struct
»measure_target_longitude激光测距目标经度double{"max":"180","min":"-180","unit":"度 / °"}
»measure_target_latitude激光测距目标纬度double{"max":"90","min":"-90","unit":"度 / °"}
»measure_target_altitude激光测距目标海拔double{"unit":"米 / m"}
»measure_target_distance激光测距距离double{"unit":"米 / m"}
ir_lense红外信息struct
»screen_split_enable分屏是否使能bool{"false":"分屏使能关闭","true":"分屏使能开启"}
»ir_zoom_factor红外变焦倍数float{"max":20,"min":2}红外变焦倍数
»thermal_supported_palette_styles设备支持的调色盘样式集合array{"size": -, "item_type": enum_int}不同设备所支持的样式能力有所不同
»thermal_gain_mode增益模式enum_int{"0":"自动","1":"低增益, 测温范围0°C-500°C","2":"高增益, 测温范围-20°C-150°C"}低增益提供更大的测温范围,高增益拥有更高的测温精度
»thermal_isotherm_state是否开启等温线enum_int{"0":"关闭","1":"开启"}等温线允许用户观测自己感兴趣的温度区间的内容,让兴趣温度区间的物体能更加凸显
»thermal_isotherm_upper_limit测温区间上限int{"unit":"摄氏度 / °C"}仅启用等温线功能后有效
»thermal_isotherm_lower_limit测温区间下限int{"unit":"摄氏度 / °C"}仅启用等温线功能后有效
»thermal_global_temperature_min全局画面中测量的最低温度float{"unit":"摄氏度 / °C"}
»thermal_global_temperature_max全局画面中测量的最高温度float{"unit":"摄氏度 / °C"}
liveview直播视图区域信息struct
»liveview_world_region视场角(FOV)在 liveview 中的区域struct变焦相机的视场角相对于广角相机或者红外相机的视场角,在 liveview 中会有所不同。坐标原点为镜头左上角。
»»left左上角的 x 轴起始点float左上角的 x 轴起始点
»»top左上角的 y 轴起始点float左上角的 y 轴起始点
»»right右下角的 x 轴起始点float右下角的 x 轴起始点
»»bottom右下角的 y 轴起始点float右下角的 y 轴起始点

Example:

{
	"data": {
		"ir_lense": {
			"ir_zoom_factor": 2,
			"screen_split_enable": false,
			"thermal_current_palette_style": 11,
			"thermal_gain_mode": 2,
			"thermal_global_temperature_max": 40.0373764038086,
			"thermal_global_temperature_min": 31.65154457092285,
			"thermal_isotherm_lower_limit": -20,
			"thermal_isotherm_state": 0,
			"thermal_isotherm_upper_limit": 150
		},
		"liveview": {
			"liveview_world_region": {
				"bottom": 0.5609484910964966,
				"left": 0.43238765001297,
				"right": 0.5639060735702515,
				"top": 0.433199942111969
			}
		},
		"measure_target": {
			"measure_target_altitude": 34.60000228881836,
			"measure_target_distance": 0,
			"measure_target_error_state": 1,
			"measure_target_latitude": 22.907619920797877,
			"measure_target_longitude": 113.70345426744846
		},
		"payload_index": "89-0-0",
		"wide_lense": {
			"wide_aperture_value": 10,
			"wide_exposure_mode": 1,
			"wide_exposure_value": 16,
			"wide_iso": 8,
			"wide_shutter_speed": 45
		},
		"zoom_lense": {
			"zoom_aperture_value": 10,
			"zoom_calibrate_farthest_focus_value": 34,
			"zoom_calibrate_nearest_focus_value": 64,
			"zoom_exposure_mode": 1,
			"zoom_exposure_value": 16,
			"zoom_factor": 6.999994214380596,
			"zoom_focus_mode": 0,
			"zoom_focus_state": 0,
			"zoom_focus_value": 34,
			"zoom_iso": 8,
			"zoom_max_focus_value": 64,
			"zoom_min_focus_value": 33,
			"zoom_shutter_speed": 45
		}
	},
	"method": "drc_camera_osd_info_push",
	"seq": 1
}

飞行器状态信息上报

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_drone_state_push

Data:

ColumnNameTypeconstraintDescription
stealth_state隐蔽模式状态bool{"0":"关闭","1":"开启"}
night_lights_state夜航灯状态bool{"0":"关闭","1":"开启"}
mode_code飞行器状态enum_int{"0":"待机","1":"起飞准备","2":"起飞准备完毕","3":"手动飞行","4":"自动起飞","5":"航线飞行","6":"全景拍照","7":"智能跟随","8":"ADS-B 躲避","9":"自动返航","10":"自动降落","11":"强制降落","12":"三桨叶降落","13":"升级中","14":"未连接","15":"APAS","16":"虚拟摇杆状态","17":"指令飞行"}
landing_type降落类型enum_int{"0":"未降落","1":"机场内降落","2":"备降点降落","3":"用户主动触发降落","4":"飞行器自身触发降落"}
landing_protection_type降落检测类型enum_int{"0":"未开启检测","1":"检测到地面不平或者下方是水面,不适合降落,降落任务退出","2":"没有检测出地面情况,降落任务退出","3":"机场内降落检测"}开启避障情况下紧急降落,飞行器会开启降落检测

Example:

{
	"data": {
		"landing_protection_type": 0,
		"landing_type": 1,
		"mode_code": 0,
		"night_lights_state": 0,
		"stealth_state": 0
	},
	"method": "drc_drone_state_push",
	"seq": 1
}

相机状态上报

变化时推送相机信息(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_state_push

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_state相机状态信息struct
»camera_mode相机状态enum_int{"0":"拍照","1":"录像","2":"智能低光","3":"全景拍照","4":"定时拍照"}
»interval_photo_interval定时拍照间隔int{"max":"","min":"","step":"","unit_name":"秒 / s"}
»video_resolution视频分辨率大小enum_string{"0":"19201080 ","1":"38402160"}
»linkage_zoom_state联动变焦状态bool{"0":"关闭","1":"开启"}
»photo_size照片大小enum_int{"0":"默认大小","1":"特小","2":"小","3":"中","4":"大","5":"特大"}
»record_time视频录制时长int{"max":"","min":"","step":"","unit_name":"秒 / s"}
»recording_state录像状态enum_int{"0":"空闲","1":"录像中"}
»photo_state拍照状态enum_int{"0":"空闲","1":"拍照中"}
»remain_photo_num剩余拍照张数int{"max":"","min":"","step":"","unit_name":null}
»remain_record_duration剩余录像时间int{"max":"","min":"","step":"","unit_name":"秒 / s"}
media_storage媒体存储信息struct
»photo_storage_settings照片存储设置集合array{"size": -, "item_type": text}拍照存储类型{current, vision, ir},根据机型可多选
»video_storage_settings视频存储设置集合array{"size": -, "item_type": text}视频存储类型{current, vision, ir},根据机型可多选

Example:

{
	"data": {
		"camera_state": {
			"camera_mode": 0,
			"interval_photo_interval": 2.5,
			"linkage_zoom_state": 0,
			"photo_size": 1,
			"photo_state": 0,
			"record_time": 0,
			"recording_state": 0,
			"remain_photo_num": 6727,
			"remain_record_duration": 0,
			"video_resolution": 0
		},
		"media_storage": {
			"photo_storage_settings": [
				"current",
				"ir"
			],
			"video_storage_settings": [
				"current",
				"ir"
			]
		},
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_state_push",
	"seq": 1
}

拍照信息上报

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_photo_info_push

Data:

ColumnNameTypeconstraintDescription
countdown_time定时拍倒计时int{"max":"","min":"","step":"","unit_name":null}
result拍照结果int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误
status状态enum_string{"fail":"失败","in_progress":"执行中","ok":"完成"}
progress进度struct
»current_step执行步骤enum_int{"3000":"全景图拍摄未开始或者已结束","3002":"全景图正在拍摄","3005":"全景图合成中"}
»percent进度值int{"max":"100","min":"0","step":"","unit_name":null}
ext扩展内容struct
»camera_mode当前相机模式enum_int{"3":"全景拍照"}

Example:

{
	"data": {
		"countdown_time": 4,
		"ext": {
			"camera_mode": 2
		},
		"progress": {
			"current_step": 0,
			"percent": 100
		},
		"result": 0,
		"status": "in_progress"
	},
	"method": "drc_camera_photo_info_push",
	"seq": 1
}

Service

DRC-心跳

与 data 同级的 seq 是递增的序号,保证指令顺序执行

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: heart_beat

Data:

ColumnNameTypeconstraintDescription
timestamp心跳发送时间戳int{"max":"","min":"","step":"","unit_name":"毫秒 / ms"}业务方可以通过心跳协议判断 DRC 链路是否活跃,若一定期间未收到心跳回应可以判定 DRC 链路异常,对于 DRC 异常情况可以发起重试。若超过 1 分钟未收到业务方发送心跳协议,设备将会认为 DRC 链路处于空闲退出 DRC 链路。

Example:

{
	"data": {
		"timestamp": 1670415891013
	},
	"method": "heart_beat",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: heart_beat

Data:

ColumnNameTypeconstraintDescription
timestamp心跳发送时间戳int{"max":"","min":"","step":"","unit_name":"毫秒 / ms"}收到的心跳发送时的时间戳,非设备端的时间,便于云端根据收发的间隔做时延计算

Example:

{
	"data": {
		"timestamp": 1670415891013
	},
	"method": "heart_beat",
	"seq": 1
}

DRC初始状态订阅

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_initial_state_subscribe

Data: null

Example:

{
	"data": {},
	"method": "drc_initial_state_subscribe",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_initial_state_subscribe

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_initial_state_subscribe",
	"seq": 1
}

DRC-飞行器急停

与 data 同级的 seq 是递增的序号,保证指令顺序执行

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drone_emergency_stop

Data:

ColumnNameTypeconstraintDescription
nullnullint{"max":"","min":"","step":"","unit_name":null}

Example:

{
	"data": {},
	"method": "drone_emergency_stop",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drone_emergency_stop

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drone_emergency_stop",
	"seq": 1
}

DRC-杆量控制

建立DRC链路之后,可通过“DRC-杆量控制”指令控制飞行器姿态。发送频率需要保持5-10hz,才能比较精准地控制飞行器的运动。本协议无回包机制。

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: stick_control

Data:

ColumnNameTypeconstraintDescription
roll横滚通道int{"max":"1684","min":"364","unit_name":""}对应遥控器A通道,控制飞行器横滚(表现为左右平移)。杆量范围[1024±660],1024为中值(无动作),数值增大表示向右倾斜,减小表示向左倾斜。
pitch俯仰通道int{"max":"1684","min":"364","unit_name":""}对应遥控器E通道,控制飞行器俯仰(表现为前后平移)。杆量范围[1024±660]**,1024为中值(无动作),数值增大表示向前俯冲,减小表示向后抬头。
throttle升降通道int{"max":"1684","min":"364","unit_name":""}对应遥控器T通道,控制飞行器升降。杆量范围[1024±660],1024为悬停状态,数值增大表示升高,减小表示降低。
yaw偏航通道int{"max":"1684","min":"364","unit_name":""}对应遥控器R通道,控制飞行器偏航(表现为左右旋转)。杆量范围[1024±660],1024为中值(无动作),数值增大表示顺时针旋转,减小表示逆时针旋转。

Example:

{
    "seq": 1,
    "method": "stick_control",
    "data": {
        "roll": 1024,
        "pitch": 1024,
        "throttle": 1024,
        "yaw": 1024
    }
}

负载控制—镜头去畸变

能让用户的广角视角不再有暗角,Matrice 3D 广角模式的镜头去畸变(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_dewarping_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角"}相机类型枚举
dewarping_state是否使能去畸变enum_int{"0":"关闭","1":"开启"}开启还是关闭畸变

Example:

{
	"data": {
		"camera_type": "wide",
		"dewarping_state": 1,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_dewarping_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_dewarping_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_dewarping_set",
	"seq": 1
}

负载控制—机械快门

支持用户手动关闭机械快门,提高设备作业寿命,Matrice 3D 广角模式下机械快门开关(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_mechanical_shutter_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角"}相机类型枚举
dewarping_state是否使能机械快门enum_int{"0":"关闭","1":"开启"}开启还是关闭机械快门

Example:

{
	"data": {
		"camera_type": "wide",
		"mechanical_shutter_state": 1,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_mechanical_shutter_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_mechanical_shutter_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_mechanical_shutter_set",
	"seq": 1
}

负载控制—ISO设置

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_iso_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举
iso_valueISO值enum_int{"0":"ISO_AUTO","2":"ISO_50","3":"ISO_100","4":"ISO_200","5":"ISO_400","6":"ISO_800","7":"ISO_1600","8":"ISO_3200","9":"ISO_6400","10":"ISO_12800","11":"ISO_25600","12":"ISO_51200","13":"ISO_102400","255":"ISO_FIXED"}不同机型范围不一样

Example:

{
	"data": {
		"camera_type": "zoom",
		"iso_value": 5,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_iso_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_iso_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_iso_set",
	"seq": 1
}

负载控制—相机快门

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_shutter_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举
shutter_value快门设置enum_int{"0":"1/8000 s","1":"1/6400 s","2":"1/6000 s","3":"1/5000 s","4":"1/4000 s","5":"1/3200 s","6":"1/3000 s","7":"1/2500 s","8":"1/2000 s","9":"1/1600 s","10":"1/1500 s","11":"1/1250 s","12":"1/1000 s","13":"1/800 s","14":"1/725 s","15":"1/640 s","16":"1/500 s","17":"1/400 s","18":"1/350 s","19":"1/320 s","20":"1/250 s","21":"1/240 s","22":"1/200 s","23":"1/180 s","24":"1/160 s","25":"1/125 s","26":"1/120 s","27":"1/100 s","28":"1/90 s","29":"1/80 s","30":"1/60 s","31":"1/50 s","32":"1/40 s","33":"1/30 s","34":"1/25 s","35":"1/20 s","36":"1/15 s","37":"1/12.5 s","38":"1/10 s","39":"1/8 s","40":"1/6.25 s","41":"1/5 s","42":"1/4 s","43":"1/3 s","44":"1/2.5 s","45":"1/2 s","46":"1/1.67 s","47":"1/1.25 s","48":"1.0 s","49":"1.3 s","50":"1.6 s","51":"2.0 s","52":"2.5 s","53":"3.0 s","54":"3.2 s","55":"4.0 s","56":"5.0 s","57":"6.0 s","58":"7.0 s","59":"8.0 s","60":"Auto"}根据不同机型范围不一样

Example:

{
	"data": {
		"camera_type": "zoom",
		"payload_index": "89-0-0",
		"shutter_value": 5
	},
	"method": "drc_camera_shutter_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_shutter_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_shutter_set",
	"seq": 1
}

负载控制—相机光圈

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_aperture_value_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举
aperture_value光圈值enum_int{"0":"F_AUTO","50":"F0_5","70":"F0_7","80":"F0_8","90":"F0_9","95":"F0_95","100":"F1_0","110":"F1_1","120":"F1_2","140":"F1_4","160":"F1_6","170":"F1_7","180":"F1_8","200":"F2","220":"F2_2","240":"F2_4","250":"F2_5","280":"F2_8","320":"F3_2","330":"F3_3","340":"F3_4","350":"F3_5","400":"F4","440":"F4_4","450":"F4_5","480":"F4_8","500":"F5","560":"F5_6","630":"F6_3","670":"F6_7","680":"F6_8","710":"F7_1","800":"F8","900":"F9","950":"F9_5","960":"F9_6","1000":"F10","1100":"F11","1300":"F13","1400":"F14","1600":"F16","1800":"F18","1900":"F19","2000":"F20","2200":"F22","2500":"F25","2700":"F27","2900":"F29","3200":"F32","3600":"F36","3800":"F38","4000":"F40","4500":"F45","5100":"F51","5400":"F54","5700":"F57","6400":"F64","7200":"F72","7600":"F76","8000":"F80","9000":"F90","10700":"F107","12800":"F128","18000":"F180","25600":"F256"}根据不同机型,范围不一致

Example:

{
	"data": {
		"aperture_value": 0,
		"camera_type": "zoom",
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_aperture_value_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_aperture_value_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_aperture_value_set",
	"seq": 1
}

飞行控制—隐蔽模式

设置飞机的隐蔽模式,用于关闭所有飞机灯光(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_stealth_state_set

Data:

ColumnNameTypeconstraintDescription
stealth_state隐蔽模式enum_int{"0":"关闭","1":"开启"}隐蔽模式状态

Example:

{
	"data": {
		"stealth_state": 0
	},
	"method": "drc_stealth_state_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_stealth_state_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_stealth_state_set",
	"seq": 1
}

夜航灯设置

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_night_lights_state_set

Data:

ColumnNameTypeconstraintDescription
night_lights_state状态enum_int{"0":"关闭","1":"开启"}

Example:

{
	"data": {
		"night_lights_state": 0
	},
	"method": "drc_night_lights_state_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_night_lights_state_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_night_lights_state_set",
	"seq": 1
}

负载控制—设置定时拍

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_interval_photo_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
interval定时拍照间隔enum_string{"1":"1s","2":"2s","3":"3s","5":"5s","7":"7s","10":"10s","15":"15s","20":"20s","30":"30s","60":"60s","0.7":"0.7s"}不同照片尺寸取值范围不一样(例如照片尺寸设置 8k 的时候,定时拍照间隔无法设置 0.7s、1s)

Example:

{
	"data": {
		"interval": 1,
		"payload_index": "89-0-0"
	},
	"method": "drc_interval_photo_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_interval_photo_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_interval_photo_set",
	"seq": 1
}

负载控制—照片存储设置

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_photo_storage_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
photo_storage_settings照片存储设置array{"size": -, "item_type": text}拍照存储类型{current, vision, ir},根据机型可多选

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"photo_storage_settings": [
			"current",
			"ir",
			"vision"
		]
	},
	"method": "drc_photo_storage_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_photo_storage_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_photo_storage_set",
	"seq": 1
}

负载控制—视频存储设置

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_video_storage_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
video_storage_settings视频存储array{"size": -, "item_type": text}视频存储类型{current, vision, ir},根据机型可多选

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"video_storage_settings": [
			"current",
			"ir",
			"vision"
		]
	},
	"method": "drc_video_storage_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_video_storage_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_video_storage_set",
	"seq": 1
}

负载控制—视频分辨率设置

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_video_resolution_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
video_resolution视频分辨率enum_string{"0":"19201080","1":"38402160"}可见光相机分辨率分别为 19201080、38402160。红外相机仅支持 640*512,无法设置

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"video_resolution": 0
	},
	"method": "drc_video_resolution_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_video_resolution_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_video_resolution_set",
	"seq": 1
}

负载控制—红外联动变焦

红外联动变焦仅支持Matrice 3TD机型(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_linkage_zoom_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
state联动变焦状态bool{"0":"关闭","1":"开启"}

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"state": 0
	},
	"method": "drc_linkage_zoom_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_linkage_zoom_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_linkage_zoom_set",
	"seq": 1
}

紧急降落

飞行器距离机场五米以上时,触发紧急降落会降落到地面,请谨慎使用(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_emergency_landing

Data: null

Example:

{
	"data": {},
	"method": "drc_emergency_landing",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_emergency_landing

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_emergency_landing",
	"seq": 1
}

急停

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drone_emergency_stop

Data: null

Example:

{
	"data": {},
	"method": "drone_emergency_stop",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drone_emergency_stop

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drone_emergency_stop",
	"seq": 1
}

强制降落

飞行器使用强制降落,会降落到地面,请谨慎使用(seq 是递增的序号,保证指令顺序执行,与 data 同级)

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_force_landing

Data: null

Example:

{
	"data": {},
	"method": "drc_force_landing",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_force_landing

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_force_landing",
	"seq": 1
}

负载控制—切换相机模式

seq 是递增的序号,保证指令顺序执行,与 data 同级

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_mode_switch

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_mode模式enum_int{"0":"拍照","1":"录像","2":"智能低光","3":"全景拍照","4":"定时拍"}

Example:

{
	"data": {
		"camera_mode": 2,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_mode_switch",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_mode_switch

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_mode_switch",
	"seq": 1
}

负载控制—开始录像

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_recording_start

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window

Example:

{
	"data": {
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_recording_start",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_recording_start

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_recording_start",
	"seq": 1
}

负载控制—停止录像

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_recording_stop

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window

Example:

{
	"data": {
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_recording_stop",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_recording_stop

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_recording_stop",
	"seq": 1
}

负载控制—画面拖动控制

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_screen_drag

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
locked机头和云台的相对关系是否锁定bool{"false":"仅云台转,机身不转","true":"锁定机头,云台和机身一起转"}
pitch_speed云台 pitch 速度double{"unit_name":"弧度每秒 / rad/s"}云台 pitch 速度
yaw_speed云台 yaw 速度double{"unit_name":"弧度每秒 / rad/s"}云台 yaw 速度,仅不锁机头时才生效

Example:

{
	"data": {
		"locked": false,
		"payload_index": "89-0-0",
		"pitch_speed": 0.6,
		"yaw_speed": -0.6
	},
	"method": "drc_camera_screen_drag",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_screen_drag

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_screen_drag",
	"seq": 1
}

负载控制—双击成为 AIM

双击 aim 功能为在相机镜头的视野范围内,双击镜头中的目标点,该目标点将成为镜头视野的中心

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_aim

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"ir":"红外","wide":"广角","zoom":"变焦"}相机类型枚举
locked机头和云台的相对关系是否锁定bool{"false":"仅云台转,机身不转","true":"锁定机头,云台和机身一起转"}
x目标坐标 xdouble{"max":1,"min":0}目标坐标 x,以镜头的左上角为坐标中心点,水平方向为 x
y目标坐标 ydouble{"max":1,"min":0}目标坐标 y,以镜头的左上角为坐标中心点,竖直方向为 y

Example:

{
	"data": {
		"camera_type": "wide",
		"locked": false,
		"payload_index": "89-0-0",
		"x": 0.8310580204778157,
		"y": 0.32272727272727275
	},
	"method": "drc_camera_aim",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_aim

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_aim",
	"seq": 1
}

负载控制—变焦

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_focal_length_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"ir":"红外","wide":"广角","zoom":"变焦"}相机类型枚举
zoom_factor变焦倍数double{"max":200,"min":2}变焦倍数,可见光是2-200,红外是2-20

Example:

{
	"data": {
		"camera_type": "zoom",
		"payload_index": "89-0-0",
		"zoom_factor": 7
	},
	"method": "drc_camera_focal_length_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_focal_length_set

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_focal_length_set",
	"seq": 1
}

负载控制—重置云台

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_gimbal_reset

Data:

ColumnNameTypeconstraintDescription
payload_index{{type-subtype-gimbalindex}_aembLbhPpc}text负载编号,相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
reset_mode重置模式类型enum_int{"0":"回中","1":"向下","2":"偏航回中","3":"俯仰向下"}

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"reset_mode": 1
	},
	"method": "drc_gimbal_reset",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_gimbal_reset

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_gimbal_reset",
	"seq": 1
}

负载控制—Look At

lookat 功能指飞行器将从当前朝向转向实际经纬高度指定的点,在 M30/M30T 机型上建议使用锁定机头的方式,仅云台转动场景下在抵达云台限位角后 lookat 功能将出现异常

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_look_at

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
locked机头和云台的相对关系是否锁定bool{"false":"仅云台转,机身不转","true":"锁定机头,云台和机身一起转"}
latitude目标点纬度(角度值)double{"max":90,"min":-90}角度值。南纬是负,北纬是正,精度到小数点后6位。
longitude目标点经度(角度值)double{"max":180,"min":-180}角度值。东经是正,西经是负,精度到小数点后6位。
height目标点高度float{"max":10000,"min":2,"step":0.1,"unit_name":"米 / m"}目标点高度(椭球高)

Example:

{
	"data": {
		"height": 24.838796976545467,
		"latitude": 22.908061229971967,
		"locked": false,
		"longitude": 113.70510712582023,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_look_at",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_look_at

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_look_at",
	"seq": 1
}

负载控制—分屏

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_screen_split

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
enable是否使能分屏bool开启还是关闭分屏

Example:

{
	"data": {
		"enable": true,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_screen_split",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_screen_split

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
	"data": {
		"enable": true,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_screen_split",
	"seq": 1
}

负载控制—框选变焦

框选变焦功能为在相机镜头的视野范围内,框选镜头中的目标区域,将会自动把画面切过去自动变焦+转云台

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_frame_zoom

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}
camera_type相机类型enum_string{"ir":"红外","wide":"广角","zoom":"变焦"}
locked机头和云台的相对关系是否锁定bool{"0":"仅云台转,机身不转","1":"锁定机头,云台和机身一起转"}
x目标框左上角点坐标xfloat{"max":"1","min":"0","step":"0.000001","unit_name":"无 / "}
y目标框左上角点坐标yfloat{"max":"1","min":"0","step":"0.000001","unit_name":"无 / "}
width目标框宽度float{"max":"1","min":"0","step":"0.000001","unit_name":"无 / "}
height目标框高度float{"max":"1","min":"0","step":"0.000001","unit_name":"无 / "}

Example:

{
	"data": {
		"camera_type": "zoom",
		"height": 0.5,
		"locked": true,
		"payload_index": "89-0-0",
		"width": 0.8,
		"x": 0.5,
		"y": 0.5
	},
	"method": "drc_camera_frame_zoom",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_frame_zoom

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_frame_zoom",
	"seq": 1
}

负载控制—红外测温区域设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_ir_metering_area_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
x测温区域左上角点坐标 xdouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,水平方向为 x
y测温区域左上角点坐标 ydouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,竖直方向为 y
width测温区域宽度double{"max":1,"min":"","step":"","unit_name":null}
height测温区域高度double{"max":1,"min":"","step":"","unit_name":null}

Example:

{
	"data": {
		"height": 0.2,
		"payload_index": "89-0-0",
		"width": 0.2,
		"x": 0.5,
		"y": 0.5
	},
	"method": "drc_ir_metering_area_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_ir_metering_area_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_ir_metering_area_set",
	"seq": 1
}

负载控制—红外测温点设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_ir_metering_point_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
x测温点坐标 xdouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,水平方向为 x
y测温点坐标 ydouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,竖直方向为 y

Example:

{
	"data": {
		"payload_index": "89-0-0",
		"x": 0.5,
		"y": 0.5
	},
	"method": "drc_ir_metering_point_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_ir_metering_point_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_ir_metering_point_set",
	"seq": 1
}

负载控制—红外测温模式设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_ir_metering_mode_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
mode测温模式enum_int{"0":"关闭测温","1":"点测温","2":"区域测温"}

Example:

{
	"data": {
		"mode": 1,
		"payload_index": "89-0-0"
	},
	"method": "drc_ir_metering_mode_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_ir_metering_mode_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_ir_metering_mode_set",
	"seq": 1
}

负载控制—点对焦

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_point_focus_action

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举,注意: Matrice 30 系列飞行器只支持 zoom 镜头下配置该参数
x对焦点坐标 xdouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,水平方向为 x
y对焦点坐标 ydouble{"max":1,"min":"","step":"","unit_name":null}以镜头的左上角为坐标中心点,竖直方向为 y

Example:

{
	"data": {
		"camera_type": "zoom",
		"payload_index": "89-0-0",
		"x": 0.5,
		"y": 0.5
	},
	"method": "drc_camera_point_focus_action",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_point_focus_action

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_point_focus_action",
	"seq": 1
}

负载控制—相机对焦值设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_focus_value_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举,注意: Matrice 30 系列飞行器只支持 zoom 镜头下配置该参数
focus_value对焦值int{"max":"","min":"","step":"","unit_name":null}对焦值,范围参见飞行器物模型属性 zoom_max_focus_value 和 zoom_min_focus_value

Example:

{
	"data": {
		"camera_type": "zoom",
		"focus_value": 11,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_focus_value_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_focus_value_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_focus_value_set",
	"seq": 1
}

负载控制—相机对焦模式设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_focus_mode_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举,注意: Matrice 30 系列飞行器只支持 zoom 镜头下配置该参数
focus_mode对焦模式enum_int{"0":"MF","1":"AFS","2":"AFC"}

Example:

{
	"data": {
		"camera_type": "zoom",
		"focus_mode": 0,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_focus_mode_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_focus_mode_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_focus_mode_set",
	"seq": 1
}

负载控制—相机曝光值调节

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_exposure_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}
exposure_value曝光值enum_string{"1":"-5.0EV","2":"-4.7EV","3":"-4.3EV","4":"-4.0EV","5":"-3.7EV","6":"-3.3EV","7":"-3.0EV","8":"-2.7EV","9":"-2.3EV","10":"-2.0EV","11":"-1.7EV","12":"-1.3EV","13":"-1.0EV","14":"-0.7EV","15":"-0.3EV","16":"0EV","17":"0.3EV","18":"0.7EV","19":"1.0EV","20":"1.3EV","21":"1.7EV","22":"2.0EV","23":"2.3EV","24":"2.7EV","25":"3.0EV","26":"3.3EV","27":"3.7EV","28":"4.0EV","29":"4.3EV","30":"4.7EV","31":"5.0EV","255":"FIXED"}

Example:

{
	"data": {
		"camera_type": "zoom",
		"exposure_value": 8,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_exposure_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_exposure_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_exposure_set",
	"seq": 1
}

负载控制—相机曝光模式设置

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_exposure_mode_set

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window
camera_type相机类型enum_string{"wide":"广角","zoom":"变焦"}相机类型枚举
exposure_mode曝光模式enum_int{"1":"自动","2":"快门优先曝光","3":"光圈优先曝光","4":"手动曝光"}

Example:

{
	"data": {
		"camera_type": "zoom",
		"exposure_mode": 1,
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_exposure_mode_set",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_exposure_mode_set

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_exposure_mode_set",
	"seq": 1
}

负载控制—停止拍照

停止拍照指令,目前仅支持全景拍照模式

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_photo_stop

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window

Example:

{
	"data": {
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_photo_stop",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_photo_stop

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_photo_stop",
	"seq": 1
}

负载控制—开始拍照

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drc_camera_photo_take

Data:

ColumnNameTypeconstraintDescription
payload_index相机枚举text{"length":""}非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持open in new window

Example:

{
	"data": {
		"payload_index": "89-0-0"
	},
	"method": "drc_camera_photo_take",
	"seq": 1
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drc_camera_photo_take

Data:

ColumnNameTypeconstraintDescription
result返回码int{"max":"","min":"","step":"","unit_name":null}非 0 代表错误
status任务状态enum_string{"in_progress":"执行中"}当全景拍照或其他持续性拍照行为时会上报状态信息,表达后续会有持续的进度事件上报,详细内容请查看 camera_photo_take_progress 事件

Example:

{
	"data": {
		"result": 0
	},
	"method": "drc_camera_photo_take",
	"seq": 1
}
若您对文档有意见或疑惑,点击可快速反馈,我们会与您联系。