mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
display current draw in A not mA
This commit is contained in:
parent
d68bd29191
commit
46cf844e7e
4 changed files with 6 additions and 3 deletions
|
@ -241,7 +241,7 @@ MSP.process_data = function(code, message_buffer, message_length) {
|
|||
ANALOG.voltage = data.getUint8(0) / 10.0;
|
||||
ANALOG.mAhdrawn = data.getUint16(1, 1);
|
||||
ANALOG.rssi = data.getUint16(3, 1); // 0-1023
|
||||
ANALOG.amperage = data.getUint16(5, 1) * 1000; // convert from A to mA
|
||||
ANALOG.amperage = data.getUint16(5, 1) / 100; // A
|
||||
break;
|
||||
case MSP_codes.MSP_RC_TUNING:
|
||||
RC_tuning.RC_RATE = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue