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

Add support for FEATURE_AIRMODE in the Configuration tab

Setting the feature also hides the mode from the modes tab, since
the FC won't register the BOXID as an active one. FC support
detection is based on INAV version >= 1.7.3, since support for
the AIRMODE feature has been advertised by previous releases
but it's not really supported (it does nothing).

Support for INAV is at https://github.com/iNavFlight/inav/pull/1949

Fixes #154
This commit is contained in:
Alberto García Hierro 2017-08-21 00:20:42 +02:00
parent d7a771d850
commit 2ef9947dfd
3 changed files with 15 additions and 0 deletions

View file

@ -566,6 +566,9 @@
"featureOSD": {
"message": "OSD"
},
"featureAIRMODE": {
"message": "Permanently enable AIRMODE"
},
"configurationFeatureEnabled": {
"message": "Enabled"
},

View file

@ -11397,6 +11397,12 @@ var FC = {
);
}
if (semver.gte(CONFIG.flightControllerVersion, '1.7.3')) {
features.push(
{bit: 22, group: 'other', name: 'AIRMODE', haveTip: false, showNameInTip: false}
);
}
return features.reverse();
},
isFeatureEnabled: function (featureName, features) {

View file

@ -461,6 +461,12 @@ var FC = {
);
}
if (semver.gte(CONFIG.flightControllerVersion, '1.7.3')) {
features.push(
{bit: 22, group: 'other', name: 'AIRMODE', haveTip: false, showNameInTip: false}
);
}
return features.reverse();
},
isFeatureEnabled: function (featureName, features) {