mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
autotest: remove pointless try/except block in GSF test
This commit is contained in:
parent
9bd19bc835
commit
14c3b80c9c
@ -7687,29 +7687,19 @@ class AutoTestCopter(AutoTest):
|
|||||||
|
|
||||||
def GSF(self):
|
def GSF(self):
|
||||||
'''test the Gaussian Sum filter'''
|
'''test the Gaussian Sum filter'''
|
||||||
ex = None
|
|
||||||
self.context_push()
|
self.context_push()
|
||||||
try:
|
self.set_parameter("EK2_ENABLE", 1)
|
||||||
self.set_parameter("EK2_ENABLE", 1)
|
self.reboot_sitl()
|
||||||
self.reboot_sitl()
|
self.takeoff(20, mode='LOITER')
|
||||||
self.takeoff(20, mode='LOITER')
|
self.set_rc(2, 1400)
|
||||||
self.set_rc(2, 1400)
|
self.delay_sim_time(5)
|
||||||
self.delay_sim_time(5)
|
self.set_rc(2, 1500)
|
||||||
self.set_rc(2, 1500)
|
self.progress("Path: %s" % self.current_onboard_log_filepath())
|
||||||
self.progress("Path: %s" % self.current_onboard_log_filepath())
|
dfreader = self.dfreader_for_current_onboard_log()
|
||||||
dfreader = self.dfreader_for_current_onboard_log()
|
self.do_RTL()
|
||||||
self.do_RTL()
|
|
||||||
except Exception as e:
|
|
||||||
self.progress("Caught exception: %s" %
|
|
||||||
self.get_exception_stacktrace(e))
|
|
||||||
ex = e
|
|
||||||
|
|
||||||
self.context_pop()
|
self.context_pop()
|
||||||
self.reboot_sitl()
|
self.reboot_sitl()
|
||||||
|
|
||||||
if ex is not None:
|
|
||||||
raise ex
|
|
||||||
|
|
||||||
# ensure log messages present
|
# ensure log messages present
|
||||||
want = set(["XKY0", "XKY1", "NKY0", "NKY1"])
|
want = set(["XKY0", "XKY1", "NKY0", "NKY1"])
|
||||||
still_want = want
|
still_want = want
|
||||||
|
Loading…
Reference in New Issue
Block a user