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

Temperature sensors support (#670)

This commit is contained in:
Michel Pastor 2019-02-08 21:08:09 +01:00 committed by GitHub
parent 9870ace818
commit 0a720f44f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 371 additions and 13 deletions

View file

@ -1462,6 +1462,13 @@ var mspHelper = (function (gui) {
console.log("Blackbox config saved");
break;
case MSPCodes.MSP2_INAV_TEMPERATURES:
for (i = 0; i < 8; ++i) {
temp_decidegrees = data.getInt16(i * 2, true);
SENSOR_DATA.temperature[i] = temp_decidegrees / 10; // °C
}
break;
default:
console.log('Unknown code detected: ' + dataHandler.code);
} else {