Skip to content

Commit

Permalink
Update IMU
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 17, 2024
1 parent 15a4040 commit 6ec8876
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/js/tabs/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,17 @@ setup.initialize = function (callback) {
'TF02',
];

// remove deprecated sensors
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
gyroElements.delete(L3G4200D);
gyroElements.delete(MPU3050);

accElements.delete(ADXL345);
accElements.delete(MMA8452);
accElements.delete(BMA280);
accElements.delete(LSM303DLHC);
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) {
MSP.send_message(MSPCodes.MSP2_SENSOR_CONFIG_ACTIVE, false, false, function() {
// Sensor info
Expand Down

0 comments on commit 6ec8876

Please sign in to comment.