From f9824d968d7e63d7bd1a6796ce1a842a8ad0ccc3 Mon Sep 17 00:00:00 2001 From: bnsgeyer Date: Wed, 17 Apr 2024 21:07:55 -0400 Subject: [PATCH] Tools: heli autotune autotest --- Tools/autotest/helicopter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/autotest/helicopter.py b/Tools/autotest/helicopter.py index c0d0aa490c7020..424b2e3ba0c3c6 100644 --- a/Tools/autotest/helicopter.py +++ b/Tools/autotest/helicopter.py @@ -871,7 +871,9 @@ def AutoTune(self): # hold position in loiter self.change_mode('AUTOTUNE') + tstart = self.get_sim_time() self.wait_statustext('AutoTune: Success', timeout=3000) + now = self.get_sim_time() self.progress("AUTOTUNE OK (%u seconds)" % (now - tstart)) self.land_and_disarm() self.set_rc(8, 1000) @@ -889,7 +891,9 @@ def AutoTune(self): # hold position in loiter self.change_mode('AUTOTUNE') + tstart = self.get_sim_time() self.wait_statustext('AutoTune: Success', timeout=3000) + now = self.get_sim_time() self.progress("AUTOTUNE OK (%u seconds)" % (now - tstart)) self.land_and_disarm() self.set_rc(8, 1000) @@ -907,7 +911,9 @@ def AutoTune(self): # hold position in loiter self.change_mode('AUTOTUNE') + tstart = self.get_sim_time() self.wait_statustext('AutoTune: Success', timeout=3000) + now = self.get_sim_time() self.progress("AUTOTUNE OK (%u seconds)" % (now - tstart)) self.land_and_disarm() self.set_rc(8, 1000) @@ -925,7 +931,9 @@ def AutoTune(self): # hold position in loiter self.change_mode('AUTOTUNE') + tstart = self.get_sim_time() self.wait_statustext('AutoTune: Success', timeout=3000) + now = self.get_sim_time() self.progress("AUTOTUNE OK (%u seconds)" % (now - tstart)) self.land_and_disarm() self.set_rc(8, 1000) @@ -943,7 +951,9 @@ def AutoTune(self): # hold position in loiter self.change_mode('AUTOTUNE') + tstart = self.get_sim_time() self.wait_statustext('AutoTune: Success', timeout=3000) + now = self.get_sim_time() self.progress("AUTOTUNE OK (%u seconds)" % (now - tstart)) self.land_and_disarm() self.set_rc(8, 1000)