Skip to content

Commit

Permalink
Merge pull request iNavFlight#10385 from iNavFlight/micoair-alt-compass
Browse files Browse the repository at this point in the history
MICOARI743 Add alternative target that looks for compass on external connector
  • Loading branch information
mmosca authored Sep 26, 2024
2 parents 6691f4c + 54adf50 commit 9540a46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/target/MICOAIR743/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target_stm32h743xi(MICOAIR743)
target_stm32h743xi(MICOAIR743)
target_stm32h743xi(MICOAIR743_EXTMAG)
7 changes: 7 additions & 0 deletions src/main/target/MICOAIR743/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@
#define BARO_I2C_BUS BUS_I2C2

#define USE_MAG

#ifdef MICOAIR743_EXTMAG
// External compass
#define MAG_I2C_BUS BUS_I2C1
#else
// Onboard compass
#define MAG_I2C_BUS BUS_I2C2
#endif
#define USE_MAG_ALL

// *************** ENABLE OPTICAL FLOW & RANGEFINDER *****************************
Expand Down

0 comments on commit 9540a46

Please sign in to comment.