司空Webhook
媒体文件上传通知
//指令飞行任务媒体上传通知
{
"notify_type": "drc_file_upload_complete",
"org_id": "组织UUID",
"prj_id": "项目UUID",
"sn": "设备SN",
"task_info": {
"task_type": "任务类型",
"tags": [
"标签1",
"标签2"
],
"task_id": "xxxx-xxxx-xxxx"
},
"files": [
{
"name": "名称",
"key": "阿里云key"
}
],
"folder_info": {
"expected_file_count": 0,
"uploaded_file_count": 0,
"folder_id": 0
}
}
//航线任务媒体上传通知
{
"notify_type": "way_line_file_upload_complete",
"org_id": "组织UUID",
"prj_id": "项目UUID",
"sn": "设备SN",
"task_info": {
"task_type": "任务类型",
"tags": [
"标签1",
"标签2"
],
"task_id": "xxxx-xxxx-xxxx"
},
"files": [
{
"name": "名称",
"key": "阿里云key"
}
],
"folder_info": {
"expected_file_count": 0,
"uploaded_file_count": 0,
"folder_id": 0
}
}
模型后重建/航线文件上传通知
{
"notify_type": "file_uploaded",
"file": {
"id": "File ID",
"name": "File Name",
"object_key": "Object Storage Key",
"type": 5 // 5(航线文件) 7(3d后重建模型)
}
}
上报航线任务执行进度
{
"notify_type": "flighttask_progress",
"complete_at": 0, // 任务完成时间,默认值0
"current_waypoint_index": 3, // 当前航点进度
"landing_dock_sn": "", // 计划降落机场sn,单机场任务为空
"name": "复制从「新建计划124」",
"progress_version": 1718778596923, // 进度消息版本号
"resumable_status": "manual", // 任务续飞状态
"run_at": 1718778515000, // 任务开始执行时间
"sn": "6QCDL820020084",
"status": 2, // 任务状态,0-待执行,1-启动失败,2-执行中,3-已暂停,4-任务终止,5-任务成功,6-已挂起,8-部份执行(仅低电量返航后的状态),9-准备中
"task_type": 1, // 任务类型,1-立即任务
"total_waypoints": 3, // 航线总航点数
"uuid": "182c574b-c7d3-413c-9328-192b93af373f", //任务uuid
"wayline_uuid": "b727c85e-6d45-4f7e-9456-d1673a68ec25" //航线uuid
}
返航信息推送
{
"notify_type": "flighttask_progress",
"flight_id": "8be0f4a5-9fad-4871-b561-5ae11400d1a9",
"home_dock_sn": "6QCDL5L0000093", // 当前默认返航home点
"last_point_type": 0, //0-轨迹最后一个点在返航点的上空。1-轨迹最后一个点不是返航点。
"multi_dock_home_info": // 蛙跳任务信息
[
{
"estimated_battery_consumption": 30, // 返航到机场的预计电量消耗
"home_distance": 0.07234687358140945, // 距机场距离
"plan_status": 3, //0-规划失败或规划中,1-路径不可达,2-电量不可达,3-目标可达
"sn": "6QCDL5L0000093" // 机场sn
},
{
"estimated_battery_consumption": 30, // 返航到机场的预计电量消耗
"home_distance": 18.31174087524414, // 距机场距离
"plan_status": 3, //0-规划失败或规划中,1-路径不可达,2-电量不可达,3-目标可达
"sn": "6QCDL810020011" // 机场sn
}
],
"planned_path_points": // 实时规划的返航路径
[
{
"height": 34.43911633291282,
"latitude": 22.90770427789539,
"longitude": 113.70344733819366
},
{
"height": 34.43911633291282,
"latitude": 22.907704235985875,
"longitude": 113.70344792492688
}
],
"sn": "6QCDL810020011",
"timestamp": 1704349395342
}
退出返航通知
{
"notify_type": "device_exit_return_home",
"action": 0, // "0":"退出”返航退出状态“","1":"进入”返航退出状态“"
"sn": "6QCDL810020011",
"reason": 6 // "2":"行为树初始化失败","3":"被障碍物包围","4":"触发限飞限制","5":"障碍物距离太近","6":"无 GPS 信号","7":"GPS 和 VIO 位置输出标志为 false","8":"GPS 和 VIO 融合位置误差太大",
}
最后修改时间: 1 个月前