From a5bef0206755863a5945042990b2fcbd3b0fc6dc Mon Sep 17 00:00:00 2001 From: skaman82 Date: Mon, 9 Nov 2015 10:33:33 +0100 Subject: [PATCH] PID Tab fix --- tabs/pid_tuning.html | 25 +++++++++---------------- tabs/pid_tuning.js | 22 +++++++++++----------- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index fc3663a3..9043cd11 100755 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -86,7 +86,7 @@ @@ -96,6 +96,13 @@ + + + + + + +
-
Barometer/Altitude
+
Barometer & Sonar/Altitude
VEL
@@ -111,21 +118,7 @@
- - - - - - - - - - - -
-
Sonar
-
- +
GPS Navigation
diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index f7e79b92..622d2bea 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -257,7 +257,7 @@ TABS.pid_tuning.initialize = function (callback) { $('#pid_gps').show(); } if (have_sensor(sensors_detected, 'sonar')) { - $('#pid_sonar').show(); + $('#pid_baro').show(); } } function process_html() { @@ -269,18 +269,18 @@ TABS.pid_tuning.initialize = function (callback) { documentationButton.html("Documentation for "+CONFIG.flightControllerVersion); documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion)); -// loading tooltip -$(document).ready(function() { -$('.cf_tip').jBox('Tooltip', { - delayOpen: 100, - delayClose: 100, - position: { + // loading tooltip + $(document).ready(function() { + $('.cf_tip').jBox('Tooltip', { + delayOpen: 100, + delayClose: 100, + position: { x: 'right', y: 'center' - }, - outside: 'x' -}); -}); + }, + outside: 'x' + }); + }); hideUnusedPids(CONFIG.activeSensors);