From 1e93ae31482f6bdc64bc8120f5f2e5508dfef625 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Sat, 14 Jan 2023 08:05:32 +1300 Subject: [PATCH] jsbsim: take FG_BINARY env var into account This is just to match the docs. Signed-off-by: Julian Oes --- Tools/simulation/jsbsim/sitl_run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/simulation/jsbsim/sitl_run.sh b/Tools/simulation/jsbsim/sitl_run.sh index 625f8452fc..e76bdba29c 100755 --- a/Tools/simulation/jsbsim/sitl_run.sh +++ b/Tools/simulation/jsbsim/sitl_run.sh @@ -37,6 +37,10 @@ else no_pxh="" fi +if [ -n $FG_BINARY ]; then + FG_BINARY=fgfs +fi + export PX4_SIM_MODEL=jsbsim_${model} export PX4_SIM_WORLD=${world} @@ -68,7 +72,7 @@ if [[ -n "$HEADLESS" ]]; then else export FG_AIRCRAFT="${SRC_DIR}/Tools/simulation/jsbsim/jsbsim_bridge/models" - fgfs --fdm=null \ + $FG_BINARY --fdm=null \ --native-fdm=socket,in,60,,5550,udp \ --aircraft=$JSBSIM_AIRCRAFT_MODEL \ --airport=${world} \