autotest: fixed periph param defaults
This commit is contained in:
parent
65ced84a0e
commit
52a2824085
@ -5,3 +5,4 @@ COMPASS_ENABLE 1
|
||||
BARO_ENABLE 1
|
||||
ARSPD_TYPE 100
|
||||
RNGFND1_TYPE 100
|
||||
BATT_MONITOR 4
|
||||
|
@ -666,6 +666,7 @@ def start_CAN_GPS(opts):
|
||||
global can_uarta
|
||||
progress("Preparing sitl_periph_gps")
|
||||
options = vinfo.options["sitl_periph_gps"]['frames']['gps']
|
||||
defaults_path = options.get('default_params_filename', None)
|
||||
do_build(opts, options)
|
||||
exe = os.path.join(root_dir, 'build/sitl_periph_gps', 'bin/AP_Periph')
|
||||
cmd = ["nice"]
|
||||
@ -689,6 +690,9 @@ def start_CAN_GPS(opts):
|
||||
cmd.extend(["-x", gdb_commands_file.name])
|
||||
cmd.append("--args")
|
||||
cmd.append(exe)
|
||||
if defaults_path is not None:
|
||||
cmd.append("--defaults")
|
||||
cmd.append(util.relcurdir(os.path.join(autotest_dir, defaults_path)))
|
||||
run_in_terminal_window(cmd_name, cmd)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user