1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00

Fix negative current sensor offset voltage values handling

This commit is contained in:
Michel Pastor 2018-03-18 16:40:23 +01:00
parent 57b4afe8f7
commit a7afedea92
2 changed files with 2 additions and 2 deletions

View file

@ -611,7 +611,7 @@ var mspHelper = (function (gui) {
BF_CONFIG.board_align_pitch = data.getInt16(8, true); // -180 - 360 BF_CONFIG.board_align_pitch = data.getInt16(8, true); // -180 - 360
BF_CONFIG.board_align_yaw = data.getInt16(10, true); // -180 - 360 BF_CONFIG.board_align_yaw = data.getInt16(10, true); // -180 - 360
BF_CONFIG.currentscale = data.getInt16(12, true); BF_CONFIG.currentscale = data.getInt16(12, true);
BF_CONFIG.currentoffset = data.getUint16(14, true); BF_CONFIG.currentoffset = data.getInt16(14, true);
break; break;
case MSPCodes.MSP_SET_BF_CONFIG: case MSPCodes.MSP_SET_BF_CONFIG:
console.log('BF_CONFIG saved'); console.log('BF_CONFIG saved');

View file

@ -418,7 +418,7 @@
</label> </label>
</div> </div>
<div class="number"> <div class="number">
<input type="number" id="currentoffset" name="currentoffset" step="1" min="0" max="3300" /> <input type="number" id="currentoffset" name="currentoffset" step="1" min="-3300" max="3300" />
<label for="currentoffset"> <label for="currentoffset">
<span data-i18n="configurationCurrentOffset"></span> <span data-i18n="configurationCurrentOffset"></span>
</label> </label>