mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 17:36:40 +08:00
9b12647ac4
- delete broken px4io test and if_test - delete px4io limit (a fixed 400 Hz limit was always set at boot)
24 lines
468 B
Io
24 lines
468 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 20
|
|
fi
|
|
fi
|