From e8a159c96252bd07fe8ce292943cff2666bc6a10 Mon Sep 17 00:00:00 2001 From: tk Date: Mon, 2 Sep 2024 17:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afactor=20=E5=90=8E=E7=AB=AF=E6=94=B9=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=90=8D=E5=AD=97=20=E5=89=8D=E7=AB=AF=E5=90=8C=E6=AD=A5=20?= =?UTF-8?q?=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91=EF=BC=9A=20=E3=80=90?= =?UTF-8?q?=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1?= =?UTF-8?q?=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ControllerTabs.vue | 22 +++++++++++----------- src/store/index.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/ControllerTabs.vue b/src/components/ControllerTabs.vue index 54ba197..d6c743e 100644 --- a/src/components/ControllerTabs.vue +++ b/src/components/ControllerTabs.vue @@ -134,25 +134,25 @@ - 上传航点 - 航点写入中··· - 解锁飞机 - 解锁中... - + @click="publishFun('{setQuestState:{bit:5,state:1}}'); speakText('准备起飞,执行送餐任务')"> 执行任务 @@ -537,7 +537,7 @@ export default { }, /** * @description: 发布 mqtt 信息 - * @param {*} jsonData {'item':val} // item: questAss飞行航点任务 setPlaneState 设置飞机状态 resetState设置飞机初始状态 chan1油门通道1 chan2油门通道2 chan3油门通道3 chan4油门通道4 hookConteroller钩子控制 cameraController云台相机控制 + * @param {*} jsonData {'item':val} // item: questAss飞行航点任务 setQuestState 设置飞机状态 resetQuestState设置飞机初始状态 chan1油门通道1 chan2油门通道2 chan3油门通道3 chan4油门通道4 hookConteroller钩子控制 cameraController云台相机控制 */ publishFun (jsonData) { if (this.plane) { @@ -804,7 +804,7 @@ export default { }) if (res.data.status === 1) { - this.publishFun('{"resetState":1}') // 发送设置飞机状态主题 状态设为闲置 + this.publishFun('{"resetQuestState":1}') // 发送设置飞机状态主题 状态设为闲置 } } } catch (error) { @@ -850,7 +850,7 @@ export default { }) if (res.data.status === 1) { - this.publishFun('{"resetState":1}') // 发送设置飞机状态主题 状态设为闲置 + this.publishFun('{"resetQuestState":1}') // 发送设置飞机状态主题 状态设为闲置 } } } catch (error) { @@ -960,7 +960,7 @@ export default { } } else { // 没有执行订单 if (this.plane) { - this.publishFun('{"resetState":1}')// 发送设置飞机状态主题 状态设为闲置 + this.publishFun('{"resetQuestState":1}')// 发送设置飞机状态主题 状态设为闲置 } } }, @@ -979,7 +979,7 @@ export default { this.setExecuteOrderTag(val) } else { this.$emit('clearRoute')// 如果没有执行任务 把地图上航线清除 - this.publishFun('{"resetState":1}')// 发送设置飞机状态主题 状态设为闲置 + this.publishFun('{"resetQuestState":1}')// 发送设置飞机状态主题 状态设为闲置 } }, questList (val) { diff --git a/src/store/index.js b/src/store/index.js index dfdd82b..dfd95a4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -280,7 +280,7 @@ const store = new Vuex.Store({ fixType: null, // 定位状态 completionPct: 0, // 磁罗盘校准进度 reportCal: null, // 磁罗盘校准结果 - state: 1, // 飞机状态 默认初始状态为1 + questState: 1, // 飞机状态 默认初始状态为1 acceState: null, // 加速度计校准状态 getPlaneMode: null, // 飞机模式 loadweight: null, // 重量