mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-27 01:12:18 +08:00
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:
@@ -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} \
|
||||
|
||||
Reference in New Issue
Block a user