UVify Core board support and airframes (Draco, Draco-R, IFO) (#12337)

* also includes minor changes to make it easy to keep in sync with px4_fmu-v4
This commit is contained in:
Hyon Lim
2019-08-23 17:02:25 -04:00
committed by Daniel Agar
parent ec5d36d9c7
commit 0262a699c1
38 changed files with 3034 additions and 15 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
#
# UVify Core specific board defaults
#------------------------------------------------------------------------------
if [ $AUTOCNF = yes ]
then
# Disable safety switch by default
param set CBRK_IO_SAFETY 22027
fi
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
#
# UVify UVF4 specific board extras init
#------------------------------------------------------------------------------
# IFO
if param compare SYS_AUTOSTART 4071
then
# Change rate to 400 Khz for fast barometer
fmu i2c 1 400000
# IFO has only external i2c barometer.
# It does not start EKF2 in the beginning which is strange behaviour. but 3 seconds hack.
# We intentionally put this initialization to here for delayed initialization.
sleep 4
ms5611 -T 0 -X start
fi
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
#
# UVify UVF4 specific board sensors init
#------------------------------------------------------------------------------
# Draco-R
if param compare SYS_AUTOSTART 6002
then
# Barometer
# Internal SPI
ms5611 -T 0 -s start
# PX4flow
px4flow start
ist8310 start
mpu6000 -R 2 -T 20608 start
mpu9250 -R 2 start
lis3mdl -R 2 -X start
fi
# Draco
if param compare SYS_AUTOSTART 4072
then
mpu9250 -R 2 start
fi
# IFO
if param compare SYS_AUTOSTART 4071
then
# IFO GPS LED
rgbled_ncp5623c start -a 0x38
# IFO rgb LED
pca9685 start
mpu9250 -R 2 start
lis3mdl -R 2 -X start
fi