feat:屏蔽倒入里程计算的c++包,临时处理轨迹黑屏
This commit is contained in:
parent
ef3a73f801
commit
b73d096243
@ -5,9 +5,9 @@
|
|||||||
"name": "default",
|
"name": "default",
|
||||||
"material": {
|
"material": {
|
||||||
"certpath": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.cer",
|
"certpath": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.cer",
|
||||||
"storePassword": "0000001BE4BBADDF656A884E7A7BB5FD51F64FBB61DD24A944FEA969482DD693210ED5FF3D29F13642E3A3",
|
"storePassword": "0000001BAD00152A1312FDFF36506E6213A7CA54645862036F27B3CEE18B0F94261FD956C0AFB6FCC8DC9C",
|
||||||
"keyAlias": "debugKey",
|
"keyAlias": "debugKey",
|
||||||
"keyPassword": "0000001BDEFFDC280B45617E7FC447CB21F2D133540301F543454643D3F5E9F6E5ED2A583A7FA92B260433",
|
"keyPassword": "0000001B57A42F3DE66C0CBBDBF2C70CE68748BD6148A5658BDCF87F2C3D9666E07A43A748780268553C40",
|
||||||
"profile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p7b",
|
"profile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p7b",
|
||||||
"signAlg": "SHA256withECDSA",
|
"signAlg": "SHA256withECDSA",
|
||||||
"storeFile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p12"
|
"storeFile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p12"
|
||||||
|
|||||||
@ -4,7 +4,9 @@ import { testKm2Items,testKm3Items } from '../../pages/judgeSDK/dataTest/index'
|
|||||||
import { judgeConfig } from '../../pages/judgeSDK/utils/judgeConfig';
|
import { judgeConfig } from '../../pages/judgeSDK/utils/judgeConfig';
|
||||||
import { setJudgeUdp, setTopLineUdp } from './GlobalUdp';
|
import { setJudgeUdp, setTopLineUdp } from './GlobalUdp';
|
||||||
import { convertGpsCoord2 } from '../utils/tools';
|
import { convertGpsCoord2 } from '../utils/tools';
|
||||||
import {examCalcGpsDistance} from '../../pages/judgeSDK/api'
|
|
||||||
|
//@ts-ignore
|
||||||
|
import libJudgeSdk from '@ohos.judgesdk'
|
||||||
import GetDistance from '../utils/GetDistance'
|
import GetDistance from '../utils/GetDistance'
|
||||||
export const initJudgeUdp = async () => {
|
export const initJudgeUdp = async () => {
|
||||||
globalThis.serialIndex = 0;
|
globalThis.serialIndex = 0;
|
||||||
@ -36,13 +38,13 @@ export const initJudgeUdp = async () => {
|
|||||||
const wd = convertGpsCoord2(msgArr[95]*1 || 0);
|
const wd = convertGpsCoord2(msgArr[95]*1 || 0);
|
||||||
udp.send(bytes)
|
udp.send(bytes)
|
||||||
if(prevJd && msgArr[83] == 4){
|
if(prevJd && msgArr[83] == 4){
|
||||||
const distance = await examCalcGpsDistance({
|
// const distance = await libJudgeSdk.examCalcGpsDistance({
|
||||||
jd1:prevJd,
|
// jd1:prevJd,
|
||||||
wd1:preWd,
|
// wd1:preWd,
|
||||||
jd2:jd,
|
// jd2:jd,
|
||||||
wd2:wd,
|
// wd2:wd,
|
||||||
h:msgArr[90]*1 || 1,
|
// h:msgArr[90]*1 || 1,
|
||||||
})
|
// })
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
globalThis.distanceClass?.setTimeData(((distance / 100).toFixed(2)) * 1)
|
globalThis.distanceClass?.setTimeData(((distance / 100).toFixed(2)) * 1)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Judge from '../../judgeSDK/utils/judgeReal';
|
|||||||
import { MarkRule, Project, ProjectObj } from '../../judgeSDK/api/judgeSDK.d';
|
import { MarkRule, Project, ProjectObj } from '../../judgeSDK/api/judgeSDK.d';
|
||||||
import common from '@ohos.app.ability.common';
|
import common from '@ohos.app.ability.common';
|
||||||
import {
|
import {
|
||||||
examJudgeMapSetScaling
|
examJudgeMapSetScaling,
|
||||||
} from '../../judgeSDK/api'
|
} from '../../judgeSDK/api'
|
||||||
|
|
||||||
interface RoadDataType {
|
interface RoadDataType {
|
||||||
|
|||||||
@ -168,7 +168,7 @@ export default class Judge {
|
|||||||
avPlayer.playAudio([globalThis.singlePlay ? 'voice/ksks.WAV' : 'voice/监管成功.mp3'])
|
avPlayer.playAudio([globalThis.singlePlay ? 'voice/ksks.WAV' : 'voice/监管成功.mp3'])
|
||||||
|
|
||||||
if(!globalThis.singlePlay){
|
if(!globalThis.singlePlay){
|
||||||
this.videoData = await saveStartRecordVideo(`${name}_${kssycs}`)
|
// this.videoData = await saveStartRecordVideo(`${name}_${kssycs}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const {examSubject,projectsObj} = this.judgeUI
|
const {examSubject,projectsObj} = this.judgeUI
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
//考试回放开关
|
//考试回放开关
|
||||||
export const judgeConfig = {
|
export const judgeConfig = {
|
||||||
//本地目录开关
|
//本地目录开关
|
||||||
isTrajectoryOpen: false,
|
isTrajectoryOpen: true,
|
||||||
//是否开启拍照
|
//是否开启拍照
|
||||||
isPhotoOpen: true,
|
isPhotoOpen: false,
|
||||||
//扣分语音是否强制开启
|
//扣分语音是否强制开启
|
||||||
kfVoiceOpen: false,
|
kfVoiceOpen: false,
|
||||||
//忽略的考试项目
|
//忽略的考试项目
|
||||||
@ -16,7 +16,7 @@ export const judgeConfig = {
|
|||||||
// 本地模型地址
|
// 本地模型地址
|
||||||
modelPath: 'models/model_enc',
|
modelPath: 'models/model_enc',
|
||||||
// 济南科目三
|
// 济南科目三
|
||||||
trajectoryPath: 'logs/2024_08_29/2024_08_29_09_48_08_2230612098578_410311200501058031_闫嘉衡/judge_exam_data.txt',
|
trajectoryPath: 'logs/2024_08_07_13_33_17_9999945345838_614384489851629952_管婕/judge_exam_data.txt',
|
||||||
//四合一画面配置
|
//四合一画面配置
|
||||||
fourInOneScreen:{
|
fourInOneScreen:{
|
||||||
//gps位数
|
//gps位数
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user