如何区分御三的避障摄像头和其它无人机的机身摄像头?
Completedthing/product/+/state
Topic
我需要在我的界面上显示无人机上挂载的摄像头,让用户选择其中某个摄像头,然后拉取视频。
目前御三会给我返回两个摄像头一个,一个是"67-0-0","39-0-7",其中"39-0-7"是避障摄像头,不支持拉取视频,所以我需要屏蔽这个摄像头,不在界面上显示,方法是如果发现摄像头的型号是"39-0-7",就不在界面上显示,但是这样的话会把M350无人机的"39-0-7"摄像头也会屏蔽掉,但是M350无人机的"39-0-7"摄像头是可以拉取视频的,所以不能屏蔽。
请问,能不能给御三无人机的避障摄像头重新定义一个编号?本身避障摄像头和机身自带摄像头是有区别的
我是通过以下topic获取到摄像头信息的:
mqtt中,通过Topic:thing/product/+/state
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"live_capacity": {
"available_video_number": 2,
"coexist_video_number_max": 1,
"device_list": [
{
"available_video_number": 2,
"camera_list": [
{
"available_video_number": 1,
"camera_index": "67-0-0",
"coexist_video_number_max": 1,
"video_list": [
{
"switchable_video_types": [
"wide",
"zoom",
"thermal"
],
"video_index": "wide-0",
"video_type": "wide"
},
{
"video_index": "zoom-0",
"video_type": "zoom"
},
{
"video_index": "thermal-0",
"video_type": "thermal"
}
]
},
{
"available_video_number": 1,
"camera_index": "39-0-7",
"coexist_video_number_max": 1,
"video_list": [
{
"video_index": "normal-0",
"video_type": "normal"
}
]
}
],
"coexist_video_number_max": 1,
"sn": "1581F5FJD339F00DDE81"
}
]
}
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1735590242077,
"gateway": "5YSZLBM0044RAR"
}
Please sign in to leave a comment.
Comments
3 comments