mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-27 02:05:21 +03:00
Update sonar elements (#4305)
This commit is contained in:
parent
b4a9fabe31
commit
072858b400
1 changed files with 10 additions and 2 deletions
|
@ -369,8 +369,16 @@ setup.initialize = function (callback) {
|
||||||
"VIRTUAL",
|
"VIRTUAL",
|
||||||
];
|
];
|
||||||
|
|
||||||
const sonarElements = ["NONE", "HCSR04", "TFMINI", "TF02"];
|
const sonarElements = [
|
||||||
|
"NONE",
|
||||||
|
"HCSR04",
|
||||||
|
"TFMINI",
|
||||||
|
"TF02",
|
||||||
|
"MTF01",
|
||||||
|
"MTF02",
|
||||||
|
"MTF01P",
|
||||||
|
"MTF02P",
|
||||||
|
];
|
||||||
// remove deprecated sensors or add new ones
|
// remove deprecated sensors or add new ones
|
||||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
|
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
|
||||||
gyroElements.splice(gyroElements.indexOf("L3G4200D"), 1);
|
gyroElements.splice(gyroElements.indexOf("L3G4200D"), 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue