autotest: fixed XPlane with sim_vehicle.py

This commit is contained in:
Andrew Tridgell 2016-06-30 20:26:14 +10:00
parent 82f131667d
commit d477905fbd

View File

@ -468,9 +468,10 @@ def options_for_frame(frame, vehicle, opts):
if opts.model is not None:
ret["model"] = opts.model
if (ret["model"].find("xplane") != -1 or
ret["model"].find("flightaxis") != -1):
ret["sitl-port"] = False
if (ret["model"].find("xplane") != -1 or
ret["model"].find("flightaxis") != -1):
ret["sitl-port"] = False
if not ret.has_key("make_target"):
ret["make_target"] = "sitl"