diff --git a/boards/holybro/kakuteh7-wing/default.px4board b/boards/holybro/kakuteh7-wing/default.px4board index ef9e45c253e..5513c346079 100644 --- a/boards/holybro/kakuteh7-wing/default.px4board +++ b/boards/holybro/kakuteh7-wing/default.px4board @@ -1,5 +1,6 @@ CONFIG_BOARD_TOOLCHAIN="arm-none-eabi" CONFIG_BOARD_ARCHITECTURE="cortex-m7" +CONFIG_WQ_SPI2_PRIORITY=-5 CONFIG_BOARD_SERIAL_GPS1="/dev/ttyS0" CONFIG_BOARD_SERIAL_GPS2="/dev/ttyS1" CONFIG_BOARD_SERIAL_TEL1="/dev/ttyS2" @@ -17,6 +18,7 @@ CONFIG_COMMON_DISTANCE_SENSOR=y CONFIG_DRIVERS_DSHOT=y CONFIG_DRIVERS_GPS=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM42688P=y +CONFIG_DRIVERS_IMU_ST_LSM6DSV=y CONFIG_DRIVERS_OSD_ATXXXX=y CONFIG_COMMON_LIGHT=y CONFIG_COMMON_MAGNETOMETER=y diff --git a/boards/holybro/kakuteh7-wing/init/rc.board_sensors b/boards/holybro/kakuteh7-wing/init/rc.board_sensors index c5c3c9a59f2..9f5e56f5633 100644 --- a/boards/holybro/kakuteh7-wing/init/rc.board_sensors +++ b/boards/holybro/kakuteh7-wing/init/rc.board_sensors @@ -4,8 +4,11 @@ #------------------------------------------------------------------------------ board_adc start -# Internal SPI bus ICM42688p -icm42688p -R 2 -s start +# Internal SPI IMU on SPI3 (same CS): ICM42688P or LSM6DSV +if ! icm42688p -R 2 -s -q start +then + lsm6dsv -R 2 -s start +fi # Internal baro if ! bmp280 -I -b 4 -q start diff --git a/boards/holybro/kakuteh7-wing/src/spi.cpp b/boards/holybro/kakuteh7-wing/src/spi.cpp index 7cdaf3556ce..40abade96ce 100644 --- a/boards/holybro/kakuteh7-wing/src/spi.cpp +++ b/boards/holybro/kakuteh7-wing/src/spi.cpp @@ -46,6 +46,7 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = { }), initSPIBus(SPI::Bus::SPI3, { initSPIDevice(DRV_IMU_DEVTYPE_ICM42688P, SPI::CS{GPIO::PortE, GPIO::Pin12}), + initSPIDevice(DRV_IMU_DEVTYPE_ST_LSM6DSV, SPI::CS{GPIO::PortE, GPIO::Pin12}, SPI::DRDY{GPIO::PortE, GPIO::Pin15}), }), };