mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
px4fmu rcS: start sensors in hil mode if HIL is set, don't load rc.sensors
This makes sure no sensor publishes sensor topics, instead they will be published from mavlink.
This commit is contained in:
@@ -399,9 +399,7 @@ then
|
||||
then
|
||||
set FMU_MODE serial
|
||||
fi
|
||||
unset HIL
|
||||
else
|
||||
unset HIL
|
||||
gps start
|
||||
fi
|
||||
|
||||
@@ -420,7 +418,13 @@ then
|
||||
#
|
||||
# Sensors System (start before Commander so Preflight checks are properly run)
|
||||
#
|
||||
if [ $HIL == yes ]
|
||||
then
|
||||
sensors start -hil
|
||||
else
|
||||
sh /etc/init.d/rc.sensors
|
||||
fi
|
||||
unset HIL
|
||||
|
||||
# Needs to be this early for in-air-restarts
|
||||
if [ $OUTPUT_MODE == hil ]
|
||||
|
||||
Reference in New Issue
Block a user