Tools: sim_vehicle.py: add a warning when frame not found

We don't always have configuration for a frame type, but
it is atypical to run sim_vehicle like that.
This commit is contained in:
Peter Barker 2017-02-20 12:12:59 +11:00
parent 3be8c1e70b
commit b256bc1dc0

View File

@ -483,6 +483,7 @@ def options_for_frame(frame, vehicle, opts):
if frame.endswith("-heli"):
ret = _options[vehicle]["frames"]["heli"]
if ret is None:
progress("WARNING: no config for frame (%s)" % frame)
ret = {}
if "model" not in ret: