mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
CF/BF - fix some usages of flightControllerVersion which should have
used MSP API version. FYI: 3.1.0 = api 1.31 - https://github.com/betaflight/betaflight/blob/v3.1.6/src/main/msp/msp_protocol.h 3.0.1 = api 1.21 - https://github.com/betaflight/betaflight/blob/v3.0.1/src/main/io/msp_protocol.h 3.0.0 = api 1.20 - https://github.com/betaflight/betaflight/blob/v3.0.0/src/main/io/msp_protocol.h 2.9.1 = api 1.16 - https://github.com/betaflight/betaflight/blob/v2.9.1/src/main/io/serial_msp.h 2.8.0 = api 1.16 - https://github.com/betaflight/betaflight/blob/v.2.8.0/src/main/io/serial_msp.h 2.4.0 = api 1.16 - https://github.com/betaflight/betaflight/blob/v2.4.0/src/main/io/serial_msp.h
This commit is contained in:
parent
6fb4a089e5
commit
b4936958f8
12 changed files with 115 additions and 98 deletions
|
@ -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'}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue