mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
- drivers/tone_alarm: move to ModuleBase and purge CDev (/dev/tone_alarm0) - drivers/tone_alarm: only run on tune_control publication (or scheduled note) rather than continuously - drivers/tone_alarm: use HRT to schedule tone stop (prevents potential disruption) - msg/tune_control: add tune_id numbering - systemcmds/tune_control: add "error" special case tune_id - move all tune_control publication to new uORB::PublicationQueued<> - start tone_alarm immediately after board defaults are loaded to fix potential startup issues - for SITL (or other boards with no TONE output) print common messages (startup, error, etc)
24 lines
485 B
Io
24 lines
485 B
Io
#!/bin/sh
|
|
#
|
|
# PX4IO interface init script.
|
|
#
|
|
|
|
# If $OUTPUT_MODE indicated Hardware-int-the-loop simulation, px4io should not publish actuator_outputs,
|
|
# instead, pwm_out_sim will publish that uORB
|
|
if [ $OUTPUT_MODE = hil ]
|
|
then
|
|
set HIL_ARG $OUTPUT_MODE
|
|
fi
|
|
|
|
if [ $IO_PRESENT = yes ]
|
|
then
|
|
if px4io start $HIL_ARG
|
|
then
|
|
# Allow PX4IO to recover from midair restarts.
|
|
px4io recovery
|
|
else
|
|
echo "PX4IO start failed" >> $LOG_FILE
|
|
tune_control play -t 18 # PROG_PX4IO_ERR
|
|
fi
|
|
fi
|