Skip to content

Commit b014051

Browse files
Merge pull request #375 from shellixyz/fix_acc_calibration_values
Fix calibration tab reported acc{zero,gain}_* values
2 parents 2dddb11 + 063b3ca commit b014051

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tabs/calibration.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<tr>
6565
<td data-i18n="accGain"></td>
6666
<td><label for="accGainX"><span>X</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
67-
<td><label for="accGainX"><span>Y</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
68-
<td><label for="accGainX"><span>Z</span></label><input type="number" name="accGainX" min="0" max="2000"></td>
67+
<td><label for="accGainY"><span>Y</span></label><input type="number" name="accGainY" min="0" max="2000"></td>
68+
<td><label for="accGainZ"><span>Z</span></label><input type="number" name="accGainZ" min="0" max="2000"></td>
6969
</tr>
7070
</table>
7171
</div>
@@ -154,4 +154,4 @@ <h1 class="modal__title modal__title--center" data-i18n="accCalibrationProcessin
154154
<h1 class="modal__title modal__title--center" data-i18n="accCalibrationProcessing"></h1>
155155
<div id="modal-compass-countdown" class="modal__text"></div>
156156
</div>
157-
</div>
157+
</div>

tabs/calibration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ TABS.calibration.initialize = function (callback) {
112112
var pos = ['X', 'Y', 'Z'];
113113
pos.forEach(function (item) {
114114
$('[name=accGain' + item + ']').val(CALIBRATION_DATA.accGain[item]);
115-
$('[name=accZero' + item + ']').val(CALIBRATION_DATA.accGain[item]);
115+
$('[name=accZero' + item + ']').val(CALIBRATION_DATA.accZero[item]);
116116
$('[name=Mag' + item + ']').val(CALIBRATION_DATA.magZero[item]);
117117
});
118118
updateCalibrationSteps();

0 commit comments

Comments
 (0)