mirror of https://github.com/ArduPilot/ardupilot
autotest: use implicit context for AutoTuneSwitch
the wrapper adds nothing
This commit is contained in:
parent
1566000da5
commit
d0ce2ca8f2
|
@ -2329,22 +2329,6 @@ class AutoTestCopter(AutoTest):
|
|||
# complete by "customising" the commandline here:
|
||||
self.customise_SITL_commandline([])
|
||||
|
||||
self.context_push()
|
||||
|
||||
ex = None
|
||||
|
||||
try:
|
||||
self.fly_autotune_switch_body()
|
||||
except Exception as e:
|
||||
self.print_exception_caught(e)
|
||||
ex = e
|
||||
|
||||
self.context_pop()
|
||||
|
||||
if ex is not None:
|
||||
raise ex
|
||||
|
||||
def fly_autotune_switch_body(self):
|
||||
self.set_parameters({
|
||||
"RC8_OPTION": 17,
|
||||
"ATC_RAT_RLL_FLTT": 20,
|
||||
|
|
Loading…
Reference in New Issue