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',