feat: 完善机巢任务安全控制与状态诊断
同步新版飞控与 WebSocket 回执合同,完善独立指令等待、暂停继续和返航状态;增加真机诊断并优化倒计时与素材库展示。
This commit is contained in:
@@ -102,7 +102,7 @@ private final class SilentRefreshService: DroneDockShootingServing, DroneDockSta
|
||||
""".utf8))
|
||||
}
|
||||
|
||||
func sendCommand(taskID: Int, command: DroneDockSafetyCommand) async throws -> DroneDockCommandResponse {
|
||||
func sendCommand(taskID: Int, command: DroneDockSafetyCommand, clientRequestID: String) async throws -> DroneDockCommandResponse {
|
||||
XCTFail("本测试不提交安全指令")
|
||||
throw CancellationError()
|
||||
}
|
||||
@@ -111,6 +111,10 @@ private final class SilentRefreshService: DroneDockShootingServing, DroneDockSta
|
||||
|
||||
static func snapshot(shooting: Bool) throws -> DroneDockShootingResponse {
|
||||
try DroneDockShootingTaskTestData.response(changes: [
|
||||
"execution_batch": 100, "state_version": shooting ? 2 : 1,
|
||||
"flight_control": DroneDockShootingTaskTestData.flightControl(
|
||||
resumePhase: shooting ? "shooting" : "arrived_pending_start",
|
||||
pauseReason: shooting ? nil : "arrival_wait"),
|
||||
"order_flight_task": ["id": 501, "order_number": "TEST-TASK-PAGE-001", "scenic_id": 128, "status": 20],
|
||||
"task": ["id": 501, "status": 20], "current_plane": ["id": 58],
|
||||
"execute_gate": ["can_execute": !shooting, "primary_action": shooting ? "shooting" : "start_shoot"],
|
||||
|
||||
Reference in New Issue
Block a user