forked from Archive/PX4-Autopilot
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:
parent
7c766692c4
commit
1e93ae3148
|
@ -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} \
|
||||
|
|
Loading…
Reference in New Issue