From 20def918a53638cf2cf130bd3359bbb67efa095c Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Thu, 2 Jan 2025 15:46:29 +0100 Subject: [PATCH] Update IMU (remove legacy) (#802) Update IMU --- src/flightlog_fielddefs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flightlog_fielddefs.js b/src/flightlog_fielddefs.js index 0e1af5d4..b61bb9a3 100644 --- a/src/flightlog_fielddefs.js +++ b/src/flightlog_fielddefs.js @@ -545,6 +545,10 @@ export function adjustFieldDefsList(firmwareType, firmwareVersion) { // Flight mode names if (semver.gte(firmwareVersion, "4.6.0")) { FLIGHT_LOG_FLIGHT_MODE_NAME = FLIGHT_LOG_FLIGHT_MODE_NAME_POST_4_5.slice(0); + ACC_HARDWARE.splice(ACC_HARDWARE.indexOf("ADXL345"), 1); + ACC_HARDWARE.splice(ACC_HARDWARE.indexOf("MMA8452"), 1); + ACC_HARDWARE.splice(ACC_HARDWARE.indexOf("BMA280"), 1); + ACC_HARDWARE.splice(ACC_HARDWARE.indexOf("LSM303DLHC"), 1); } else { FLIGHT_LOG_FLIGHT_MODE_NAME = FLIGHT_LOG_FLIGHT_MODE_NAME_POST_3_3.slice(0); if (semver.lt(firmwareVersion, "3.4.0")) {