Skip to content

Commit

Permalink
Tools: autotest check-avoidance-corners disables proximity before RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Aug 28, 2024
1 parent 780721e commit 109d021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7331,7 +7331,6 @@ def check_avoidance_corners(self):
self.reach_heading_manual(225)
self.wait_location(west_loc, accuracy=6, timeout=200)
self.set_rc(2, 1500)
self.do_RTL()

def OBSTACLE_DISTANCE_3D_test_angle(self, angle):
now = self.get_sim_time_cached()
Expand Down Expand Up @@ -7421,6 +7420,8 @@ def AC_Avoidance_Proximity(self):
self.progress("Enabling proximity")
self.set_rc(10, 2000)
self.check_avoidance_corners()
self.set_rc(10, 1000)
self.do_RTL()

self.assert_current_onboard_log_contains_message("PRX")
self.assert_current_onboard_log_contains_message("PRXR")
Expand Down Expand Up @@ -7588,6 +7589,7 @@ def AC_Avoidance_Fence(self):
self.load_fence("copter-avoidance-fence.txt")
self.set_parameter("FENCE_ENABLE", 1)
self.check_avoidance_corners()
self.do_RTL()

def AvoidanceAltFence(self):
'''Test fence avoidance at minimum and maximum altitude'''
Expand Down

0 comments on commit 109d021

Please sign in to comment.