Skip to content

Commit 22bae0b

Browse files
authored
Hide MAG and LEVEL PIDF values (#3664)
* Remove PIDS_ACTIVE * Add todo * Only remove optional elements
1 parent 7bf176c commit 22bae0b

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/js/tabs/pid_tuning.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,27 +1290,8 @@ pid_tuning.initialize = function (callback) {
12901290
$('.acroTrainerAngleLimit').hide();
12911291
}
12921292

1293-
const hideSensorPid = function(element, sensorReady) {
1294-
let isVisible = element.is(":visible");
1295-
if (!isVisible || !sensorReady) {
1296-
element.hide();
1297-
isVisible = false;
1298-
}
1299-
1300-
return isVisible;
1301-
};
1302-
1303-
let isVisibleBaroMagGps = false;
1304-
1305-
isVisibleBaroMagGps |= hideSensorPid($('#pid_baro'), have_sensor(FC.CONFIG.activeSensors, 'baro') || have_sensor(FC.CONFIG.activeSensors, 'sonar'));
1306-
1307-
isVisibleBaroMagGps |= hideSensorPid($('#pid_mag'), have_sensor(FC.CONFIG.activeSensors, 'mag'));
1308-
1309-
isVisibleBaroMagGps |= hideSensorPid($('#pid_gps'), have_sensor(FC.CONFIG.activeSensors, 'GPS'));
1310-
1311-
if (!isVisibleBaroMagGps) {
1312-
$('#pid_baro_mag_gps').hide();
1313-
}
1293+
// Hide all optional elements
1294+
$('#pid_baro_mag_gps').hide();
13141295
}
13151296

13161297
function drawAxes(curveContext, width, height) {

0 commit comments

Comments
 (0)