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:
parent
0214ba32a6
commit
1809bb8f92
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue