From 5c43bac42b72bec92b21b7e4604f7d3b77cb918f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Mar 2026 16:32:23 +0000 Subject: [PATCH] =?UTF-8?q?[feat](trx-rs):=20remap=20decoder=20modes=20?= =?UTF-8?q?=E2=80=94=20remove=20DIG/PKT=20from=20SDR,=20wire=20decoders=20?= =?UTF-8?q?to=20standard=20modes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For SDR backends, DIG and PKT are removed from supported_modes and replaced by USB and FM respectively. CAT backends (FT-817, FT-450D) retain DIG/PKT as before. Decoder mode allowances updated: - APRS: FM | PKT (was PKT only) - HF-APRS: USB | DIG (was DIG only) - AIS: AIS | FM | PKT (was AIS only) - VDES: VDES | FM (was VDES only) - FT8/FT4/FT2/WSPR: USB | DIG (unchanged) - CW: CW | CWR (unchanged) - LRPT: FM (unchanged, mode-independent) Frontend status text, bookmark decoder toggles, background-decode fallbacks, and scheduler wiring updated to match. https://claude.ai/code/session_01DCAaMH8RF5FNB2gRtVu4pY Signed-off-by: Claude --- .../trx-frontend-http/assets/web/app.js | 18 +++++++++--------- .../trx-frontend-http/assets/web/index.html | 11 +++++------ .../assets/web/plugins/aprs.js | 3 ++- .../assets/web/plugins/background-decode.js | 2 +- .../assets/web/plugins/bookmarks.js | 4 ++-- .../trx-frontend-http/src/background_decode.rs | 2 +- .../trx-frontend-http/src/scheduler.rs | 3 ++- .../trx-frontend-http/src/vchan.rs | 14 +++++++------- src/trx-server/src/audio.rs | 18 +++++++++--------- .../trx-backend-soapysdr/src/lib.rs | 5 ++--- .../trx-backend-soapysdr/src/vchan_impl.rs | 2 +- 11 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index b4af334..4674853 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -3241,22 +3241,22 @@ function render(update) { const wsprStatus = document.getElementById("wspr-status"); setModeBoundDecodeStatus( aisStatus, - ["AIS"], - "Select AIS mode to decode", + ["AIS", "FM", "PKT"], + "Select AIS or FM mode to decode", "Connected, listening for packets", ); if (window.updateAisBar) window.updateAisBar(); setModeBoundDecodeStatus( vdesStatus, - ["VDES"], - "Select VDES mode to decode", + ["VDES", "FM"], + "Select VDES or FM mode to decode", "Connected, listening for bursts", ); if (window.updateVdesBar) window.updateVdesBar(); setModeBoundDecodeStatus( aprsStatus, - ["PKT"], - "Select PKT mode to decode", + ["PKT", "FM"], + "Select FM mode to decode", "Connected, listening for packets", ); if (window.updateAprsBar) window.updateAprsBar(); @@ -8903,10 +8903,10 @@ function updateDecodeStatus(text) { const ft8 = document.getElementById("ft8-status"); const ft4 = document.getElementById("ft4-status"); const ft2 = document.getElementById("ft2-status"); - setModeBoundDecodeStatus(ais, ["AIS"], "Select AIS mode to decode", text); + setModeBoundDecodeStatus(ais, ["AIS", "FM", "PKT"], "Select AIS or FM mode to decode", text); const vdesText = text === "Connected, listening for packets" ? "Connected, listening for bursts" : text; - setModeBoundDecodeStatus(vdes, ["VDES"], "Select VDES mode to decode", vdesText); - setModeBoundDecodeStatus(aprs, ["PKT"], "Select PKT mode to decode", text); + setModeBoundDecodeStatus(vdes, ["VDES", "FM"], "Select VDES or FM mode to decode", vdesText); + setModeBoundDecodeStatus(aprs, ["PKT", "FM"], "Select FM mode to decode", text); const cwText = text === "Connected, listening for packets" ? "Connected, listening for CW" : text; setModeBoundDecodeStatus(cw, ["CW", "CWR"], "Select CW mode to decode", cwText); if (ft8 && ft8.textContent !== "Receiving") ft8.textContent = text; diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 7341c82..6648ad5 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -449,14 +449,13 @@