mirror of https://github.com/ArduPilot/ardupilot
rc.APM: disarm px4io before trying to update
This commit is contained in:
parent
db9c8548a5
commit
604742ac0e
|
@ -148,6 +148,16 @@ then
|
|||
echo "PX4IO CRC failure"
|
||||
echo "PX4IO CRC failure" >> $logfile
|
||||
tone_alarm MBABGP
|
||||
|
||||
if px4io safety_on
|
||||
then
|
||||
echo "PX4IO disarm OK"
|
||||
else
|
||||
echo "PX4IO disarm failed"
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
if px4io forceupdate 14662 /etc/px4io/px4io.bin
|
||||
then
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in New Issue