1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 04:45:20 +03:00
Hydra 2017-02-26 01:16:20 +00:00 committed by Michael Keller
parent 6fb4a089e5
commit b4936958f8
12 changed files with 115 additions and 98 deletions

View file

@ -35,7 +35,7 @@ var Features = function (config) {
);
}
if (semver.gte(config.apiVersion, "1.15.0")) {
if (semver.gte(CONFIG.apiVersion, "1.15.0")) {
features.push(
{bit: 8, group: 'rxFailsafe', name: 'FAILSAFE', haveTip: true}
);
@ -45,21 +45,21 @@ var Features = function (config) {
);
}
if (semver.gte(config.apiVersion, "1.16.0")) {
if (semver.gte(CONFIG.apiVersion, "1.16.0")) {
features.push(
{bit: 21, group: 'other', name: 'TRANSPONDER', haveTip: true}
);
}
if (config.flightControllerVersion !== '') {
if (semver.gte(config.flightControllerVersion, "2.8.0")) {
if (semver.gte(CONFIG.apiVersion, "1.16.0")) {
features.push(
{bit: 22, group: 'other', name: 'AIRMODE'}
);
}
if (semver.gte(config.flightControllerVersion, "2.8.0")) {
if (!semver.gte(config.flightControllerVersion, "3.0.0")) {
if (semver.gte(CONFIG.apiVersion, "1.16.0")) {
if (semver.lt(CONFIG.apiVersion, "1.20.0")) {
features.push(
{bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'}
);
@ -70,13 +70,13 @@ var Features = function (config) {
}
}
if (semver.gte(config.flightControllerVersion, "3.0.0")) {
if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
features.push(
{bit: 18, group: 'other', name: 'OSD'}
);
}
if (semver.gte(config.flightControllerVersion, "3.1.0")) {
if (semver.gte(CONFIG.apiVersion, "1.31.0")) {
features.push(
{bit: 27, group: 'other', name: 'ESC_SENSOR'}
)