Skip to content

Commit

Permalink
Merge pull request #401 from mikeller/fixed_angle_horizon_value_saving
Browse files Browse the repository at this point in the history
Fixed saving of angle and horizon parameters.
  • Loading branch information
mikeller authored Jan 21, 2017
2 parents 0748041 + 0e5adac commit 4069ccb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tabs/pid_tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ TABS.pid_tuning.initialize = function (callback) {
});

i = 0;
$('table.pid_tuning tr.ANGLE input').each(function () {
$('div.pid_tuning tr.ANGLE input').each(function () {
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());
});

i = 0;
$('table.pid_tuning tr.MAG input').each(function () {
$('div.pid_tuning tr.MAG input').each(function () {
PIDs[8][i++] = parseFloat($(this).val());
});

Expand Down

0 comments on commit 4069ccb

Please sign in to comment.