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, // 重量