mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
|
# complete by "customising" the commandline here:
|
||||||
self.customise_SITL_commandline([])
|
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({
|
self.set_parameters({
|
||||||
"RC8_OPTION": 17,
|
"RC8_OPTION": 17,
|
||||||
"ATC_RAT_RLL_FLTT": 20,
|
"ATC_RAT_RLL_FLTT": 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user