fix: 解决轨迹黑屏问题
This commit is contained in:
parent
93cec28b1f
commit
f281fd369f
@ -498,7 +498,7 @@ export interface JudgeUI {
|
|||||||
dw: string
|
dw: string
|
||||||
endExamDialogController: CustomDialogController
|
endExamDialogController: CustomDialogController
|
||||||
generateExamRecordsDialogController: CustomDialogController
|
generateExamRecordsDialogController: CustomDialogController
|
||||||
laneSignal:PerLane,
|
laneSignal: PerLane,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1010,5 +1010,11 @@ export interface LANE {
|
|||||||
count: number
|
count: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DistanceParam {
|
||||||
|
jd1: number,
|
||||||
|
wd1: number,
|
||||||
|
jd2: number,
|
||||||
|
wd2: number,
|
||||||
|
h: number
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import libJudgeSdk from '@ohos.judgesdk';
|
import libJudgeSdk from '@ohos.judgesdk';
|
||||||
import { JudgeBeginObj, JudgeInitObj, PLCType } from '../../model';
|
import { DistanceParam, JudgeBeginObj, JudgeInitObj, PLCType } from '../../model';
|
||||||
import { dConsole } from '../../utils/LogWorker';
|
import { dConsole } from '../../utils/LogWorker';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -200,13 +200,7 @@ export async function examJudgeSoundEnd(param: SoundParam) {
|
|||||||
* @desc 实时距离计算
|
* @desc 实时距离计算
|
||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
interface DistanceParam {
|
|
||||||
jd1: number,
|
|
||||||
wd1: number,
|
|
||||||
jd2: number,
|
|
||||||
wd2: number,
|
|
||||||
h: number
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function examCalcGpsDistance(param: DistanceParam): Promise<number> {
|
export async function examCalcGpsDistance(param: DistanceParam): Promise<number> {
|
||||||
const temp: number = libJudgeSdk.examCalcGpsDistance(param.jd1, param.wd1, param.jd2, param.wd2, param.h);
|
const temp: number = libJudgeSdk.examCalcGpsDistance(param.jd1, param.wd1, param.jd2, param.wd2, param.h);
|
||||||
|
|||||||
@ -19,6 +19,8 @@ import systemTime from '@ohos.systemDateTime';
|
|||||||
import { SerialNumberInstance } from '../SerialNumber';
|
import { SerialNumberInstance } from '../SerialNumber';
|
||||||
import { GetDwStatusType, GetTranslateSignals } from '../../pages/Judge/utils';
|
import { GetDwStatusType, GetTranslateSignals } from '../../pages/Judge/utils';
|
||||||
|
|
||||||
|
// import { examCalcGpsDistance } from '../../pages/Judge/JudgeUtils';
|
||||||
|
|
||||||
|
|
||||||
class JudgeUdpBusiness {
|
class JudgeUdpBusiness {
|
||||||
private static instance: JudgeUdpBusiness
|
private static instance: JudgeUdpBusiness
|
||||||
@ -201,6 +203,7 @@ class JudgeUdpBusiness {
|
|||||||
// wd2: wd,
|
// wd2: wd,
|
||||||
// h: Number(msgArr[90]) || 1,
|
// h: Number(msgArr[90]) || 1,
|
||||||
// })
|
// })
|
||||||
|
|
||||||
}
|
}
|
||||||
prevJd = jd;
|
prevJd = jd;
|
||||||
preWd = wd;
|
preWd = wd;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user