px4-firmware/boards/spracing/h7extreme/init/rc.board_sensors

24 lines
378 B
Bash

#!/bin/sh
#
# board specific sensors init
#------------------------------------------------------------------------------
board_adc start
# Internal SPI bus ICM-20602 or ICM-42688-P
# SPI2
if ! icm20602 -s -b 2 -R 5 start
then
icm42688p -s -b 2 -R 5 start
fi
# SPI3
if ! icm20602 -s -b 3 -R 4 start
then
icm42688p -s -b 3 -R 4 start
fi
# Internal I2C bus
bmp388 -I start