大疆机场2模拟器执行航线任务报错315009
Completed使用最新10.01.16.04固件执行模拟器飞行时,报错315009,但是使用固件09.00.06.01版本执行模拟器飞行时,却又是可以正常执行。请问这是什么原因,在09.00.06.01固件版本之后对模拟器飞行航线任务这一块做了什么修改。
-
//services
{
"tid": "5dd3be6e-7b2d-4592-8ed5-99082fe00dcf",
"bid": "42db658c-08bc-44f1-8029-c571735404c6",
"timestamp": 1722325346267,
"data": {
"flight_id": "42db658c-08bc-44f1-8029-c571735404c6",
"execute_time": 1722325346000,
"task_type": 0,
"wayline_type": 0,
"file": {
"url": "http://192.168.17.65:9000/cloud-bucket/wayline/24072515YMGDAM.kmz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20240730%2Fcn-wuhan%2Fs3%2Faws4_request&X-Amz-Date=20240730T074226Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ef5439458d3457a46f14500dc5fdf03bde256414d33c0830b07d3989c312e842",
"fingerprint": "db36961e7b28c8b61f0e25cb1cd7bd91"
},
"rth_altitude": 100,
"out_of_control_action": 0,
"exit_wayline_when_rc_lost": 1,
"rth_mode": 1,
"simulate_mission": {
"is_enable": 1,
"latitude": 30.455244,
"longitude": 114.40099
}
},
"method": "flighttask_prepare"
}
//services_reply
{
"bid": "42db658c-08bc-44f1-8029-c571735404c6",
"data": {
"result": 0
},
"method": "flighttask_prepare",
"tid": "5dd3be6e-7b2d-4592-8ed5-99082fe00dcf",
"timestamp": 1722325345109
}
//services
{
"tid": "8464348b-c3bb-4487-8722-4e10d867b406",
"bid": "42db658c-08bc-44f1-8029-c571735404c6",
"timestamp": 1722325346310,
"data": {
"flight_id": "42db658c-08bc-44f1-8029-c571735404c6"
},
"method": "flighttask_execute"
}//services_reply
{
"bid": "42db658c-08bc-44f1-8029-c571735404c6",
"data": {
"result": 0
},
"method": "flighttask_execute",
"tid": "8464348b-c3bb-4487-8722-4e10d867b406",
"timestamp": 1722325345138
}//requests
{
"bid": "87860d43-1634-475b-95a2-062e1d079486",
"data": {
"flight_id": "42db658c-08bc-44f1-8029-c571735404c6"
},
"method": "flighttask_resource_get",
"tid": "dbebaf18-2a9d-40d4-b036-c5d6fb81f96d",
"timestamp": 1722325380064,
"gateway": "7CTDM1D00B0L05"
}//requests_reply
{
"tid": "dbebaf18-2a9d-40d4-b036-c5d6fb81f96d",
"bid": "87860d43-1634-475b-95a2-062e1d079486",
"data": {
"result": 0,
"output": {
"file": {
"url": "http://192.168.17.65:9000/cloud-bucket/wayline/24072515YMGDAM.kmz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20240730%2Fcn-wuhan%2Fs3%2Faws4_request&X-Amz-Date=20240730T074301Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=c5de20328e75de74bd7ea7bd58476b2e27b16603851d45cba18b3ef3da910908",
"fingerprint": "db36961e7b28c8b61f0e25cb1cd7bd91"
}
}
},
"timestamp": 1722325381292,
"method": "flighttask_resource_get"
}这是我的请求。请帮忙看一下是否存在问题?
-
Event | 上云API (dji.com) 最新的文档里面没有waylineID字段。能否提供完整的链路示例。
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 您查看下这个地址:https://developer.dji.com/doc/cloud-api-tutorial/cn/api-reference/dock-to-cloud/mqtt/dock/dock2/wayline.html 焊线文件的waylineID和下发任务的保持一致。 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
能否截图给我最新的文档Event | 上云API (dji.com) 哪里有waylineid字段?
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 航线文件在https://developer.dji.com/doc/cloud-api-tutorial/cn/api-reference/dji-wpml/waylines-wpml.html这个地址直接搜waylineId 航线任务的在这个地址:https://developer.dji.com/doc/cloud-api-tutorial/cn/api-reference/dock-to-cloud/mqtt/dock/dock2/wayline.html#%E4%B8%8B%E5%8F%91%E4%BB%BB%E5%8A%A1。搜wayline_id 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 机场在执行航线任务中,会通过flighttask_progress不断上报航线执行的任务进度。在任务进度上报中,如果上报了重要消息(如航线执行结束、航线执行异常),机场要求云端必须回复该消息,否则机场会不断重试上报该消息。消息中的need_reply为1的消息即需要云端回复的消息。 基本流程没问题,依旧报错315009吗?监控下flighttask_progress是不是未回复need_reply为1的 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
{ "bid": "6de412da-0736-4756-bb65-3bacb7e7c565", "data": { "output": { "ext": { "current_waypoint_index": 0, "flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565", "track_id": "", "wayline_id": 65535, "wayline_mission_state": 2 }, "progress": { "current_step": 7, "percent": 10 }, "status": "in_progress" }, "result": 0 }, "method": "flighttask_progress", "need_reply": 0, "tid": "b41fdecd-19bb-4f78-a231-1d385f2bc8ef", "timestamp": 1722394109689, "gateway": "7CTDM1D00B0L05" }
{ "bid": "6de412da-0736-4756-bb65-3bacb7e7c565", "data": { "output": { "ext": { "current_waypoint_index": 0, "flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565", "track_id": "", "wayline_id": 65535, "wayline_mission_state": 2 }, "progress": { "current_step": 13, "percent": 15 }, "status": "in_progress" }, "result": 0 }, "method": "flighttask_progress", "need_reply": 0, "tid": "5abaa2be-46f0-4928-a3f3-6d29175c6b31", "timestamp": 1722394109919, "gateway": "7CTDM1D00B0L05" }
{ "bid": "d9346a7c-b174-4d8d-9494-8954d48d6def", "data": { "file": null, "reason": 1, "status": "fail" }, "method": "offline_map_sync_progress", "need_reply": 1, "tid": "495ed177-ec79-46f9-b0c6-997a72f2544a", "timestamp": 1722394111988, "gateway": "7CTDM1D00B0L05" }
{ "bid": "d9346a7c-b174-4d8d-9494-8954d48d6def", "data": { "file": null, "reason": 1, "status": "fail" }, "method": "offline_map_sync_progress", "need_reply": 1, "tid": "495ed177-ec79-46f9-b0c6-997a72f2544a", "timestamp": 1722394111988, "gateway": "7CTDM1D00B0L05" }
{ "bid": "6de412da-0736-4756-bb65-3bacb7e7c565", "data": { "output": { "ext": { "current_waypoint_index": 0, "flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565", "track_id": "", "wayline_id": 65535, "wayline_mission_state": 2 }, "progress": { "current_step": 19, "percent": 20 }, "status": "in_progress" }, "result": 0 }, "method": "flighttask_progress", "need_reply": 0, "tid": "b2eb5825-9023-411c-b73a-2e7bd82fd5c7", "timestamp": 1722394118524, "gateway": "7CTDM1D00B0L05" }
{ "bid": "d9346a7c-b174-4d8d-9494-8954d48d6def", "data": { "file": null, "reason": 1, "status": "fail" }, "method": "offline_map_sync_progress", "need_reply": 1, "tid": "495ed177-ec79-46f9-b0c6-997a72f2544a", "timestamp": 1722394111988, "gateway": "7CTDM1D00B0L05" }
{ "bid": "8ec43732-09bd-4a56-aa2b-cded2e1b40b2", "data": { "list": [ { "properties": { "cover_close_end_time": 1722394134724, "cover_close_start_time": 1722394118852, "flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565", "fly_to_duration": 0, "get_media_count_end_time": 1722394135994, "get_media_count_start_time": 1722394135223, "get_tracking_data_end_time": 1722394135222, "get_tracking_data_start_time": 1722394134724, "joystick_duration": 0, "landing_duration": 0, "landing_time": 0, "manual_fly_duration": 0, "pano_shot_duration": 0, "record_state_check_end_time": 1722394135223, "record_state_check_start_time": 1722394135222, "return_home_duration": 0, "spotlight_zoom_duration": 0, "take_off_duration": 0, "take_off_time": 0, "transition_wayline_duration": 0, "visual_explore_duration": 0, "waiting_rtk_duration": 0, "wayline_duration": 0 }, "sn": "7CTDM1D00B0L05", "timestamp": 1722394136026, "type": "flighttask_execute" } ] }, "method": "track", "tid": "5ef95e02-19e7-4511-bc66-9e3f0848672d", "timestamp": 1722394136026, "gateway": "7CTDM1D00B0L05" }{
"bid": "8ec43732-09bd-4a56-aa2b-cded2e1b40b2",
"data": {
"list": [
{
"properties": {
"cover_close_end_time": 1722394134724,
"cover_close_start_time": 1722394118852,
"flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565",
"fly_to_duration": 0,
"get_media_count_end_time": 1722394135994,
"get_media_count_start_time": 1722394135223,
"get_tracking_data_end_time": 1722394135222,
"get_tracking_data_start_time": 1722394134724,
"joystick_duration": 0,
"landing_duration": 0,
"landing_time": 0,
"manual_fly_duration": 0,
"pano_shot_duration": 0,
"record_state_check_end_time": 1722394135223,
"record_state_check_start_time": 1722394135222,
"return_home_duration": 0,
"spotlight_zoom_duration": 0,
"take_off_duration": 0,
"take_off_time": 0,
"transition_wayline_duration": 0,
"visual_explore_duration": 0,
"waiting_rtk_duration": 0,
"wayline_duration": 0
},
"sn": "7CTDM1D00B0L05",
"timestamp": 1722394136026,
"type": "flighttask_execute"
}
]
},
"method": "track",
"tid": "5ef95e02-19e7-4511-bc66-9e3f0848672d",
"timestamp": 1722394136026,
"gateway": "7CTDM1D00B0L05"
}{
"bid": "6de412da-0736-4756-bb65-3bacb7e7c565",
"data": {
"output": {
"ext": {
"current_waypoint_index": 0,
"flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565",
"media_count": 0,
"track_id": "",
"wayline_id": 65535,
"wayline_mission_state": 2
},
"progress": {
"current_step": 35,
"percent": 20
},
"status": "failed"
},
"result": 315009
},
"method": "flighttask_progress",
"need_reply": 1,
"tid": "abcc185b-24ab-48f6-864c-2c8fb0cf88a0",
"timestamp": 1722394136029,
"gateway": "7CTDM1D00B0L05"
}这是错误信息
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 您使用的是demo1.10的代码开发的吗?该报错是设置home点失败,您试下重启机场能否解决。模拟器在以下地址获取:https://sdk-forum.dji.net/hc/zh-cn/articles/4592322331033-1-3-DJI-%E6%97%A0%E4%BA%BA%E6%9C%BA%E4%B8%8E%E8%B0%83%E5%8F%82%E4%BB%BF%E7%9C%9F%E8%BD%AF%E4%BB%B6-DJI-Assistant2?auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Nzg4MTcsInVzZXJfaWQiOjI4MzA3Mjk0Nzg3LCJ0aWNrZXRfaWQiOjExMjkwOCwiY2hhbm5lbF9pZCI6NjMsInR5cGUiOiJTRUFSQ0giLCJleHAiOjE3MjQ5ODY1MDd9.k6lDViqQwI7aDtb6o2Xy0bu9P8hea17wf5BcVh1M6LU&source=search 模拟飞行需要保证RTK收敛。 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
{ "tid": "63b08d4a-c3d0-4b92-932e-553605841a46", "bid": "45ef5da0-5192-4c1e-b500-12fdd04230c0", "timestamp": 1722394136367, "data": { "network_state": { "type": 2, "quality": 0, "rate": 36 }, "drone_charge_state": { "state": 0, "capacity_percent": 86 }, "drone_in_dock": 1, "rainfall": 0, "wind_speed": 0, "environment_temperature": 31, "temperature": 29.6, "humidity": 25, "heading": 0, "home_position_is_valid": 0, "latitude": 0, "longitude": 0, "height": 0, "alternate_land_point": { "latitude": 30.455293219539609, "longitude": 114.40095617561992, "height": 0, "safe_land_height": 30, "is_configured": 1 }, "first_power_on": 1631945855969, "position_state": { "is_calibration": 1, "is_fixed": 2, "quality": 5, "gps_number": 7, "rtk_number": 35 }, "storage": { "total": 79981124, "used": 79604 }, "mode_code": 0, "cover_state": 0, "silent_mode": 1, "supplement_light_state": 0, "emergency_stop_state": 0, "air_conditioner": { "air_conditioner_state": 0, "switch_time": 0 }, "battery_store_mode": 2, "alarm_state": 0, "putter_state": 0, "sub_device": { "device_sn": "1581F6Q8D243U00C9PUB", "device_model_key": "0-91-1", "device_online_status": 1, "device_paired": 1 } }, "gateway": "7CTDM1D00B0L05" }
这是dock的osd信息,收敛是成功的。是基于demo1.10的代码开发的,
但是根据最新的固件进行了部分改动。主要是DockStateDataKeyEnum这个类的改动。
{
"bid": "9d41281c-1abe-497b-9c0a-e55133cd2aad",
"data": {
"flight_id": "6de412da-0736-4756-bb65-3bacb7e7c565",
"last_point_type": 0,
"planned_path_points": [
{
"height": 21.343002319335938,
"latitude": 30.455244015902281,
"longitude": 114.40098999068141
},
{
"height": 21.343002319335938,
"latitude": 30.455244015902281,
"longitude": 114.40098999068141
}
]
},
"method": "return_home_info",
"tid": "a0936809-8978-4385-af67-bb5054f39ab6",
"timestamp": 1722394133790,
"gateway": "7CTDM1D00B0L05"
}
这是return_home_info。
重启机场无法解决。 -
@Wanlf2014 大疆机场2的模拟器 哪儿下载
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 报文是正确的,确定上云时不要使用遥控器操作。您拉取下无人机和机场日志这边详细排查下。 您可以将机场和无人机日志上传到以下地址:https://pan-sec.djicorp.com/s/2xiprqLNfBe3xYq 另外,需要您补全以下信息(必要): 机场型号及固件版本: 无人机型号及固件版本: 故障现象: 故障发生的具体时间: 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持
Please sign in to leave a comment.
Comments
42 comments