PX4: disable PX4IO RC handling in a clean way

Upstream PX4 Firmware provides a clean way to disable PX4IO handling by supplying the argument "norc" to "px4io start". After applying this fix to the rc.APM startup script, the quick hack contained in commit 180cceee of diydrones/PX4Firmware can be safely reverted.
This commit is contained in:
holger 2014-06-30 21:38:33 +02:00 committed by Andrew Tridgell
parent b420a5c6db
commit 65e7c74067
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ fi
# try the px4io start twice. Some FMUv2 board don't # try the px4io start twice. Some FMUv2 board don't
# come up the first time # come up the first time
set HAVE_PX4IO false set HAVE_PX4IO false
if px4io start if px4io start norc
then then
set HAVE_PX4IO true set HAVE_PX4IO true
else else
@ -128,7 +128,7 @@ else
tone_alarm MNGGG tone_alarm MNGGG
fi fi
sleep 1 sleep 1
if px4io start if px4io start norc
then then
set HAVE_PX4IO true set HAVE_PX4IO true
# play happy tune again # play happy tune again
@ -149,7 +149,7 @@ then
if px4io forceupdate 14662 /etc/px4io/px4io.bin if px4io forceupdate 14662 /etc/px4io/px4io.bin
then then
sleep 1 sleep 1
if px4io start if px4io start norc
then then
echo "PX4IO restart OK" echo "PX4IO restart OK"
echo "PX4IO restart OK" >> $logfile echo "PX4IO restart OK" >> $logfile