Skip to content

Commit

Permalink
Tools: update autotest with new features
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Feb 10, 2025
1 parent 346bcdb commit 624b9ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
QGC WPL 110
0 0 0 16 0.000000 0.000000 0.000000 0.000000 -35.363262 149.165238 584.089966 1
1 0 3 22 15.000000 0.000000 0.000000 0.000000 0.000000 0.000000 100.000000 1
2 0 10 19 20.000000 0.000000 1.000000 0.000000 -35.342005 149.100266 100.000000 1
11 changes: 9 additions & 2 deletions Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -4243,13 +4243,20 @@ def AutoLandMode(self):
'''Test AUTOLAND mode'''
self.set_parameters({
"AUTOLAND_DIR_OFF": 45,
"TERRAIN_FOLLOW": 1,
"AUTOLAND_CLIMB": 300,
})
self.customise_SITL_commandline(["--home", "-35.362938,149.165085,585,173"])
self.context_collect('STATUSTEXT')
self.takeoff(alt=80, mode='TAKEOFF')
self.load_mission("autoland_mission.txt")
self.install_terrain_handlers_context()
self.change_mode("AUTO")
self.wait_ready_to_arm()
self.arm_vehicle()
self.wait_text("Autoland direction", check_context=True)
self.wait_waypoint(2, 2, max_dist=100)
self.change_mode(26)
self.wait_disarmed(120)
self.wait_disarmed(400)
self.progress("Check the landed heading matches takeoff plus offset")
self.wait_heading(218, accuracy=5, timeout=1)
loc = mavutil.location(-35.362938, 149.165085, 585, 218)
Expand Down
4 changes: 4 additions & 0 deletions autoland_mission.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
QGC WPL 110
0 0 0 16 0.000000 0.000000 0.000000 0.000000 -35.363262 149.165238 584.089966 1
1 0 3 22 15.000000 0.000000 0.000000 0.000000 0.000000 0.000000 100.000000 1
2 0 10 19 20.000000 0.000000 1.000000 0.000000 -35.342005 149.100266 100.000000 1

0 comments on commit 624b9ae

Please sign in to comment.