Browse Source

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.
master
holger 11 years ago committed by Andrew Tridgell
parent
commit
65e7c74067
  1. 6
      mk/PX4/ROMFS/init.d/rc.APM

6
mk/PX4/ROMFS/init.d/rc.APM

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

Loading…
Cancel
Save