mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
SITL: handle 'make posix_sitl_shell' via unified rcS
The command is now: 'make posix none_shell' which means: don't start a simulator and run a minimal shell only.
This commit is contained in:
@@ -14,14 +14,13 @@ then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# TODO: In the future we want to share rc.autostart with NuttX
|
||||
#source rc.autostart
|
||||
RUN_MINIMAL_SHELL=no
|
||||
|
||||
# Use the variable set by sitl_run.sh to choose the model settings.
|
||||
if [ "$PX4_SIM_MODEL" == "iris" ]; then
|
||||
if [ "$PX4_SIM_MODEL" == "shell" ]; then
|
||||
set RUN_MINIMAL_SHELL yes
|
||||
elif [ "$PX4_SIM_MODEL" == "iris" ]; then
|
||||
set REQUESTED_AUTOSTART 10016
|
||||
|
||||
elif [ "$PX4_SIM_MODEL" == "typhoon_h480" ]; then
|
||||
set REQUESTED_AUTOSTART 6011
|
||||
else
|
||||
@@ -35,6 +34,9 @@ then
|
||||
param load
|
||||
fi
|
||||
|
||||
# exit early when the minimal shell is requested
|
||||
[ $RUN_MINIMAL_SHELL == yes ] && exit 0
|
||||
|
||||
if param compare SYS_AUTOSTART $REQUESTED_AUTOSTART
|
||||
then
|
||||
set AUTOCNF no
|
||||
|
||||
Reference in New Issue
Block a user