You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!nsh
|
|
|
|
#
|
|
|
|
# UAVCAN initialization script.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Starting stuff according to UAVCAN_ENABLE value
|
|
|
|
#
|
|
|
|
if param greater UAVCAN_ENABLE 0
|
|
|
|
then
|
|
|
|
if uavcan start
|
|
|
|
then
|
|
|
|
echo "[i] UAVCAN started"
|
|
|
|
else
|
|
|
|
echo "[i] ERROR: Could not start UAVCAN"
|
|
|
|
tone_alarm $TUNE_ERR
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if param greater UAVCAN_ENABLE 1
|
|
|
|
then
|
|
|
|
if uavcan start fw
|
|
|
|
then
|
|
|
|
echo "[i] UAVCAN servers started"
|
|
|
|
else
|
|
|
|
echo "[i] ERROR: Could not start UAVCAN servers"
|
|
|
|
tone_alarm $TUNE_ERR
|
|
|
|
fi
|
|
|
|
fi
|