mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 05:53:35 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user