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:
parent
05707da405
commit
b040b01be8
6 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue