Skip to content

Commit

Permalink
autotest: Added Copter Smart RTL repeat detection test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleRos committed Dec 20, 2024
1 parent a22e28c commit 5d1bb00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9872,6 +9872,15 @@ def SMART_RTL_EnterLeave(self):
self.change_mode('ALT_HOLD')
self.change_mode('SMART_RTL')

def SMART_RTL_Repeat(self):
'''Test whether Smart RTL catches the repeat'''
self.takeoff(alt_min=10, mode='GUIDED')
self.set_rc(3, 1500)
self.change_mode("CIRCLE")
self.delay_sim_time(1300)
self.change_mode("SMART_RTL")
self.wait_disarmed()

def GPSForYawCompassLearn(self):
'''Moving baseline GPS yaw - with compass learning'''
self.context_push()
Expand Down Expand Up @@ -12194,6 +12203,7 @@ def tests2b(self): # this block currently around 9.5mins here
self.AP_Avoidance,
self.SMART_RTL,
self.SMART_RTL_EnterLeave,
self.SMART_RTL_Repeat,
self.RTL_TO_RALLY,
self.FlyEachFrame,
self.GPSBlending,
Expand Down Expand Up @@ -12355,6 +12365,7 @@ def disabled_tests(self):
"GPSForYawCompassLearn": "Vehicle currently crashed in spectacular fashion",
"CompassMot": "Cuases an arithmetic exception in the EKF",
"SMART_RTL_EnterLeave": "Causes a panic",
"SMART_RTL_Repeat": "Currently fails due to issue with loop detection",
}


Expand Down

0 comments on commit 5d1bb00

Please sign in to comment.