mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 01:35:23 +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>
|
<tr>
|
||||||
<td data-i18n="accGain"></td>
|
<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>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="accGainY"><span>Y</span></label><input type="number" name="accGainY" 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="accGainZ"><span>Z</span></label><input type="number" name="accGainZ" min="0" max="2000"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -154,4 +154,4 @@
|
||||||
<h1 class="modal__title modal__title--center" data-i18n="accCalibrationProcessing"></h1>
|
<h1 class="modal__title modal__title--center" data-i18n="accCalibrationProcessing"></h1>
|
||||||
<div id="modal-compass-countdown" class="modal__text"></div>
|
<div id="modal-compass-countdown" class="modal__text"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -112,7 +112,7 @@ TABS.calibration.initialize = function (callback) {
|
||||||
var pos = ['X', 'Y', 'Z'];
|
var pos = ['X', 'Y', 'Z'];
|
||||||
pos.forEach(function (item) {
|
pos.forEach(function (item) {
|
||||||
$('[name=accGain' + item + ']').val(CALIBRATION_DATA.accGain[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]);
|
$('[name=Mag' + item + ']').val(CALIBRATION_DATA.magZero[item]);
|
||||||
});
|
});
|
||||||
updateCalibrationSteps();
|
updateCalibrationSteps();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue