mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Arming status reporting
This commit is contained in:
parent
9db2fec934
commit
a5bc3e56ab
6 changed files with 145 additions and 25 deletions
|
@ -58,7 +58,7 @@ var mspHelper = (function (gui) {
|
|||
|
||||
/*
|
||||
* Update sensor status only for older firmwares
|
||||
* Newer firmwares use MSP_STATUS_EX instead
|
||||
* Newer firmwares use MSP_SENSOR_STATUS instead
|
||||
*/
|
||||
if (semver.lt(CONFIG.flightControllerVersion, "1.5.0")) {
|
||||
sensor_status(CONFIG.activeSensors);
|
||||
|
@ -73,6 +73,10 @@ var mspHelper = (function (gui) {
|
|||
CONFIG.profile = data.getUint8(10);
|
||||
CONFIG.cpuload = data.getUint16(11, 1);
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.5.0")) {
|
||||
CONFIG.armingFlags = data.getUint16(13, 2);
|
||||
}
|
||||
|
||||
if (semver.lt(CONFIG.flightControllerVersion, "1.5.0")) {
|
||||
sensor_status(CONFIG.activeSensors);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue