mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
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:
parent
3be8c1e70b
commit
b256bc1dc0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user