jsbsim: take FG_BINARY env var into account

This is just to match the docs.

Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
Julian Oes 2023-01-14 08:05:32 +13:00 committed by Daniel Agar
parent 7c766692c4
commit 1e93ae3148
1 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ else
no_pxh="" no_pxh=""
fi fi
if [ -n $FG_BINARY ]; then
FG_BINARY=fgfs
fi
export PX4_SIM_MODEL=jsbsim_${model} export PX4_SIM_MODEL=jsbsim_${model}
export PX4_SIM_WORLD=${world} export PX4_SIM_WORLD=${world}
@ -68,7 +72,7 @@ if [[ -n "$HEADLESS" ]]; then
else else
export FG_AIRCRAFT="${SRC_DIR}/Tools/simulation/jsbsim/jsbsim_bridge/models" 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 \ --native-fdm=socket,in,60,,5550,udp \
--aircraft=$JSBSIM_AIRCRAFT_MODEL \ --aircraft=$JSBSIM_AIRCRAFT_MODEL \
--airport=${world} \ --airport=${world} \