mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 01:05:12 +03:00
Fix calibration tab reported acc{zero,gain}_* values (fixes #374)
This commit is contained in:
parent
2dddb11f8e
commit
063b3ca49d
2 changed files with 4 additions and 4 deletions
|
@ -64,8 +64,8 @@
|
|||
<tr>
|
||||
<td data-i18n="accGain"></td>
|
||||
<td><label for="accGainX"><span>X</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
|
||||
<td><label for="accGainX"><span>Y</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
|
||||
<td><label for="accGainX"><span>Z</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
|
||||
<td><label for="accGainY"><span>Y</span></label><input type="number" name="accGainY" min="0" max="2000"></td>
|
||||
<td><label for="accGainZ"><span>Z</span></label><input type="number" name="accGainZ" min="0" max="2000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -154,4 +154,4 @@
|
|||
<h1 class="modal__title modal__title--center" data-i18n="accCalibrationProcessing"></h1>
|
||||
<div id="modal-compass-countdown" class="modal__text"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -112,7 +112,7 @@ TABS.calibration.initialize = function (callback) {
|
|||
var pos = ['X', 'Y', 'Z'];
|
||||
pos.forEach(function (item) {
|
||||
$('[name=accGain' + item + ']').val(CALIBRATION_DATA.accGain[item]);
|
||||
$('[name=accZero' + item + ']').val(CALIBRATION_DATA.accGain[item]);
|
||||
$('[name=accZero' + item + ']').val(CALIBRATION_DATA.accZero[item]);
|
||||
$('[name=Mag' + item + ']').val(CALIBRATION_DATA.magZero[item]);
|
||||
});
|
||||
updateCalibrationSteps();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue