将星座图中载噪比为0的卫星颜色变为灰色
parent
c2a7c0ada4
commit
98180a4c68
|
@ -2,7 +2,7 @@
|
||||||
"name": "gnss-tool-kit",
|
"name": "gnss-tool-kit",
|
||||||
"description": "gnss-tool-kit",
|
"description": "gnss-tool-kit",
|
||||||
"author": "hwasmart",
|
"author": "hwasmart",
|
||||||
"version": "0.0.0",
|
"version": "2.0.0",
|
||||||
"main": "dist/main/app.js",
|
"main": "dist/main/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
@ -53,6 +53,7 @@ SerialPort.list().then((ports, err) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { path, baudRate } = getSerialPortConstructorArguments(ports)
|
const { path, baudRate } = getSerialPortConstructorArguments(ports)
|
||||||
|
console.log(path, baudRate, '=====================')
|
||||||
const serialPort = new SerialPort(path, { baudRate })
|
const serialPort = new SerialPort(path, { baudRate })
|
||||||
|
|
||||||
const parser = serialPort.pipe(new InterByteTimeout({interval: 30}))
|
const parser = serialPort.pipe(new InterByteTimeout({interval: 30}))
|
||||||
|
|
|
@ -82,7 +82,7 @@ const option = reactive({
|
||||||
formatter: '{@[2]}'
|
formatter: '{@[2]}'
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: props.color
|
color: ({ data } : any) => data[3] > 0 ? props.color : '#ccc'
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
nmea: 'in-positioning',
|
nmea: 'in-positioning',
|
||||||
|
@ -95,7 +95,7 @@ const option = reactive({
|
||||||
formatter: '{@[2]}'
|
formatter: '{@[2]}'
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: props.color
|
color: ({ data } : any) => data[3] > 0 ? props.color : '#ccc'
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
@ -113,11 +113,11 @@ const getPlanisphereOption = (GSVArr: Array<any>, GSAArr: Array<any>) => {
|
||||||
const in_positioning_id = get_in_positioning_id(GSAArr)
|
const in_positioning_id = get_in_positioning_id(GSAArr)
|
||||||
|
|
||||||
GSVArr.forEach(({ satellites }) => {
|
GSVArr.forEach(({ satellites }) => {
|
||||||
satellites.forEach(({ id, elevationDeg, azimuthTrue }) => {
|
satellites.forEach(({ id, elevationDeg, azimuthTrue, SNRdB }) => {
|
||||||
if (in_positioning_id.indexOf(parseInt(id)) < 0) {
|
if (in_positioning_id.indexOf(parseInt(id)) < 0) {
|
||||||
un_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id])
|
un_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id, SNRdB])
|
||||||
} else {
|
} else {
|
||||||
in_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id])
|
in_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id, SNRdB])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue