From 29e11bba39ab9e50464ae640ba0994d52ca606c0 Mon Sep 17 00:00:00 2001 From: surenjun Date: Wed, 14 May 2025 13:16:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:1.=E7=9B=91=E6=8E=A7=E7=94=BB=E9=9D=A2gps?= =?UTF-8?q?=E4=BD=8D=E6=95=B0=E6=94=B9=E6=88=907=EF=BC=9B2.=E7=BB=8F?= =?UTF-8?q?=E5=BA=A6=E3=80=81=E7=BA=AC=E5=BA=A6=E6=95=B0=E6=8D=AE=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/UdpJudge.ts | 4 ++-- entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/common/utils/UdpJudge.ts b/entry/src/main/ets/common/utils/UdpJudge.ts index 416a9ad6..f5e3b4ce 100644 --- a/entry/src/main/ets/common/utils/UdpJudge.ts +++ b/entry/src/main/ets/common/utils/UdpJudge.ts @@ -261,8 +261,8 @@ const getPlcData = async (plc: string) => { //TODO gps数据 //gps时间 经度 纬度 航向角 俯仰角 海拔高 高度差 速度 sj: time, - jd: p[96], - wd: p[95], + jd: Math.max(Number(p[95]),Number(p[96])), + wd: Math.min(Number(p[95]),Number(p[96])), hxj: p[90], fyj: p[91], hbg: p[85], diff --git a/entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts b/entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts index 3320afce..63928d6c 100644 --- a/entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts +++ b/entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts @@ -19,7 +19,7 @@ export const judgeConfig = { //四合一画面配置 fourInOneScreen:{ //gps位数 - gpsDigit:6 + gpsDigit:7 }, // 杭州科目二 // trajectoryPath: 'logs/2024_07_19/0000000000001_342323199501470011_测试学员1_2024_07_19_06_49_12/judge_exam_data.txt',