PID Tab fix

10.3.x-maintenance
skaman82 2015-11-09 10:33:33 +01:00
parent e9b98a1a21
commit a5bef02067
2 changed files with 20 additions and 27 deletions

View File

@ -86,7 +86,7 @@
<table id="pid_baro" class="pid_tuning">
<tr>
<th colspan="4">
<div class="pid_mode">Barometer/Altitude</div>
<div class="pid_mode">Barometer & Sonar/Altitude</div>
</th>
</tr>
<tr class="ALT">
@ -96,6 +96,13 @@
<td><input type="number" name="i" step="0.001" min="0" max="0.255"/></td>
<td><input type="number" name="d" step="1" min="0" max="255"/></td>
</tr>
<tr class="Vario">
<!-- 9 -->
<td>VEL</td>
<td><input type="number" name="p" step="0.1" min="0" max="25.5"/></td>
<td><input type="number" name="i" step="0.001" min="0" max="0.255"/></td>
<td><input type="number" name="d" step="1" min="0" max="255"/></td>
</tr>
</table>
<table id="pid_mag" class="pid_tuning">
<tr>
@ -111,21 +118,7 @@
<td></td>
</tr>
</table>
<table id="pid_sonar" class="pid_tuning">
<tr>
<th colspan="4">
<div class="pid_mode">Sonar</div>
</th>
</tr>
<tr class="Vario">
<!-- 9 -->
<td></td>
<td><input type="number" name="p" step="0.1" min="0" max="25.5"/></td>
<td><input type="number" name="i" step="0.001" min="0" max="0.255"/></td>
<td><input type="number" name="d" step="1" min="0" max="255"/></td>
</tr>
</table>
<table id="pid_gps" class="pid_tuning">
<table id="pid_gps" class="pid_tuning">
<tr>
<th colspan="4">
<div class="pid_mode">GPS Navigation</div>

View File

@ -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);