mirror of https://github.com/ArduPilot/ardupilot
autotest: use get_parameter in place of mav's param object
This is the only place in the code that does this
This commit is contained in:
parent
b1ccf3b3f8
commit
bcc1cb9dbb
|
@ -8568,7 +8568,7 @@ switch value'''
|
||||||
for (ins_prefix, sim_prefix, pre_value, post_value) in param_map:
|
for (ins_prefix, sim_prefix, pre_value, post_value) in param_map:
|
||||||
for axis in axes:
|
for axis in axes:
|
||||||
pname = ins_prefix+"_"+axis
|
pname = ins_prefix+"_"+axis
|
||||||
v = self.mav.param(pname)
|
v = self.get_parameter(pname)
|
||||||
expected_v = getattr(post_value, axis.lower())
|
expected_v = getattr(post_value, axis.lower())
|
||||||
if v == expected_v:
|
if v == expected_v:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue