补充 9.9.1 机巢交付资料并切换运行配置
This commit is contained in:
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:00:00.000+08:00",
|
||||
"data": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 128,
|
||||
"updated_at": "2026-11-06T10:00:00.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "ready",
|
||||
"finished_at": null,
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "not_started",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "mission",
|
||||
"hold": "arrival_wait",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": null,
|
||||
"observed_at": "2026-11-06T10:00:00.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": "start-context-001"
|
||||
},
|
||||
"pause": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "NOT_MANUALLY_PAUSED",
|
||||
"message": "当前没有已确认的手动暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "counting_down",
|
||||
"deadline_at": "2026-11-06T10:00:30.000+08:00",
|
||||
"remaining_ms": null
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [],
|
||||
"live": {
|
||||
"allowed": true,
|
||||
"reason": null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:02:00.000+08:00",
|
||||
"data": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 150,
|
||||
"updated_at": "2026-11-06T10:02:00.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "finished",
|
||||
"finished_at": "2026-11-06T10:02:00.000+08:00",
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "downloading",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "returning",
|
||||
"hold": "none",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": "normal_complete",
|
||||
"observed_at": "2026-11-06T10:02:00.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "CAPTURE_FINISHED",
|
||||
"message": "本次拍摄已完成"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"pause": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "NOT_MANUALLY_PAUSED",
|
||||
"message": "当前没有已确认的手动暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_RETURNING",
|
||||
"message": "无人机正在返航"
|
||||
},
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "not_applicable",
|
||||
"deadline_at": null,
|
||||
"remaining_ms": null
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [],
|
||||
"live": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "CAPTURE_FINISHED",
|
||||
"message": "拍摄已完成"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:02:05.000+08:00",
|
||||
"data": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 151,
|
||||
"updated_at": "2026-11-06T10:02:05.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "finished",
|
||||
"finished_at": "2026-11-06T10:02:00.000+08:00",
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "downloading",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "returning",
|
||||
"hold": "manual",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": "normal_complete",
|
||||
"observed_at": "2026-11-06T10:02:05.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "CAPTURE_FINISHED",
|
||||
"message": "本次拍摄已完成"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"pause": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_PAUSED",
|
||||
"message": "返航任务已暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": "pause-context-returning-001"
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_RETURNING",
|
||||
"message": "无人机正在返航"
|
||||
},
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "not_applicable",
|
||||
"deadline_at": null,
|
||||
"remaining_ms": null
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [],
|
||||
"live": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "CAPTURE_FINISHED",
|
||||
"message": "拍摄已完成"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:03:00.000+08:00",
|
||||
"data": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 160,
|
||||
"updated_at": "2026-11-06T10:03:00.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "interrupted",
|
||||
"finished_at": null,
|
||||
"reason": {
|
||||
"code": "MANUAL_RETURN",
|
||||
"message": "立即返航中断本次拍摄"
|
||||
}
|
||||
},
|
||||
"media": {
|
||||
"state": "not_started",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "returned",
|
||||
"hold": "none",
|
||||
"dock_position": "inside",
|
||||
"airborne": false,
|
||||
"return_reason": "manual",
|
||||
"observed_at": "2026-11-06T10:03:00.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "CAPTURE_INTERRUPTED",
|
||||
"message": "本次拍摄已中断"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"pause": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_RETURNED",
|
||||
"message": "无人机已回巢"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_RETURNED",
|
||||
"message": "无人机已回巢"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_RETURNED",
|
||||
"message": "无人机已回巢"
|
||||
},
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "not_applicable",
|
||||
"deadline_at": null,
|
||||
"remaining_ms": null
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [],
|
||||
"live": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "FLIGHT_ENDED",
|
||||
"message": "本次飞行已结束"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:00:12.000+08:00",
|
||||
"data": {
|
||||
"operation": {
|
||||
"action_id": "action-001",
|
||||
"client_request_id": "11111111-1111-4111-8111-111111111111",
|
||||
"task_id": 501,
|
||||
"request_execution_id": "execution-001",
|
||||
"execution_id": "execution-001",
|
||||
"action": "pause",
|
||||
"status": "pending",
|
||||
"accepted_revision": 129,
|
||||
"submitted_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"updated_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"error": null
|
||||
},
|
||||
"snapshot": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 129,
|
||||
"updated_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "ready",
|
||||
"finished_at": null,
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "not_started",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "mission",
|
||||
"hold": "arrival_wait",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": null,
|
||||
"observed_at": "2026-11-06T10:00:00.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "PAUSE_PENDING",
|
||||
"message": "正在暂停任务"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"pause": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ACTION_PENDING",
|
||||
"message": "暂停指令处理中"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "NOT_MANUALLY_PAUSED",
|
||||
"message": "当前没有已确认的手动暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "paused",
|
||||
"deadline_at": null,
|
||||
"remaining_ms": 18000
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [
|
||||
{
|
||||
"action_id": "action-001",
|
||||
"client_request_id": "11111111-1111-4111-8111-111111111111",
|
||||
"task_id": 501,
|
||||
"request_execution_id": "execution-001",
|
||||
"execution_id": "execution-001",
|
||||
"action": "pause",
|
||||
"status": "pending",
|
||||
"accepted_revision": 129,
|
||||
"submitted_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"updated_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"error": null
|
||||
}
|
||||
],
|
||||
"live": {
|
||||
"allowed": true,
|
||||
"reason": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:00:00.000+08:00",
|
||||
"data": {
|
||||
"event": "task.subscribed",
|
||||
"request_id": "subscribe-request-001",
|
||||
"subscription_id": "subscription-001",
|
||||
"task_id": 501,
|
||||
"snapshot": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 128,
|
||||
"updated_at": "2026-11-06T10:00:00.000+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "ready",
|
||||
"finished_at": null,
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "not_started",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "mission",
|
||||
"hold": "arrival_wait",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": null,
|
||||
"observed_at": "2026-11-06T10:00:00.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": "start-context-001"
|
||||
},
|
||||
"pause": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "NOT_MANUALLY_PAUSED",
|
||||
"message": "当前没有已确认的手动暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "counting_down",
|
||||
"deadline_at": "2026-11-06T10:00:30.000+08:00",
|
||||
"remaining_ms": null
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [],
|
||||
"live": {
|
||||
"allowed": true,
|
||||
"reason": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:00:00.000+08:00",
|
||||
"data": {
|
||||
"session_id": "live-session-001",
|
||||
"client_session_id": "22222222-2222-4222-8222-222222222222",
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"expires_at": "2026-11-06T10:40:00.000+08:00",
|
||||
"next_refresh_at": "2026-11-06T10:00:30.000+08:00",
|
||||
"sources": [
|
||||
{
|
||||
"role": "dock",
|
||||
"source_id": "dock-source-001",
|
||||
"state": "ready",
|
||||
"reason": null,
|
||||
"provider": "volc",
|
||||
"credentials": {
|
||||
"app_id": "EXAMPLE_APP_ID",
|
||||
"room_id": "EXAMPLE_DOCK_ROOM",
|
||||
"user_id": "EXAMPLE_VIEWER_ID",
|
||||
"token": "EXAMPLE_RTC_TOKEN",
|
||||
"expires_at": "2026-11-06T10:40:00.000+08:00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"role": "drone",
|
||||
"source_id": null,
|
||||
"state": "pending",
|
||||
"reason": {
|
||||
"code": "DRONE_SOURCE_PENDING",
|
||||
"message": "等待无人机直播源"
|
||||
},
|
||||
"provider": "volc",
|
||||
"credentials": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"request_id": "server-request-example",
|
||||
"server_time": "2026-11-06T10:00:12.500+08:00",
|
||||
"data": {
|
||||
"found": true,
|
||||
"operation": {
|
||||
"action_id": "action-001",
|
||||
"client_request_id": "11111111-1111-4111-8111-111111111111",
|
||||
"task_id": 501,
|
||||
"request_execution_id": "execution-001",
|
||||
"execution_id": "execution-001",
|
||||
"action": "pause",
|
||||
"status": "succeeded",
|
||||
"accepted_revision": 129,
|
||||
"submitted_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"updated_at": "2026-11-06T10:00:12.500+08:00",
|
||||
"error": null
|
||||
},
|
||||
"snapshot": {
|
||||
"task_id": 501,
|
||||
"execution_id": "execution-001",
|
||||
"revision": 130,
|
||||
"updated_at": "2026-11-06T10:00:12.500+08:00",
|
||||
"summary": {
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"route": {
|
||||
"id": 123,
|
||||
"name": "示例航线"
|
||||
},
|
||||
"customer_label": "游客 158****8888",
|
||||
"package_label": "航拍套餐 · 含 2 次拍摄",
|
||||
"cover_url": null,
|
||||
"aircraft": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号"
|
||||
}
|
||||
},
|
||||
"capture": {
|
||||
"state": "ready",
|
||||
"finished_at": null,
|
||||
"reason": null
|
||||
},
|
||||
"media": {
|
||||
"state": "not_started",
|
||||
"error": null
|
||||
},
|
||||
"flight": {
|
||||
"mode": "mission",
|
||||
"hold": "manual",
|
||||
"dock_position": "outside",
|
||||
"airborne": true,
|
||||
"return_reason": null,
|
||||
"observed_at": "2026-11-06T10:00:12.500+08:00",
|
||||
"stale": false
|
||||
},
|
||||
"permissions": {
|
||||
"summon": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "EXECUTION_ACTIVE",
|
||||
"message": "当前飞行尚未结束"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"start_recording": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "MANUALLY_PAUSED",
|
||||
"message": "任务已暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"pause": {
|
||||
"allowed": false,
|
||||
"reason": {
|
||||
"code": "ALREADY_PAUSED",
|
||||
"message": "任务已暂停"
|
||||
},
|
||||
"context_id": null
|
||||
},
|
||||
"resume": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": "pause-context-001"
|
||||
},
|
||||
"return_home": {
|
||||
"allowed": true,
|
||||
"reason": null,
|
||||
"context_id": null
|
||||
}
|
||||
},
|
||||
"auto_start": {
|
||||
"state": "paused",
|
||||
"deadline_at": null,
|
||||
"remaining_ms": 18000
|
||||
},
|
||||
"telemetry": {
|
||||
"items": [
|
||||
{
|
||||
"key": "battery",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"unit": "%",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6,
|
||||
"unit": "℃",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"value": "2m/s",
|
||||
"raw": 2,
|
||||
"unit": "m/s",
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain",
|
||||
"unit": null,
|
||||
"source": "dock",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"value": "良好",
|
||||
"raw": "good",
|
||||
"unit": null,
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"value": "32颗",
|
||||
"raw": 32,
|
||||
"unit": "颗",
|
||||
"source": "drone",
|
||||
"observed_at": "2026-11-06T09:59:55.000+08:00",
|
||||
"stale": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"operations": [
|
||||
{
|
||||
"action_id": "action-001",
|
||||
"client_request_id": "11111111-1111-4111-8111-111111111111",
|
||||
"task_id": 501,
|
||||
"request_execution_id": "execution-001",
|
||||
"execution_id": "execution-001",
|
||||
"action": "pause",
|
||||
"status": "succeeded",
|
||||
"accepted_revision": 129,
|
||||
"submitted_at": "2026-11-06T10:00:12.000+08:00",
|
||||
"updated_at": "2026-11-06T10:00:12.500+08:00",
|
||||
"error": null
|
||||
}
|
||||
],
|
||||
"live": {
|
||||
"allowed": true,
|
||||
"reason": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# 已废弃的讨论稿示例
|
||||
|
||||
本目录配套早期《拍摄任务页-接口重构方案-讨论稿.md》,早于2026-11-06后续产品确认。
|
||||
|
||||
其中权限集合、后端截止时间、素材状态、正常拍完开始返航即完成等内容已经废弃,不用于实现或验收。
|
||||
|
||||
最终协议见[拍摄任务页 v2 后端实施稿](/Users/hanqiu/Desktop/suixinkan/docs/9.9.1/拍摄任务页-v2接口协议-后端实施稿.md),新样例位于同级目录“拍摄任务页-v2协议示例”。
|
||||
Reference in New Issue
Block a user