Added feature for SDCard.

10.3.x-maintenance
Michael Keller 2017-02-23 14:37:51 +13:00
parent 1809723142
commit d503c79ebb
2 changed files with 13 additions and 4 deletions

View File

@ -550,6 +550,9 @@
"featureSUPEREXPO_RATES": {
"message": "Super Expo Rates"
},
"featureSDCARD": {
"message": "SDCard support (for logging)"
},
"featureOSD": {
"message": "On Screen Display"
},

View File

@ -53,10 +53,16 @@ var Features = function (config) {
);
}
if (semver.gte(config.flightControllerVersion, "2.8.0") && !semver.gte(config.flightControllerVersion, "3.0.0")) {
features.push(
{bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'}
);
if (semver.gte(config.flightControllerVersion, "2.8.0")) {
if (!semver.gte(config.flightControllerVersion, "3.0.0")) {
features.push(
{bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'}
);
} else {
features.push(
{bit: 23, group: 'other', name: 'SDCARD'}
);
}
}
if (semver.gte(config.flightControllerVersion, "3.0.0")) {