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:
parent
d7a771d850
commit
2ef9947dfd
3 changed files with 15 additions and 0 deletions
|
@ -566,6 +566,9 @@
|
|||
"featureOSD": {
|
||||
"message": "OSD"
|
||||
},
|
||||
"featureAIRMODE": {
|
||||
"message": "Permanently enable AIRMODE"
|
||||
},
|
||||
"configurationFeatureEnabled": {
|
||||
"message": "Enabled"
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
6
js/fc.js
6
js/fc.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue