mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 11:50:35 +08:00
Fix IO update when safety can not be set to on. From @zottgrammes
Conflicts: ROMFS/px4fmu_common/init.d/rcS
This commit is contained in:
@@ -198,8 +198,17 @@ then
|
||||
|
||||
tone_alarm MLL32CP8MB
|
||||
|
||||
px4io start
|
||||
px4io safety_on
|
||||
if px4io start
|
||||
then
|
||||
# try to safe px4 io so motor outputs dont go crazy
|
||||
if px4io safety_on
|
||||
then
|
||||
# success! no-op
|
||||
else
|
||||
# px4io did not respond to the safety command
|
||||
px4io stop
|
||||
fi
|
||||
fi
|
||||
|
||||
if px4io forceupdate 14662 ${IO_FILE}
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user