fix: 解决轨迹黑屏问题

This commit is contained in:
wangzhongjie 2025-08-05 09:41:25 +08:00
parent 93cec28b1f
commit f281fd369f
3 changed files with 13 additions and 10 deletions

View File

@ -1010,5 +1010,11 @@ export interface LANE {
count: number
}
export interface DistanceParam {
jd1: number,
wd1: number,
jd2: number,
wd2: number,
h: number
}

View File

@ -1,5 +1,5 @@
import libJudgeSdk from '@ohos.judgesdk';
import { JudgeBeginObj, JudgeInitObj, PLCType } from '../../model';
import { DistanceParam, JudgeBeginObj, JudgeInitObj, PLCType } from '../../model';
import { dConsole } from '../../utils/LogWorker';
/**
@ -200,13 +200,7 @@ export async function examJudgeSoundEnd(param: SoundParam) {
* @desc 实时距离计算
*
* */
interface DistanceParam {
jd1: number,
wd1: number,
jd2: number,
wd2: number,
h: number
}
export async function examCalcGpsDistance(param: DistanceParam): Promise<number> {
const temp: number = libJudgeSdk.examCalcGpsDistance(param.jd1, param.wd1, param.jd2, param.wd2, param.h);

View File

@ -19,6 +19,8 @@ import systemTime from '@ohos.systemDateTime';
import { SerialNumberInstance } from '../SerialNumber';
import { GetDwStatusType, GetTranslateSignals } from '../../pages/Judge/utils';
// import { examCalcGpsDistance } from '../../pages/Judge/JudgeUtils';
class JudgeUdpBusiness {
private static instance: JudgeUdpBusiness
@ -201,6 +203,7 @@ class JudgeUdpBusiness {
// wd2: wd,
// h: Number(msgArr[90]) || 1,
// })
}
prevJd = jd;
preWd = wd;