mirror of https://github.com/ArduPilot/ardupilot
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:
parent
b420a5c6db
commit
65e7c74067
|
@ -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
|
|||
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
|
|||
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…
Reference in New Issue