Skip to content

Commit

Permalink
boards: matek h743 slim support v1 and v1.5 IMU variants
Browse files Browse the repository at this point in the history
 - remove temp compensation to still fit into flash
  • Loading branch information
taileron authored May 4, 2022
1 parent 46fdc28 commit bf8d759
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion boards/matek/h743-slim/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CONFIG_DRIVERS_DSHOT=y
CONFIG_DRIVERS_GPS=y
CONFIG_DRIVERS_IMU_INVENSENSE_MPU6000=y
CONFIG_DRIVERS_IMU_INVENSENSE_ICM20602=y
CONFIG_DRIVERS_IMU_INVENSENSE_ICM42605=y
CONFIG_COMMON_LIGHT=y
CONFIG_COMMON_MAGNETOMETER=y
CONFIG_COMMON_OPTICAL_FLOW=y
Expand Down Expand Up @@ -51,7 +52,7 @@ CONFIG_MODULES_CONTROL_ALLOCATOR=y
CONFIG_MODULES_NAVIGATOR=y
CONFIG_MODULES_RC_UPDATE=y
CONFIG_MODULES_SENSORS=y
CONFIG_MODULES_TEMPERATURE_COMPENSATION=y
CONFIG_MODULES_TEMPERATURE_COMPENSATION=n
CONFIG_MODULES_GIMBAL=y
CONFIG_SYSTEMCMDS_BL_UPDATE=y
CONFIG_SYSTEMCMDS_ACTUATOR_TEST=y
Expand Down
8 changes: 6 additions & 2 deletions boards/matek/h743-slim/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@

board_adc start

# Internal SPI bus ICM-20602
icm20602 -R 12 -s start
# Internal SPI bus ICM-42605
if ! icm42605 -R 14 -s start
then
# internal SPI bus ICM-20602
icm20602 -R 12 -s start
fi

# Internal SPI bus MPU-6000
mpu6000 -R 12 -s start
Expand Down
1 change: 1 addition & 0 deletions boards/matek/h743-slim/src/spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
initSPIConfigExternal(SPI::CS{GPIO::PortE, GPIO::Pin2}),
}),
initSPIBus(SPI::Bus::SPI4, {
initSPIDevice(DRV_IMU_DEVTYPE_ICM42605, SPI::CS{GPIO::PortC, GPIO::Pin13}),
initSPIDevice(DRV_IMU_DEVTYPE_ICM20602, SPI::CS{GPIO::PortE, GPIO::Pin11}),
}),
};
Expand Down

0 comments on commit bf8d759

Please sign in to comment.