From 909c6afb461e15bef452d32a3b9852d71916e749 Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 01:57:46 -0500 Subject: [PATCH 01/10] Add support for ICM42688P IMU in target.h --- src/main/target/OMNIBUSF4/target.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/target/OMNIBUSF4/target.h b/src/main/target/OMNIBUSF4/target.h index fcd89fb0e46..91671226216 100644 --- a/src/main/target/OMNIBUSF4/target.h +++ b/src/main/target/OMNIBUSF4/target.h @@ -74,6 +74,12 @@ #define IMU_ICM42605_ALIGN CW180_DEG #define ICM42605_CS_PIN PA4 #define ICM42605_SPI_BUS BUS_SPI1 + + // Soporte para ICM42688P (tu placa) + #define USE_IMU_ICM42688P + #define IMU_ICM42688P_ALIGN CW180_DEG + #define ICM42688P_CS_PIN PA4 + #define ICM42688P_SPI_BUS BUS_SPI1 #endif #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) From fa946e8cf5c390235982163c2c42886e30d1a8b4 Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 01:59:04 -0500 Subject: [PATCH 02/10] Update target.h From 9366ab51448987f99f7f3490205eb4cc652b3f8b Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 02:08:23 -0500 Subject: [PATCH 03/10] Remove CURRENT_METER_SCALE definition for OMNIBUSF4 fulllll From 229efcc7d009b74bbc917629bfc99260851e55be Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 02:14:25 -0500 Subject: [PATCH 04/10] Add new file 'm' with a single line --- m | 1 + 1 file changed, 1 insertion(+) create mode 100644 m diff --git a/m b/m new file mode 100644 index 00000000000..53e9fe3b487 --- /dev/null +++ b/m @@ -0,0 +1 @@ +m m From 37c591f218ed16b6cea9bad45066855d896e6f5c Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 02:23:54 -0500 Subject: [PATCH 05/10] Add ICM42688P support to OMNIBUSF4 target --- src/main/target/OMNIBUSF4/target.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/target/OMNIBUSF4/target.h b/src/main/target/OMNIBUSF4/target.h index 91671226216..10f76888ade 100644 --- a/src/main/target/OMNIBUSF4/target.h +++ b/src/main/target/OMNIBUSF4/target.h @@ -77,9 +77,9 @@ // Soporte para ICM42688P (tu placa) #define USE_IMU_ICM42688P - #define IMU_ICM42688P_ALIGN CW180_DEG - #define ICM42688P_CS_PIN PA4 - #define ICM42688P_SPI_BUS BUS_SPI1 +#define IMU_ICM42688P_ALIGN CW180_DEG +#define ICM42688P_CS_PIN PA4 +#define ICM42688P_SPI_BUS BUS_SPI1 #endif #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) From 2fde7bb9db76724036f3059f4e30538492b78e76 Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Tue, 17 Feb 2026 20:36:38 -0500 Subject: [PATCH 06/10] Remove ICM42605 IMU support from target.h --- src/main/target/OMNIBUSF4/target.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/target/OMNIBUSF4/target.h b/src/main/target/OMNIBUSF4/target.h index 10f76888ade..16b72776a22 100644 --- a/src/main/target/OMNIBUSF4/target.h +++ b/src/main/target/OMNIBUSF4/target.h @@ -70,10 +70,6 @@ #define MPU6000_SPI_BUS BUS_SPI1 #if defined(OMNIBUSF4V3_ICM) - #define USE_IMU_ICM42605 - #define IMU_ICM42605_ALIGN CW180_DEG - #define ICM42605_CS_PIN PA4 - #define ICM42605_SPI_BUS BUS_SPI1 // Soporte para ICM42688P (tu placa) #define USE_IMU_ICM42688P From b6519d6940207fbc444747d647940870b0663fda Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Wed, 18 Feb 2026 00:42:18 -0500 Subject: [PATCH 07/10] Update target.h for ICM42688P configuration --- src/main/target/OMNIBUSF4/target.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/target/OMNIBUSF4/target.h b/src/main/target/OMNIBUSF4/target.h index 16b72776a22..84ae6244dbc 100644 --- a/src/main/target/OMNIBUSF4/target.h +++ b/src/main/target/OMNIBUSF4/target.h @@ -69,15 +69,21 @@ #define MPU6000_CS_PIN PA4 #define MPU6000_SPI_BUS BUS_SPI1 + + #if defined(OMNIBUSF4V3_ICM) + // Driver base para ICM42605 (necesario para compilar el driver) + #define USE_IMU_ICM42605 // Soporte para ICM42688P (tu placa) #define USE_IMU_ICM42688P -#define IMU_ICM42688P_ALIGN CW180_DEG -#define ICM42688P_CS_PIN PA4 -#define ICM42688P_SPI_BUS BUS_SPI1 + #define IMU_ICM42688P_ALIGN CW180_DEG + #define ICM42688P_CS_PIN PA4 + #define ICM42688P_SPI_BUS BUS_SPI1 #endif + + #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) #define USE_IMU_MPU6000 #define IMU_MPU6000_ALIGN CW270_DEG From 2e3429cfec762fd314d90c0b0669fcf643cbf4de Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Wed, 18 Feb 2026 01:21:34 -0500 Subject: [PATCH 08/10] Update target.h for ICM42688P configuration --- src/main/target/OMNIBUSF4V3_ICM/target.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/main/target/OMNIBUSF4V3_ICM/target.h diff --git a/src/main/target/OMNIBUSF4V3_ICM/target.h b/src/main/target/OMNIBUSF4V3_ICM/target.h new file mode 100644 index 00000000000..526195c5188 --- /dev/null +++ b/src/main/target/OMNIBUSF4V3_ICM/target.h @@ -0,0 +1,4 @@ +#pragma once + +#define OMNIBUSF4V3 +#include "target/OMNIBUSF4V3/target.h" From 51efc29d16f034184ca50b095d2ceb6acf534b52 Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Wed, 18 Feb 2026 01:22:31 -0500 Subject: [PATCH 09/10] Add CMakeLists for OMNIBUSF4V3_ICM --- src/main/target/OMNIBUSF4V3_ICM/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/main/target/OMNIBUSF4V3_ICM/CMakeLists.txt diff --git a/src/main/target/OMNIBUSF4V3_ICM/CMakeLists.txt b/src/main/target/OMNIBUSF4V3_ICM/CMakeLists.txt new file mode 100644 index 00000000000..4e9f032c400 --- /dev/null +++ b/src/main/target/OMNIBUSF4V3_ICM/CMakeLists.txt @@ -0,0 +1 @@ +target_stm32f405xg(OMNIBUSF4V3_ICM HSE_MHZ 8 SKIP_RELEASES) From 0119bd514b34d2aa8b435a4a90effbb9e89ffe34 Mon Sep 17 00:00:00 2001 From: danilo19992 <134977467+danilo19992@users.noreply.github.com> Date: Wed, 18 Feb 2026 01:32:43 -0500 Subject: [PATCH 10/10] Update target.h for ICM42688P configuration --- src/main/target/OMNIBUSF4V3_ICM/target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/target/OMNIBUSF4V3_ICM/target.h b/src/main/target/OMNIBUSF4V3_ICM/target.h index 526195c5188..b524b6f3bf1 100644 --- a/src/main/target/OMNIBUSF4V3_ICM/target.h +++ b/src/main/target/OMNIBUSF4V3_ICM/target.h @@ -1,4 +1,4 @@ #pragma once -#define OMNIBUSF4V3 +#define OMNIBUSF4V3_ICM #include "target/OMNIBUSF4V3/target.h"