Skip to content

Commit

Permalink
Tools: heli autotune autotest
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer committed Apr 18, 2024
1 parent 59305e1 commit f9824d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tools/autotest/helicopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit f9824d9

Please sign in to comment.