-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add target OMNIBUSF4V3_ICM to OMNIBUSF4 and mark as SKIP_RELEASES #11192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sensei-hacker
merged 5 commits into
iNavFlight:maintenance-9.x
from
wchnflr:omnibusf4v3_icm
Dec 22, 2025
+21
−11
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,8 @@ | |
| #define TARGET_BOARD_IDENTIFIER "OBSD" | ||
| #elif defined(OMNIBUSF4V3) | ||
| #define TARGET_BOARD_IDENTIFIER "OB43" | ||
| #elif defined(OMNIBUSF4V3_ICM) | ||
| #define TARGET_BOARD_IDENTIFIER "OB4I" | ||
| #elif defined(DYSF4PRO) | ||
| #define TARGET_BOARD_IDENTIFIER "DYS4" | ||
| #elif defined(DYSF4PROV2) | ||
|
|
@@ -67,16 +69,23 @@ | |
| #define MPU6000_CS_PIN PA4 | ||
| #define MPU6000_SPI_BUS BUS_SPI1 | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #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 | ||
| #endif | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define USE_IMU_MPU6000 | ||
| #define IMU_MPU6000_ALIGN CW270_DEG | ||
| #else | ||
| #define USE_IMU_MPU6000 | ||
| #define IMU_MPU6000_ALIGN CW180_DEG | ||
| #endif | ||
|
|
||
| // Support for OMNIBUS F4 PRO CORNER - it has ICM20608 instead of MPU6000 | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| // Support for OMNIBUS F4 PRO CORNER - it has MPU6500/ICM20608 instead of MPU6000 | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define MPU6500_CS_PIN MPU6000_CS_PIN | ||
| #define MPU6500_SPI_BUS MPU6000_SPI_BUS | ||
| #define USE_IMU_MPU6500 | ||
|
Comment on lines
+72
to
91
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: To resolve a hardware conflict, remove the New proposed code: #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
#endif
-#if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM)
+#if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3)
#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW270_DEG
#else
...
#endif
// Support for OMNIBUS F4 PRO CORNER - it has MPU6500/ICM20608 instead of MPU6000
-#if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM)
+#if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3)
#define MPU6500_CS_PIN MPU6000_CS_PIN
#define MPU6500_SPI_BUS MPU6000_SPI_BUS
#define USE_IMU_MPU6500
#define IMU_MPU6500_ALIGN IMU_MPU6000_ALIGN
//BMI270
#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN IMU_MPU6000_ALIGN
#define BMI270_SPI_BUS MPU6000_SPI_BUS
#define BMI270_CS_PIN MPU6000_CS_PIN
#endif |
||
|
|
@@ -97,7 +106,7 @@ | |
|
|
||
| #define USE_BARO | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define USE_BARO_BMP280 | ||
| #define BMP280_SPI_BUS BUS_SPI3 | ||
| #define BMP280_CS_PIN PB3 // v1 | ||
|
|
@@ -121,7 +130,7 @@ | |
| #define VBUS_SENSING_PIN PC5 | ||
| #define VBUS_SENSING_ENABLED | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define USE_UART_INVERTER | ||
| #endif | ||
|
|
||
|
|
@@ -140,12 +149,12 @@ | |
| #define USE_UART6 | ||
| #define UART6_RX_PIN PC7 | ||
| #define UART6_TX_PIN PC6 | ||
| #if defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define INVERTER_PIN_UART6_RX PC8 | ||
| #define INVERTER_PIN_UART6_TX PC9 | ||
| #endif | ||
|
|
||
| #if defined(OMNIBUSF4V3) && !(defined(OMNIBUSF4V3_S6_SS) || defined(OMNIBUSF4V3_S5S6_SS) || defined(OMNIBUSF4V3_S5_S6_2SS)) | ||
| #if (defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM)) && !(defined(OMNIBUSF4V3_S6_SS) || defined(OMNIBUSF4V3_S5S6_SS) || defined(OMNIBUSF4V3_S5_S6_2SS)) | ||
| #define USE_SOFTSERIAL1 | ||
| #define SOFTSERIAL_1_RX_PIN PC6 // shared with UART6 TX | ||
| #define SOFTSERIAL_1_TX_PIN PC6 // shared with UART6 TX | ||
|
|
@@ -193,7 +202,7 @@ | |
|
|
||
| #define USE_SPI_DEVICE_1 | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define USE_SPI_DEVICE_2 | ||
| #define SPI2_NSS_PIN PB12 | ||
| #define SPI2_SCK_PIN PB13 | ||
|
|
@@ -202,7 +211,7 @@ | |
| #endif | ||
|
|
||
| #define USE_SPI_DEVICE_3 | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define SPI3_NSS_PIN PA15 | ||
| #else | ||
| #define SPI3_NSS_PIN PB3 | ||
|
|
@@ -215,7 +224,7 @@ | |
| #define MAX7456_SPI_BUS BUS_SPI3 | ||
| #define MAX7456_CS_PIN PA15 | ||
|
|
||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) | ||
| #if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM) | ||
| #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT | ||
| #define USE_SDCARD | ||
| #define USE_SDCARD_SPI | ||
|
|
@@ -250,7 +259,7 @@ | |
| #define SENSORS_SET (SENSOR_ACC|SENSOR_MAG|SENSOR_BARO) | ||
|
|
||
| #define USE_LED_STRIP | ||
| #if (defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3)) && !defined(OMNIBUSF4PRO_LEDSTRIPM5) | ||
| #if (defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) || defined(OMNIBUSF4V3_ICM)) && !defined(OMNIBUSF4PRO_LEDSTRIPM5) | ||
| #define WS2811_PIN PB6 | ||
| #else | ||
| #define WS2811_PIN PA1 | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.