adjusting MSP according to the latest bf changes
parent
14d125a4ad
commit
e5041c233e
|
@ -313,8 +313,10 @@ function process_data(code, message_buffer, message_length_expected) {
|
||||||
SENSOR_DATA.altitude = parseFloat((data.getInt32(0, 1) / 100.0).toFixed(2)); // correct scale factor
|
SENSOR_DATA.altitude = parseFloat((data.getInt32(0, 1) / 100.0).toFixed(2)); // correct scale factor
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_ANALOG:
|
case MSP_codes.MSP_ANALOG:
|
||||||
BATTERY.voltage = data.getUint8(0) / 10.0;
|
ANALOG.voltage = data.getUint8(0) / 10.0;
|
||||||
BATTERY.power = data.getUint16(1, 1);
|
ANALOG.power = data.getUint16(1, 1);
|
||||||
|
ANALOG.rssi = data.getUint16(3, 1);
|
||||||
|
ANALOG.amperage = data.getUint16(5, 1);
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_RC_TUNING:
|
case MSP_codes.MSP_RC_TUNING:
|
||||||
RC_tuning.RC_RATE = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
RC_tuning.RC_RATE = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
||||||
|
|
Loading…
Reference in New Issue