mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Allow negative current scales and allow an offset between 0 and 3.3V
This commit is contained in:
parent
b0743f6bae
commit
126beedf9c
2 changed files with 3 additions and 3 deletions
|
@ -482,7 +482,7 @@ var MSP = {
|
||||||
BF_CONFIG.board_align_roll = data.getInt16(6, 1);
|
BF_CONFIG.board_align_roll = data.getInt16(6, 1);
|
||||||
BF_CONFIG.board_align_pitch = data.getInt16(8, 1);
|
BF_CONFIG.board_align_pitch = data.getInt16(8, 1);
|
||||||
BF_CONFIG.board_align_yaw = data.getInt16(10, 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);
|
BF_CONFIG.currentoffset = data.getUint16(14, 1);
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_SET_BF_CONFIG:
|
case MSP_codes.MSP_SET_BF_CONFIG:
|
||||||
|
|
|
@ -198,13 +198,13 @@
|
||||||
</table>
|
</table>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
<label>
|
<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>
|
<span i18n="configurationCurrentScale"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
<label>
|
<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>
|
<span i18n="configurationCurrentOffset"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue