mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 16:23:33 +08:00
* boards: add Radiolink PIX6 * Fix newlines and format issues * Fix newlines issues * docs:add radiolink_pix6.md document * Subedit, prettier, get images * Add hero image * docs:Add some necessary instructions * Subedit --------- Co-authored-by: Ubuntu <diaohuayuan@radiolink.com.cn> Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
54 lines
744 B
Bash
54 lines
744 B
Bash
#!/bin/sh
|
|
#
|
|
# board sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
set HAVE_PM2 yes
|
|
|
|
board_adc start
|
|
|
|
if param compare SENS_EN_INA226 1
|
|
then
|
|
if [ $HAVE_PM2 = yes ]
|
|
then
|
|
ina226 -X -b 2 -t 2 -k start
|
|
fi
|
|
|
|
fi
|
|
|
|
if param compare SENS_EN_INA228 1
|
|
then
|
|
if [ $HAVE_PM2 = yes ]
|
|
then
|
|
ina228 -X -b 2 -t 2 -k start
|
|
fi
|
|
|
|
fi
|
|
|
|
if param compare SENS_EN_INA238 1
|
|
then
|
|
if [ $HAVE_PM2 = yes ]
|
|
then
|
|
ina238 -X -b 2 -t 2 -k start
|
|
fi
|
|
|
|
fi
|
|
|
|
# Internal SPI bus ICM42688p
|
|
icm42688p -R 2 -s start
|
|
|
|
# Internal SPI BMI088
|
|
bmi088 -A -R 4 -s start
|
|
bmi088 -G -R 4 -s start
|
|
|
|
spa06 -I start
|
|
|
|
# internal compass
|
|
ist8310 -I start
|
|
|
|
# External compass on GPS1/I2C1
|
|
ist8310 -X start
|
|
|
|
# Possible internal Baro
|
|
unset HAVE_PM2
|