feat: 完善机巢任务安全控制与状态诊断
同步新版飞控与 WebSocket 回执合同,完善独立指令等待、暂停继续和返航状态;增加真机诊断并优化倒计时与素材库展示。
This commit is contained in:
@@ -40,6 +40,10 @@ struct DroneDockShootingResponse: Decodable, Equatable, Sendable {
|
||||
let planeStatus: DroneDockShootingPlaneStatus?
|
||||
/// 执行门禁参与展示及本地模拟开拍校验,不能解除真实飞控禁令。
|
||||
let executeGate: DroneDockShootingExecuteGate?
|
||||
/// 重召唤许可独立于开拍门禁,缺失不视为允许。
|
||||
let restartGate: DroneDockShootingRestartGate?
|
||||
/// 当前批次设备执行状态与逐项权限,不依赖服务端显示文案。
|
||||
let flightControl: DroneDockFlightControl?
|
||||
/// 服务端拍摄阶段和页面提示。
|
||||
let ui: DroneDockShootingUI?
|
||||
/// 完整 data 的格式化 JSON,保留未知字段、空值及原 JSON 类型。
|
||||
@@ -54,6 +58,7 @@ struct DroneDockShootingResponse: Decodable, Equatable, Sendable {
|
||||
case orderNumber = "order_number", orderFlightTask = "order_flight_task", task
|
||||
case scenic, scenicSpot = "scenic_spot", airLine = "air_line"
|
||||
case header, currentPlane = "current_plane", executeGate = "execute_gate", ui
|
||||
case restartGate = "restart_gate", flightControl = "flight_control"
|
||||
case metrics, planeStatus = "plane_status"
|
||||
}
|
||||
|
||||
@@ -79,6 +84,8 @@ struct DroneDockShootingResponse: Decodable, Equatable, Sendable {
|
||||
metrics = try container.decodeIfPresent([DroneDockHomeMetric].self, forKey: .metrics) ?? []
|
||||
planeStatus = try container.decodeIfPresent(DroneDockShootingPlaneStatus.self, forKey: .planeStatus)
|
||||
executeGate = try container.decodeIfPresent(DroneDockShootingExecuteGate.self, forKey: .executeGate)
|
||||
restartGate = try container.decodeIfPresent(DroneDockShootingRestartGate.self, forKey: .restartGate)
|
||||
flightControl = try container.decodeIfPresent(DroneDockFlightControl.self, forKey: .flightControl)
|
||||
ui = try container.decodeIfPresent(DroneDockShootingUI.self, forKey: .ui)
|
||||
let raw = try DroneDockHomeJSONValue(from: decoder)
|
||||
let encoder = JSONEncoder()
|
||||
@@ -95,7 +102,7 @@ struct DroneDockShootingTaskIdentity: Decodable, Equatable, Sendable {
|
||||
let orderNumber: String?
|
||||
/// 任务所属景区。
|
||||
let scenicID: Int?
|
||||
/// 订单飞行任务状态:10 待执行、20 执行中、30 成功、40 失败、50 取消、60 待确认。
|
||||
/// 订单飞行任务状态:10 待执行、20 执行中、25 素材上传中、30 成功、40 失败、50 取消、60 待确认。
|
||||
let status: Int?
|
||||
/// 服务端任务状态文案。
|
||||
let statusLabel: String?
|
||||
|
||||
Reference in New Issue
Block a user