Files
PX4-Autopilot/boards/uvify/core/init/rc.board_extras
T
Beat Küng dbb53044ce refactor ms5611: use driver base class
Also: remove device type auto-detection as it will not work with
together with the new SPI board config (which specifies a specific
device type)
2020-03-17 23:31:17 -04:00

22 lines
527 B
Bash

#!/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
if ! ms5611 -T 5607 -X start
then
ms5611 -X start
fi
fi