修复完成作业停止之后再开始作业

This commit is contained in:
2026-03-12 16:41:11 +08:00
parent 8a91d5b334
commit c58bf370e3
4 changed files with 17 additions and 1 deletions

View File

@@ -181,6 +181,13 @@ class PathPlanner {
_isStopped = true;
_isPaused = false; // 清除暂停状态
// 🔥 核心修复:清空队列
print("🗑️ 清空待发送队列,剩余 ${locationQueue.length} 个点");
locationQueue.clear();
var entity = new RoutePlanSendEntity(
commandType: 0x01,
pointCounts: 0,