1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +03:00

bugfixes & UI polish

This commit is contained in:
cTn 2013-04-15 11:13:24 +02:00
parent 05707da405
commit b040b01be8
6 changed files with 6 additions and 6 deletions

View file

@ -503,7 +503,7 @@ function process_message(code, data) {
SENSOR_DATA.kinematicsZ = view.getInt16(4, 1);
break;
case MSP_codes.MSP_ALTITUDE:
SENSOR_DATA.altitude = view.getUint32(0, 1) / 100.0; // correct scale factor
SENSOR_DATA.altitude = parseFloat((view.getInt32(0, 1) / 100.0).toFixed(2)); // correct scale factor
break;
case MSP_codes.MSP_BAT:
BATTERY.voltage = view.getUint8(0) / 10.0;