1
0
Fork 0
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:
cTn 2014-05-30 01:41:27 +02:00
parent d68bd29191
commit 46cf844e7e
4 changed files with 6 additions and 3 deletions

View file

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