diff --git a/package.json b/package.json index 3f622f2..65fb37e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "gnss-tool-kit", "description": "gnss-tool-kit", "author": "hwasmart", - "version": "0.0.0", + "version": "2.0.0", "main": "dist/main/app.js", "scripts": { "dev": "vite", diff --git a/src/main/load-serialport.js b/src/main/load-serialport.js index a86c379..172170f 100644 --- a/src/main/load-serialport.js +++ b/src/main/load-serialport.js @@ -53,6 +53,7 @@ SerialPort.list().then((ports, err) => { try { const { path, baudRate } = getSerialPortConstructorArguments(ports) + console.log(path, baudRate, '=====================') const serialPort = new SerialPort(path, { baudRate }) const parser = serialPort.pipe(new InterByteTimeout({interval: 30})) diff --git a/src/render/components/PlanisphereView.vue b/src/render/components/PlanisphereView.vue index 80d5a76..0ee2098 100644 --- a/src/render/components/PlanisphereView.vue +++ b/src/render/components/PlanisphereView.vue @@ -82,7 +82,7 @@ const option = reactive({ formatter: '{@[2]}' }, itemStyle: { - color: props.color + color: ({ data } : any) => data[3] > 0 ? props.color : '#ccc' }, }, { nmea: 'in-positioning', @@ -95,7 +95,7 @@ const option = reactive({ formatter: '{@[2]}' }, itemStyle: { - color: props.color + color: ({ data } : any) => data[3] > 0 ? props.color : '#ccc' }, }] }) @@ -113,11 +113,11 @@ const getPlanisphereOption = (GSVArr: Array, GSAArr: Array) => { const in_positioning_id = get_in_positioning_id(GSAArr) GSVArr.forEach(({ satellites }) => { - satellites.forEach(({ id, elevationDeg, azimuthTrue }) => { + satellites.forEach(({ id, elevationDeg, azimuthTrue, SNRdB }) => { 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 { - in_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id]) + in_positioning_data.push([parseInt(elevationDeg) * -1, azimuthTrue, id, SNRdB]) } }); });