Merge pull request #375 from shellixyz/fix_acc_calibration_values

Fix calibration tab reported acc{zero,gain}_* values
pull/386/head 1.9.2
Konstantin Sharlaimov 7 years ago committed by GitHub
commit b01405139e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

@ -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…
Cancel
Save