px4-firmware/ROMFS/px4fmu_common/init.d/rc.uavcan

19 lines
389 B
Plaintext
Raw Normal View History

2014-08-23 10:23:59 -03:00
#!nsh
#
# UAVCAN initialization script.
#
if param compare UAVCAN_ENABLE 1
then
if uavcan start
then
2014-08-23 18:41:54 -03:00
# 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
2014-08-23 10:23:59 -03:00
echo "[init] UAVCAN started"
else
echo "[init] ERROR: Could not start UAVCAN"
2014-11-17 11:38:20 -04:00
tone_alarm $TUNE_ERR
2014-08-23 10:23:59 -03:00
fi
fi