mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Add Super Expo feature
This commit is contained in:
parent
87795f3623
commit
2caeda1597
2 changed files with 9 additions and 0 deletions
|
@ -526,6 +526,9 @@
|
||||||
"featureTRANSPONDERTip": {
|
"featureTRANSPONDERTip": {
|
||||||
"message": "Configure via the Race Transponder tab after enabling."
|
"message": "Configure via the Race Transponder tab after enabling."
|
||||||
},
|
},
|
||||||
|
"featureSUPEREXPO_RATES": {
|
||||||
|
"message": "Rate value adds instead of rate also Super Expo. Mid stick stays same. Rc rate is always liniear"
|
||||||
|
},
|
||||||
|
|
||||||
"configurationFeatureEnabled": {
|
"configurationFeatureEnabled": {
|
||||||
"message": "Enabled"
|
"message": "Enabled"
|
||||||
|
|
|
@ -157,6 +157,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.0")) {
|
||||||
|
features.push(
|
||||||
|
{bit: 23, group: 'other', name: 'SUPEREXPO_RATES'}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function isFeatureEnabled(featureName) {
|
function isFeatureEnabled(featureName) {
|
||||||
for (var i = 0; i < features.length; i++) {
|
for (var i = 0; i < features.length; i++) {
|
||||||
if (features[i].name == featureName && bit_check(BF_CONFIG.features, features[i].bit)) {
|
if (features[i].name == featureName && bit_check(BF_CONFIG.features, features[i].bit)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue