feat: 完善机巢图传、拍摄阶段与任务交互

- 完善双路 RTC 接收、首帧切换及拍摄结束后的本地播放释放
- 对齐无人机状态枚举与正常拍完返航标记,新增到达后本地倒计时
- 补充准备页电量与前往回执,进入任务时移除准备页路由
- 对齐拍摄中和拍摄完成原型布局,移除详情按钮
- 补充隔离测试、接口记录与项目约定

验证:最近 157 项相关模拟器隔离测试通过,Release 无签名编译通过;未调用真实飞控或图传。
This commit is contained in:
2026-11-03 16:43:23 +08:00
parent 0ed0077ec4
commit 54210925f0
33 changed files with 3242 additions and 205 deletions
@@ -36,7 +36,9 @@ final class DroneDockRemotePreparationViewController: BaseViewController {
self.viewModel = viewModel
self.simulationRecordsProvider = simulationRecordsProvider
self.taskControllerFactory = taskControllerFactory ?? { taskID, order, context in
DroneDockShootingTaskEntry.makeController(taskID: taskID, order: order, context: context)
DroneDockShootingTaskEntry.makeController(taskID: taskID, order: order, context: context,
coverURL: viewModel.selectedSpot?.displayCoverURL,
initialSummonReceipt: viewModel.shootResponse)
}
self.planeStatusPollDelay = planeStatusPollDelay
super.init(nibName: nil, bundle: nil)
@@ -222,7 +224,7 @@ final class DroneDockRemotePreparationViewController: BaseViewController {
present(alert, animated: true)
}
/// 成功后自动导航一次;失败的已结束任务只在用户明确点击时查看原任务。
/// 进入任务时替换有前驱的准备页,返回直达工作台;独立调试根页保留原返回入口。
@discardableResult
private func openShootingTask(automatically: Bool) -> Bool {
guard isPageVisible, isApplicationActive, viewModel.canOpenShootingTask,
@@ -232,7 +234,12 @@ final class DroneDockRemotePreparationViewController: BaseViewController {
DroneDockDiagnostics.event("navigation.open_task", taskID: taskID)
automaticallyOpenedTaskID = taskID
let controller = taskControllerFactory(taskID, viewModel.order, viewModel.context)
navigationController.pushViewController(controller, animated: true)
let stack = navigationController.viewControllers
if stack.count > 1 {
navigationController.setViewControllers(Array(stack.dropLast()) + [controller], animated: true)
} else {
navigationController.pushViewController(controller, animated: true)
}
return true
}