From b02f0ee51fba0bbdb7ff723fa52c0f591cbd17d8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 20 Dec 2020 22:29:46 +1100 Subject: [PATCH] autotest: make Sub's setting of FS_GCS_ENABLE persist across wipes --- Tools/autotest/ardusub.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Tools/autotest/ardusub.py b/Tools/autotest/ardusub.py index 1d5252907c..cca0740fa3 100644 --- a/Tools/autotest/ardusub.py +++ b/Tools/autotest/ardusub.py @@ -63,12 +63,6 @@ class AutoTestSub(AutoTest): def default_frame(self): return 'vectored' - def init(self): - super(AutoTestSub, self).init() - - # FIXME: - self.set_parameter("FS_GCS_ENABLE", 0) - def is_sub(self): return True @@ -332,6 +326,11 @@ class AutoTestSub(AutoTest): pass self.initialise_after_reboot_sitl() + def apply_defaultfile_parameters(self): + super(AutoTestSub, self).apply_defaultfile_parameters() + # FIXME: + self.set_parameter("FS_GCS_ENABLE", 0) + def disabled_tests(self): ret = super(AutoTestSub, self).disabled_tests() ret.update({