1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

support for mag_declination and UI polish

This commit is contained in:
cTn 2014-01-15 12:34:23 +01:00
parent 8c98bff682
commit edbf03aa3f
4 changed files with 70 additions and 25 deletions

View file

@ -350,7 +350,7 @@ function process_data(command, message_buffer, message_length_expected) {
MISC.failsafe_throttle = data.getUint16(8, 1); // 1000-2000
MISC.plog0 = data.getUint16(10, 1);
MISC.plog1 = data.getUint32(12, 1);
MISC.mag_declination = data.getInt16(16, 1);
MISC.mag_declination = data.getInt16(16, 1); // -18000-18000
MISC.vbatscale = data.getUint8(18, 1); // 10-200
MISC.vbatmincellvoltage = data.getUint8(19, 1) / 10; // 10-50
MISC.vbatmaxcellvoltage = data.getUint8(20, 1) / 10; // 10-50