From 278d0750ff8dc7d224268fbc42ac0d8582d58b52 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sun, 10 Sep 2023 15:05:28 +0200 Subject: [PATCH] added functionality to ping, beacon, cq --- .../components/main_active_audio_level.vue | 8 +-- .../src/components/main_active_broadcasts.vue | 71 ++++++++++--------- .../components/main_active_rig_control.vue | 21 +++--- gui_vue/src/components/main_top_navbar.vue | 26 ++++++- gui_vue/src/js/sock.js | 44 ++++++------ gui_vue/src/store/stateStore.js | 2 +- 6 files changed, 98 insertions(+), 74 deletions(-) diff --git a/gui_vue/src/components/main_active_audio_level.vue b/gui_vue/src/components/main_active_audio_level.vue index 81ed2929..4e80f7dc 100644 --- a/gui_vue/src/components/main_active_audio_level.vue +++ b/gui_vue/src/components/main_active_audio_level.vue @@ -22,16 +22,16 @@ const state = useStateStore(pinia);
-
- Audio level +
+ Audio
-
+
diff --git a/gui_vue/src/components/main_active_broadcasts.vue b/gui_vue/src/components/main_active_broadcasts.vue index a2a53e71..7e015fa8 100644 --- a/gui_vue/src/components/main_active_broadcasts.vue +++ b/gui_vue/src/components/main_active_broadcasts.vue @@ -12,6 +12,35 @@ const settings = useSettingsStore(pinia); import { useStateStore } from '../store/stateStore.js'; const state = useStateStore(pinia); +import {sendCQ, sendPing, startBeacon, stopBeacon} from '../js/sock.js' + +function transmitCQ(){ + sendCQ() +} + +function transmitPing(){ + sendPing(document.getElementById("dxCall").value) +} + +function startStopBeacon(){ + + switch (state.beacon_state) { + case 'False': + startBeacon(settings.beacon_interval) + + break; + case 'True': + stopBeacon() + + break; + default: + + } + + +} + +