aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.uavcan
blob: 08ba86d789053a283433f974a9aa8b003dfdf6bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!nsh
#
# UAVCAN initialization script.
#

if param compare UAVCAN_ENABLE 1
then
	if uavcan start
	then
		# First sensor publisher to initialize takes lowest instance ID
		# This delay ensures that UAVCAN-interfaced sensors would be allocated on lowest instance IDs
		sleep 1
		echo "[i] UAVCAN started"
	else
		echo "[i] ERROR: Could not start UAVCAN"
		tone_alarm $TUNE_ERR
	fi
fi