From 4bd6f4671073b46b60712032820695d7d12c0b85 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Fri, 23 Dec 2016 11:12:46 +0100 Subject: [PATCH] RSSI rework --- _locales/en/messages.json | 6 +++--- js/fc.js | 2 +- tabs/configuration.css | 7 +++++++ tabs/configuration.html | 42 +++++++-------------------------------- tabs/configuration.js | 4 ++-- 5 files changed, 20 insertions(+), 41 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b67bdbcc..aa45c655 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -555,6 +555,9 @@ "featurePWM_SERVO_DRIVERTip": { "message": "Use external PCA9685 PMW driver to connect up to 16 servos to flight controller. PCA9685 has to be connected to enable this feature." }, + "featureRSSI_ADCTip": { + "message": "RSSI is a measurement of signal strength and is very handy so you know when your aircraft is going out of range or if it is suffering RF interference." + }, "configurationFeatureEnabled": { "message": "Enabled" }, @@ -576,9 +579,6 @@ "configurationRSSI": { "message": "RSSI (Signal Strength)" }, - "configurationRSSIHelp": { - "message": "RSSI is a measurement of signal strength and is very handy so you know when your aircraft is going out of range or if it is suffering RF interference." - }, "configurationEscFeatures": { "message": "ESC/Motor Features" }, diff --git a/js/fc.js b/js/fc.js index 15b3ecfa..2b8553c6 100644 --- a/js/fc.js +++ b/js/fc.js @@ -344,7 +344,7 @@ var FC = { {bit: 12, group: 'other', name: '3D'}, {bit: 13, group: 'rxMode', mode: 'group', name: 'RX_PARALLEL_PWM'}, {bit: 14, group: 'rxMode', mode: 'group', name: 'RX_MSP'}, - {bit: 15, group: 'rssi', name: 'RSSI_ADC'}, + {bit: 15, group: 'other', name: 'RSSI_ADC', haveTip: true}, {bit: 16, group: 'other', name: 'LED_STRIP'}, {bit: 17, group: 'other', name: 'DISPLAY'}, {bit: 19, group: 'other', name: 'BLACKBOX', haveTip: true} diff --git a/tabs/configuration.css b/tabs/configuration.css index f13e32c6..5ba08ad3 100644 --- a/tabs/configuration.css +++ b/tabs/configuration.css @@ -241,6 +241,13 @@ hr float: left; } +.tab-configuration .gui_box h3 { + text-decoration: underline; + font-size: 1.07em; + color: #333; + margin-left: 2px; +} + .tab-configuration .rssi td { border-bottom: none; padding-bottom: 0; diff --git a/tabs/configuration.html b/tabs/configuration.html index fd462e46..2d0b5344 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -127,30 +127,20 @@ - - -
-
-
-
+

-
-
- -
-
-
-
-
@@ -227,6 +217,9 @@
+ + +
@@ -484,27 +477,6 @@
-
-
-
-
-
-
- - - - - - - - - - - -
-
-
-
diff --git a/tabs/configuration.js b/tabs/configuration.js index 4d2dac96..a748490e 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -222,7 +222,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { // generate serial RX var serialRxTypes = FC.getSerialRxTypes(); - var serialRX_e = $('select.serialRX'); + var serialRX_e = $('#serial-rx-protocol'); for (i = 0; i < serialRxTypes.length; i++) { serialRX_e.append(''); } @@ -242,7 +242,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { var nrf24ProtocolTypes = FC.getNrf24ProtocolTypes(); - var nrf24Protocol_e = $('select.nrf24Protocol'); + var nrf24Protocol_e = $('#nrf24-protocol'); for (i = 0; i < nrf24ProtocolTypes.length; i++) { nrf24Protocol_e.append(''); }