boards: initial CUAV X7Pro support (not complete)

- this is booting and functional, but still missing a few things
 - still needs full PWM output, verification of all sensor rotations and IO, etc
This commit is contained in:
Daniel Agar
2020-05-01 20:59:28 -04:00
committed by GitHub
parent 0c8dcf94bc
commit d89b7804f7
28 changed files with 2460 additions and 24 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
#
# CUAV X7Pro specific board defaults
#------------------------------------------------------------------------------
#
# Bootloader upgrade
#
set BL_FILE /etc/extras/cuav_x7pro_bootloader.bin
if [ -f $BL_FILE ]
then
if param compare SYS_BL_UPDATE 1
then
param set SYS_BL_UPDATE 0
param save
echo "BL update..." >> $LOG_FILE
bl_update $BL_FILE
echo "BL update done" >> $LOG_FILE
reboot
fi
fi
unset BL_FILE
if [ $AUTOCNF = yes ]
then
param set BAT_V_DIV 18
param set BAT1_V_DIV 18
param set BAT2_V_DIV 18
param set BAT_A_PER_V 24
param set BAT1_A_PER_V 24
param set BAT2_A_PER_V 24
# Enable IMU thermal control
param set SENS_EN_THERMAL 1
fi
set LOGGER_BUF 64
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
#
# Board specific specific board MAVLink startup script.
#------------------------------------------------------------------------------
# Start MAVLink on the USB port
mavlink start -d /dev/ttyACM0
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
#
# CUAV X7Pro specific board sensors init
#------------------------------------------------------------------------------
adc start
# SPI1 (internal)
#adis16470 -s start
rm3100 -s start
icm20689 -s -R 2 start
# SPI4 (internal)
bmi088 -A -s -R 10 start
bmi088 -G -s -R 10 start
ms5611 -s -b 4 start
# SPI6 (internal)
icm20649 -s -b 6 -R 2 start
ms5611 -s -b 6 start
# Possible external compasses
ist8310 -X start
hmc5883 -T -X start
qmc5883 -X start
lis3mdl -X start