Skip to content

Commit

Permalink
AP_BoardConfig: cope with IIM46234
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 11, 2023
1 parent 1f129b3 commit 42e81da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/AP_BoardConfig/board_drivers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ void AP_BoardConfig::board_setup()
*/
void AP_BoardConfig::detect_fmuv6_variant()
{
#if defined(HAL_WITH_SPI_IIM46234)
state.board_type.set_and_notify(FMUV6_BOARD_HOLYBRO_6X);
DEV_PRINTF("Detected Holybro 6X - IIM26234\n");
#else
if (((spi_check_register_inv2("icm20649", INV2REG_WHOAMI, INV2_WHOAMI_ICM20649) ||
spi_check_register("bmi088_g", BMI088REG_CHIPID, CHIPID_BMI088_G)) && // alternative config
spi_check_register("icm42688", INV3REG_WHOAMI, INV3_WHOAMI_ICM42688) &&
Expand All @@ -504,6 +508,6 @@ void AP_BoardConfig::detect_fmuv6_variant()
DEV_PRINTF("Detected CUAV 6X\n");
AP_Param::load_defaults_file("@ROMFS/param/CUAV_V6X_defaults.parm", false);
}

#endif
}
#endif

0 comments on commit 42e81da

Please sign in to comment.