From fbfdbd797b10e944ab0c4847ce4adc23df8353cf Mon Sep 17 00:00:00 2001 From: surenjun Date: Fri, 20 Dec 2024 09:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=B7=AE=E5=88=86=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=98=BE=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Judge.ets | 2 +- entry/src/main/ets/pages/judgeSDK/judge.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/Judge.ets b/entry/src/main/ets/pages/Judge.ets index 078c6237..c7a8242e 100644 --- a/entry/src/main/ets/pages/Judge.ets +++ b/entry/src/main/ets/pages/Judge.ets @@ -1325,7 +1325,7 @@ struct Index { @State lane: LANE = { road: '', num: 0, count: 0 } @State roadData: Object = {}; //定位差分状态时候正常 - @State isDwztRight: boolean = false; + @State isDwztRight: boolean = true; @State defaultTabIndex: number = 0; private context = getContext(this) as common.UIAbilityContext; public kfArrScroller: Scroller = new Scroller() diff --git a/entry/src/main/ets/pages/judgeSDK/judge.ts b/entry/src/main/ets/pages/judgeSDK/judge.ts index 58e90e00..d3217516 100644 --- a/entry/src/main/ets/pages/judgeSDK/judge.ts +++ b/entry/src/main/ets/pages/judgeSDK/judge.ts @@ -1482,7 +1482,7 @@ export default class Judge { const str = await senorToWXDataStr(msg); usbService.sendUSB(str) } - this.judgeUI.isDwztRight = (plcData.gps.dwzt == 4 && plcData.gps.jdzt == 3); + // this.judgeUI.isDwztRight = (plcData.gps.dwzt == 4 && plcData.gps.jdzt == 3); const param350 = judgeUI.judgeConfigObj['350'] //@ts-ignore this.judgeUI.sd = ((param350 == 0? plcData.gps.sd :plcData.sensor.cs) as number * 1.852).toFixed(0) + '' @@ -1620,6 +1620,7 @@ export default class Judge { const judgeConfig = this.judgeUI.judgeConfig; switch (type){ case 0: + this.judgeUI.isDwztRight = true; break; case 1: @@ -1640,6 +1641,7 @@ export default class Judge { break; case 4: + this.judgeUI.isDwztRight = false; //差分异常上报 break; }