From 32ea0f55f1ca3be0ef7a3b9e66048736b59015d9 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 26 Dec 2020 14:07:00 +0000 Subject: [PATCH] [QSO][Radio] Added Band RX to station which is populated based on CAT RX Freq If the radio interface supplies a freq RX then the javascript will populate RX Band. --- application/models/Logbook_model.php | 2 +- application/views/interface_assets/footer.php | 3 ++ application/views/qso/index.php | 39 +++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index e6df4a4a..ddebb53f 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -104,6 +104,7 @@ class Logbook_model extends CI_Model { 'COL_TIME_OFF' => $datetime, 'COL_CALL' => strtoupper(trim($this->input->post('callsign'))), 'COL_BAND' => $this->input->post('band'), + 'COL_BAND_RX' => $this->input->post('band_rx'), 'COL_FREQ' => $this->parse_frequency($this->input->post('freq_display')), 'COL_MODE' => $mode, 'COL_SUBMODE' => $submode, @@ -127,7 +128,6 @@ class Logbook_model extends CI_Model { 'COL_IOTA' => trim($this->input->post('iota_ref')), 'COL_DISTANCE' => "0", 'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')), - 'COL_BAND_RX' => null, 'COL_ANT_AZ' => null, 'COL_ANT_EL' => null, 'COL_A_INDEX' => null, diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 63f3b3bc..251db397 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -398,6 +398,7 @@ $(document).on('change', 'input', function(){ $("#mode").val(val2[0].Uplink_Mode); } $("#band").val(frequencyToBand(val2[0].Uplink_Freq)); + $("#band_rx").val(frequencyToBand(val2[0].Downlink_Freq)); $("#frequency").val(val2[0].Uplink_Freq); $("#frequency_rx").val(val2[0].Downlink_Freq); $("#selectPropagation").val('SAT'); @@ -1045,6 +1046,7 @@ $(document).on('change', 'input', function(){ if (data.downlink_freq != "") { $('#frequency_rx').val(data.downlink_freq); + $("#band_rx").val(frequencyToBand(data.downlink_freq)); } old_mode = $(".mode").val(); @@ -1091,6 +1093,7 @@ $(document).on('change', 'input', function(){ $("#sat_mode").val(""); $("#frequency").val(""); $("#frequency_rx").val(""); + $("#band_rx").val(""); $("#selectPropagation").val($("#selectPropagation option:first").val()); } diff --git a/application/views/qso/index.php b/application/views/qso/index.php index f6a9fb16..bbddbeeb 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -194,6 +194,45 @@ +
+ + + +
+