1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Add IIM42653 IMU (#4302)

This commit is contained in:
Mark Haslinghuis 2025-01-14 22:26:32 +01:00 committed by GitHub
parent e984e8a1f7
commit aa09e59427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -365,15 +365,17 @@ setup.initialize = function (callback) {
const sonarElements = ["NONE", "HCSR04", "TFMINI", "TF02"];
// remove deprecated sensors
// remove deprecated sensors or add new ones
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
gyroElements.splice(gyroElements.indexOf("L3G4200D"), 1);
gyroElements.splice(gyroElements.indexOf("MPU3050"), 1);
gyroElements.splice(gyroElements.indexOf("LSM6DSV16X") + 1, 0, "IIM42653");
accElements.splice(accElements.indexOf("ADXL345"), 1);
accElements.splice(accElements.indexOf("MMA8452"), 1);
accElements.splice(accElements.indexOf("BMA280"), 1);
accElements.splice(accElements.indexOf("LSM303DLHC"), 1);
accElements.splice(accElements.indexOf("LSM6DSV16X") + 1, 0, "IIM42653");
}
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) {