autotest: check for the right version of JSBSim

This commit is contained in:
Andrew Tridgell 2015-04-13 09:06:21 +10:00
parent 370edde286
commit e8c115b9c3

View File

@ -302,6 +302,22 @@ case $VEHICLE in
[ "$REVERSE_THROTTLE" == 1 ] && {
EXTRA_SIM="$EXTRA_SIM --revthr"
}
jsbsim_version=$(JSBSim --version)
if [[ $jsbsim_version != *"ArduPilot"* ]]
then
cat <<EOF
=========================================================
You need the latest ArduPilot version of JSBSim installed
and in your \$PATH
Please get it from git://github.com/tridge/jsbsim.git
See
http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/setting-up-sitl-on-linux/
for more details
=========================================================
EOF
exit 1
fi
RUNSIM="nice $autotest/jsbsim/runsim.py --home=$SIMHOME --simin=$SIMIN_PORT --simout=$SIMOUT_PORT --fgout=$FG_PORT $EXTRA_SIM"
PARMS="ArduPlane.parm"
if [ $WIPE_EEPROM == 1 ]; then