1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 21:05:28 +03:00

Allow negative current scales and allow an offset between 0 and 3.3V

This commit is contained in:
Marc Egli 2015-01-23 12:01:52 +01:00
parent b0743f6bae
commit 126beedf9c
2 changed files with 3 additions and 3 deletions

View file

@ -482,7 +482,7 @@ var MSP = {
BF_CONFIG.board_align_roll = data.getInt16(6, 1);
BF_CONFIG.board_align_pitch = data.getInt16(8, 1);
BF_CONFIG.board_align_yaw = data.getInt16(10, 1);
BF_CONFIG.currentscale = data.getUint16(12, 1);
BF_CONFIG.currentscale = data.getInt16(12, 1);
BF_CONFIG.currentoffset = data.getUint16(14, 1);
break;
case MSP_codes.MSP_SET_BF_CONFIG:

View file

@ -198,13 +198,13 @@
</table>
<div class="number">
<label>
<input type="number" name="currentscale" step="1" min="1" max="1000" />
<input type="number" name="currentscale" step="1" min="-1000" max="1000" />
<span i18n="configurationCurrentScale"></span>
</label>
</div>
<div class="number">
<label>
<input type="number" name="currentoffset" step="1" min="1" max="1000" />
<input type="number" name="currentoffset" step="1" min="0" max="3300" />
<span i18n="configurationCurrentOffset"></span>
</label>
</div>