From 7a381bf46df87611b77aaa5349b5baea6475b100 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Wed, 11 Oct 2023 20:26:44 +0200 Subject: [PATCH] first attempt requesting buffer data from tnc --- gui_vue/src/assets/waterfall/spectrum.js | 2 +- gui_vue/src/components/chat_navbar.vue | 35 ++++-- gui_vue/src/js/chatHandler.js | 86 ++++++++++++--- gui_vue/src/js/sock.js | 38 +------ gui_vue/src/js/waterfallHandler.js | 12 ++- tnc/data_handler.py | 62 ++++++++--- tnc/sock.py | 129 +++++++++++++++-------- 7 files changed, 244 insertions(+), 120 deletions(-) diff --git a/gui_vue/src/assets/waterfall/spectrum.js b/gui_vue/src/assets/waterfall/spectrum.js index aad24e74..df217091 100644 --- a/gui_vue/src/assets/waterfall/spectrum.js +++ b/gui_vue/src/assets/waterfall/spectrum.js @@ -469,7 +469,7 @@ export function Spectrum(id, options) { // Colors this.colorindex = 0; - this.colormap = colormaps[2]; + this.colormap = colormaps[1]; // Create main canvas and adjust dimensions to match actual this.canvas = document.getElementById(id); diff --git a/gui_vue/src/components/chat_navbar.vue b/gui_vue/src/components/chat_navbar.vue index 3583c0b7..1d1abcd4 100644 --- a/gui_vue/src/components/chat_navbar.vue +++ b/gui_vue/src/components/chat_navbar.vue @@ -16,6 +16,10 @@ const state = useStateStore(pinia); import { useChatStore } from "../store/chatStore.js"; const chat = useChatStore(pinia); +import {getRxBuffer} from '../js/sock.js' + + + import { Chart as ChartJS, CategoryScale, @@ -133,6 +137,15 @@ function newChat(obj) { callsign = callsign.toUpperCase(); chat.callsign_list.add(callsign); } + + +function syncWithTNC(){ + +getRxBuffer() +} + + +