mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
autostart: HIL and bad PX4IO fixes
This commit is contained in:
@@ -241,7 +241,10 @@ then
|
|||||||
if [ $HIL == yes ]
|
if [ $HIL == yes ]
|
||||||
then
|
then
|
||||||
set OUTPUT_MODE hil
|
set OUTPUT_MODE hil
|
||||||
|
if hw_ver compare PX4FMU_V1
|
||||||
|
then
|
||||||
set FMU_MODE serial
|
set FMU_MODE serial
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Try to get an USB console if not in HIL mode
|
# Try to get an USB console if not in HIL mode
|
||||||
nshterm /dev/ttyACM0 &
|
nshterm /dev/ttyACM0 &
|
||||||
@@ -257,6 +260,9 @@ then
|
|||||||
#
|
#
|
||||||
set TTYS1_BUSY no
|
set TTYS1_BUSY no
|
||||||
|
|
||||||
|
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
|
||||||
|
if [ $OUTPUT_MODE != none ]
|
||||||
|
then
|
||||||
if [ $OUTPUT_MODE == io ]
|
if [ $OUTPUT_MODE == io ]
|
||||||
then
|
then
|
||||||
echo "[init] Use PX4IO PWM as primary output"
|
echo "[init] Use PX4IO PWM as primary output"
|
||||||
@@ -366,6 +372,7 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# MAVLink
|
# MAVLink
|
||||||
|
|||||||
Reference in New Issue
Block a user