mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
speed chart adjustment
This commit is contained in:
parent
4f9cfbcf27
commit
8978f218fd
2 changed files with 7 additions and 6 deletions
|
@ -1694,9 +1694,9 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
var speedDataSnr = [];
|
var speedDataSnr = [];
|
||||||
for (var i = 0; i < speed_listSize; i++) {
|
for (var i = 0; i < speed_listSize; i++) {
|
||||||
let snr = NaN;
|
let snr = NaN;
|
||||||
if (arg.speed_list[i].snr !== 0) {
|
if(arg.speed_list[i].snr !== 0){
|
||||||
snr = arg.speed_list[i].snr;
|
snr = arg.speed_list[i].snr;
|
||||||
}
|
}
|
||||||
speedDataSnr.push(arg.speed_list[i].snr);
|
speedDataSnr.push(arg.speed_list[i].snr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1718,6 +1718,7 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
label: "SNR[dB]",
|
label: "SNR[dB]",
|
||||||
data: speedDataSnr,
|
data: speedDataSnr,
|
||||||
borderColor: "rgb(75, 192, 192, 1.0)",
|
borderColor: "rgb(75, 192, 192, 1.0)",
|
||||||
|
pointRadius: 1,
|
||||||
segment: {
|
segment: {
|
||||||
borderColor: (ctx) =>
|
borderColor: (ctx) =>
|
||||||
skipped(ctx, "rgb(0,0,0,0.2)") || down(ctx, "rgb(192,75,75)"),
|
skipped(ctx, "rgb(0,0,0,0.2)") || down(ctx, "rgb(192,75,75)"),
|
||||||
|
@ -1748,12 +1749,12 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
scales: {
|
scales: {
|
||||||
SNR: {
|
SNR: {
|
||||||
type: "linear",
|
type: "linear",
|
||||||
ticks: { beginAtZero: true, color: "rgb(255, 99, 132)" },
|
ticks: { beginAtZero: false, color: "rgb(255, 99, 132)" },
|
||||||
position: "right",
|
position: "right",
|
||||||
},
|
},
|
||||||
SPEED: {
|
SPEED: {
|
||||||
type: "linear",
|
type: "linear",
|
||||||
ticks: { beginAtZero: true, color: "rgb(120, 100, 120)" },
|
ticks: { beginAtZero: false, color: "rgb(120, 100, 120)" },
|
||||||
position: "left",
|
position: "left",
|
||||||
grid: {
|
grid: {
|
||||||
drawOnChartArea: false, // only want the grid lines for one axis to show up
|
drawOnChartArea: false, // only want the grid lines for one axis to show up
|
||||||
|
|
|
@ -385,7 +385,7 @@ if __name__ == "__main__":
|
||||||
log.error("[DMN] logger init error", exception=err)
|
log.error("[DMN] logger init error", exception=err)
|
||||||
|
|
||||||
log.info(
|
log.info(
|
||||||
"[TNC] Starting FreeDATA", author="DJ2LS", year="2022", version=static.VERSION
|
"[TNC] Starting FreeDATA", author="DJ2LS", version=static.VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
# start data handler
|
# start data handler
|
||||||
|
|
Loading…
Reference in a new issue