mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
autotest: add a load_params_file method to take params from test dir
This commit is contained in:
parent
22360b43a8
commit
f3271ce0a6
@ -14812,6 +14812,11 @@ SERIAL5_BAUD 128
|
|||||||
filepath = util.reltopdir(os.path.join("Tools", "autotest", "default_params", filename))
|
filepath = util.reltopdir(os.path.join("Tools", "autotest", "default_params", filename))
|
||||||
self.repeatedly_apply_parameter_filepath(filepath)
|
self.repeatedly_apply_parameter_filepath(filepath)
|
||||||
|
|
||||||
|
def load_params_file(self, filename):
|
||||||
|
'''load a file from test-specific directory'''
|
||||||
|
filepath = os.path.join(testdir, self.current_test_name_directory, filename)
|
||||||
|
self.repeatedly_apply_parameter_filepath(filepath)
|
||||||
|
|
||||||
def send_pause_command(self):
|
def send_pause_command(self):
|
||||||
'''pause AUTO/GUIDED modes'''
|
'''pause AUTO/GUIDED modes'''
|
||||||
self.run_cmd(
|
self.run_cmd(
|
||||||
|
Loading…
Reference in New Issue
Block a user