From 6f0bdba5f481da204e55ebb18efcf930b37c9d99 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 22 May 2022 04:56:43 +0200 Subject: [PATCH] Move telemetry to receiver tab --- locales/en/messages.json | 6 ++++++ src/css/tabs/receiver.css | 17 +++++------------ src/js/Features.js | 2 +- src/js/tabs/receiver.js | 2 +- src/tabs/receiver.html | 30 ++++++++++++++++++------------ 5 files changed, 31 insertions(+), 26 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 582693f4..11c8f855 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1212,6 +1212,12 @@ "configurationReceiverMode": { "message": "Receiver Mode" }, + "configurationTelemetry": { + "message": "Telemetry" + }, + "configurationTelemetryHelp": { + "message": "Telemetry output from receiver" + }, "configurationRSSI": { "message": "RSSI (Signal Strength)" }, diff --git a/src/css/tabs/receiver.css b/src/css/tabs/receiver.css index a1a9ca89..c3985746 100644 --- a/src/css/tabs/receiver.css +++ b/src/css/tabs/receiver.css @@ -667,27 +667,23 @@ margin-bottom: 0; } -.tab-receiver .rssi thead { - display: none; -} - .tab-receiver .gui_box { margin-bottom: 10px; float: left; font-weight: bold; } -.tab-receiver .rssi td { +.tab-receiver .feature td { border-bottom: none; padding-bottom: 0; margin-bottom: 0; } -.tab-receiver .rssi .gui_box { +.tab-receiver .feature .gui_box { float: left; } -.tab-receiver .rssi td:nth-child(2) { +.tab-receiver .feature td:nth-child(2) { width: 20px; } @@ -707,16 +703,13 @@ .tab-receiver .gui_box span { line-height: 17px; } - .tab-receiver .rssi .gui_box { - float: left; - } } @media all and (max-width: 575px) { - .tab-receiver .rssi .gui_box { + .tab-receiver .feature .gui_box { min-height: auto; } - .tab-receiver .rssi td:nth-child(2) { + .tab-receiver .feature td:nth-child(2) { width: auto; } .tab-receiver .features.rxMode, .tab-receiver .serialRX { diff --git a/src/js/Features.js b/src/js/Features.js index fc674028..dba4866e 100644 --- a/src/js/Features.js +++ b/src/js/Features.js @@ -12,7 +12,7 @@ const Features = function (config) { {bit: 6, group: 'other', name: 'SOFTSERIAL', haveTip: true}, {bit: 7, group: 'gps', name: 'GPS', haveTip: true}, {bit: 9, group: 'other', name: 'SONAR'}, - {bit: 10, group: 'other', name: 'TELEMETRY'}, + {bit: 10, group: 'telemetry', name: 'TELEMETRY'}, {bit: 12, group: '3D', name: '3D'}, {bit: 13, group: 'rxMode', mode: 'select', name: 'RX_PARALLEL_PWM'}, {bit: 14, group: 'rxMode', mode: 'select', name: 'RX_MSP'}, diff --git a/src/js/tabs/receiver.js b/src/js/tabs/receiver.js index 8c817af0..1eceb442 100644 --- a/src/js/tabs/receiver.js +++ b/src/js/tabs/receiver.js @@ -360,7 +360,7 @@ TABS.receiver.initialize = function (callback) { FC.FEATURE_CONFIG.features.updateData(element); updateTabList(FC.FEATURE_CONFIG.features); - if (element.attr('name') === "RSSI_ADC") { + if (element.attr('name') === "RSSI_ADC" || element.attr('name') === "TELEMETRY") { updateSaveButton(true); } }); diff --git a/src/tabs/receiver.html b/src/tabs/receiver.html index 86ac8087..ad46f647 100644 --- a/src/tabs/receiver.html +++ b/src/tabs/receiver.html @@ -62,8 +62,23 @@ - -
+
+
+
+
+
+
+
+ + + + +
+
+
+
+ +
@@ -71,23 +86,14 @@
- - - - - - - - +
- -