2025-10-13 16:14:41 +08:00

321 lines
6.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { AmplifyItem, DefaultJudgeConfigObj, KmItem, PerLane, PLCType } from '../model';
export const AmplifyArr: AmplifyItem[] = [
{ name: '直线', projectCode: '3', projectCodeCenter: '40300' },
{ name: '会车', projectCode: '9', projectCodeCenter: '41300' },
{ name: '变道', projectCode: '4', projectCodeCenter: '40500' },
{ name: '超车', projectCode: '10', projectCodeCenter: '41400' },
{ name: '掉头', projectCode: '12', projectCodeCenter: '41500' },
{ name: '停车', projectCode: '11', projectCodeCenter: '40600' },
]
export const AmplifyImages = [
'km_zxB.png',
'km_hcB.png',
'km_bdB.png',
'km_ccB.png',
'km_dtB.png',
'km_tcB.png',
]
export const InitialPerLane: PerLane = {
MapRoad_Code_No: "",
MapRoad_Name: "",
TouchLineType: 0,
TouchDir: 0,
TouchLineTypeCS: 0,
TouchLineDirCS: 0,
BasePointInLaneNo: 0,
BaseLaneCount: 0,
FrontPointLaneNo: 0,
FrontPointLaneCount: 0,
Body_LF_ToLeftEdge: 0,
Body_LB_ToLeftEdge: 0,
Body_RF_ToRightEdge: 0,
Body_RB_ToRightEdge: 0,
Wheel_RF_ToRightEdge: 0,
Wheel_RB_ToRightEdge: 0,
Wheel_RF_ToBaseLine: 0,
Wheel_LF_ToRightEdge: 0,
Wheel_LB_ToRightEdge: 0,
Wheel_LF_ToBaseLine: 0,
Wheel_LB_ToBaseLine: 0,
BasePointInLaneDir: "",
CrossLineAttr: 0,
InShapeAttr: 0,
ShapeNo: 0,
CrossPointNo: 0
};
export const TestRealExam: PLCType = {
sensor: {
aqd: 0,
mkg: 0,
ssc: 0,
jsc: 0,
fsc: 0,
lhq: 0,
lb: 0,
skd: 0,
jgd: 0,
ygd: 1,
zfxd: 0,
yfxd: 0,
shtd: 0,
wd: 0,
ygq: 0,
dh1: 1,
dh2: 0,
fdjzs: 2400,
dw: 0,
cs: 5.8,
fxp: -5,
ljmc: 23,
lcmc: 0,
csbzh: 0,
csbyh: 0,
csbyq: 0,
csbzq: 0,
csb1: 3000,
csb2: 0,
csb3: 0,
csb4: 0,
zy: 0,
tbp: 0,
hsj: 0,
dcj: 0,
gx: 123070,
yl: 0
},
gps: {
bklx: 2,
dwzt: 4,
jdzt: 3,
sj: 1680840026000,
jd: 113.12345678,
wd: 31.12345678,
hxj: 50.1234,
fyj: 1.1234,
hbg: 22.123,
gdc: 1.123,
sd: 10.9,
age: 1.2,
jdyz: 0.001,
wdyz: 0.001,
dwsxs: 17,
jdsxs: 14
},
gps2: {
bklx: 1,
dwzt: 4,
jdzt: 4,
sj: 1680840026000,
jd: 113.12345678,
wd: 31.12345678,
hxj: 50.1234,
fyj: 1.1234,
hbg: 22.123,
gdc: 1.123,
sd: 10.9,
age: 1.2,
jdyz: 0.001,
wdyz: 0.001,
dwsxs: 17,
jdsxs: 14
},
vision: {
sj: 1680840026000,
score: 0.85,
zyjd: 60.23,
sxjd: 65.33,
ytjd: 68.45,
fxp: 2,
ch: 0,
hld: 1
},
radar: {
sj: 1680840026000,
zxh: 999,
qfsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
hfsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
zqsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
zhsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
zcsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
yqsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
yhsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
ycsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
fqsj: [{
bh: 1,
lx: 1,
jl: 2.35,
sd: 3.68
}, {
bh: 2,
lx: 2,
jl: 4.82,
sd: 5.24
}],
qfwt: { xrjl: 2.357, zawjl: 3.608 },
rcyz: 1,
show: [{ bh: 1, zb: [{ x: 0, y: 1 }, { x: 0, y: 1 }, { x: 0, y: 1 }, { x: 0, y: 1 }] },
{ bh: 2, zb: [{ x: 0, y: 1 }, { x: 0, y: 1 }, { x: 0, y: 1 }, { x: 0, y: 1 }] }]
},
extend: {}
}
export const DefaultJudgeConfigData: DefaultJudgeConfigObj = {
//结束考试方式 0-不合格继续 1-考试不合格报靠边停车 2-不合格不报靠边 3-训练不合格报靠边 4-自动退出 5-不合格自动退出
param_302: '5',
param_332: '',
//是否能进行人工操作 0-不能人工评判 1-不能人工进项目 3-都不能
param_342: '',
//有项目未结束时可以靠边停车 0-否 1-是
param_343: '1',
//考试未结束且有扣分,是否可以退出
param_344: '0',
//直线行驶中是否可以进其它项目 0-否 1-是
param_348: '0',
//车上是否能点结束考试 0:否 1:是
param_353: '0',
//是否启动断电续考 0:否 1:是
param_369: '1',
//是否显示应考里程
param_375: '0',
//里程不够允许手工点靠边停车
param_387: '0',
//监管模式有扣分续考0-否++1-是+把上次未考完的扣分带下来重新考试)
param_432: '1',
// Todo
param_634: '1'
}
//所有的科二 科目三项目
export const testKm2Items: KmItem[] = [
{ code: '20100', status: 0 },
{ code: '20200', status: 0 },
{ code: '20300', status: 0 },
{ code: '20400', status: 0 },
{ code: '20500', status: 0 },
{ code: '20600', status: 0 },
{ code: '20700', status: 0 },
{ code: '20800', status: 0 },
{ code: '20900', status: 0 },
{ code: '21000', status: 0 },
{ code: '21100', status: 0 },
{ code: '21200', status: 0 },
{ code: '21300', status: 0 },
{ code: '21400', status: 0 },
{ code: '21500', status: 0 },
{ code: '21600', status: 0 },
{ code: '21700', status: 0 },
{ code: '21800', status: 0 },
]
export const testKm3Items: KmItem[] = [
{ code: '40100', status: 0 },
{ code: '40200', status: 0 },
{ code: '40300', status: 0 },
{ code: '40400', status: 0 },
{ code: '40500', status: 0 },
{ code: '40600', status: 0 },
{ code: '40700', status: 0 },
{ code: '40800', status: 0 },
{ code: '40900', status: 0 },
{ code: '41000', status: 0 },
{ code: '41100', status: 0 },
{ code: '41200', status: 0 },
{ code: '41300', status: 0 },
{ code: '41400', status: 0 },
{ code: '41500', status: 0 },
{ code: '41700', status: 0 },
{ code: '41600', status: 0 },
]