autostart: HIL and bad PX4IO fixes

This commit is contained in:
Anton Babushkin
2014-01-18 16:47:23 +01:00
parent 5db68264c7
commit bb8cf0894f
+7
View File
@@ -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