mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:53:33 +08:00
This change was introduced in pull #1461. This fixes some missed occurrences.
19 lines
383 B
Plaintext
19 lines
383 B
Plaintext
#!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
|