Fixed saving of angle and horizon parameters.

10.3.x-maintenance
mikeller 2017-01-22 00:50:55 +13:00
parent bd722ec210
commit 0e5adacfff
1 changed files with 3 additions and 3 deletions

View File

@ -319,15 +319,15 @@ TABS.pid_tuning.initialize = function (callback) {
}); });
i = 0; i = 0;
$('table.pid_tuning tr.ANGLE input').each(function () { $('div.pid_tuning tr.ANGLE input').each(function () {
PIDs[7][i++] = parseFloat($(this).val()); PIDs[7][i++] = parseFloat($(this).val());
}); });
$('table.pid_tuning tr.HORIZON input').each(function () { $('div.pid_tuning tr.HORIZON input').each(function () {
PIDs[7][i++] = parseFloat($(this).val()); PIDs[7][i++] = parseFloat($(this).val());
}); });
i = 0; i = 0;
$('table.pid_tuning tr.MAG input').each(function () { $('div.pid_tuning tr.MAG input').each(function () {
PIDs[8][i++] = parseFloat($(this).val()); PIDs[8][i++] = parseFloat($(this).val());
}); });