1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Merge pull request #401 from mikeller/fixed_angle_horizon_value_saving

Fixed saving of angle and horizon parameters.
This commit is contained in:
Michael Keller 2017-01-22 00:54:02 +13:00 committed by GitHub
commit 4069ccb702

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());
}); });