1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Add support for ICM45605 and ICM45686 (#4432)

* Add support for ICM45686

* Add ICM45605
This commit is contained in:
Mark Haslinghuis 2025-05-26 12:00:59 +02:00 committed by GitHub
parent 0214ba32a6
commit 1809bb8f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
import semver from "semver";
import FC from "./fc";
import { API_VERSION_1_47 } from "./data_storage";
import { removeArrayElement, addArrayElement, addArrayElementAfter } from "./utils/array";
import { removeArrayElement, addArrayElement, addArrayElementsAfter } from "./utils/array";
export function sensorTypes() {
const sensorTypes = {
@ -111,13 +111,13 @@ export function sensorTypes() {
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
removeArrayElement(gyroElements, "L3G4200D");
removeArrayElement(gyroElements, "MPU3050");
addArrayElementAfter(gyroElements, "LSM6DSV16X", "IIM42653");
addArrayElementsAfter(gyroElements, "LSM6DSV16X", ["IIM42653", "ICM45605", "ICM45686"]);
removeArrayElement(accElements, "ADXL345");
removeArrayElement(accElements, "MMA8452");
removeArrayElement(accElements, "BMA280");
removeArrayElement(accElements, "LSM303DLHC");
addArrayElementAfter(accElements, "LSM6DSV16X", "IIM42653");
addArrayElementsAfter(accElements, "LSM6DSV16X", ["IIM42653", "ICM45605", "ICM45686"]);
addArrayElement(gpsElements, "VIRTUAL");
}