mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
Tools: fixed sim_vehicle.py with -n
fixed path to parameter file
This commit is contained in:
parent
83c9a76260
commit
fda6d23fab
@ -715,6 +715,9 @@ def start_vehicle(binary, opts, stuff, spawns=None):
|
||||
print("The parameter file (%s) does not exist" % (x,))
|
||||
sys.exit(1)
|
||||
path = ",".join(paths)
|
||||
if cmd_opts.count > 1:
|
||||
# we are in a subdirectory when using -n
|
||||
path = os.path.join("..", path)
|
||||
progress("Using defaults from (%s)" % (path,))
|
||||
if opts.flash_storage:
|
||||
cmd.append("--set-storage-flash-enabled 1")
|
||||
|
Loading…
Reference in New Issue
Block a user