Skip to content

Commit

Permalink
Tools: copter do-change-speed autotest checks takeoff
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Dec 5, 2023
1 parent 5718c49 commit fdb1c26
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
23 changes: 12 additions & 11 deletions Tools/autotest/ArduCopter_Tests/DO_CHANGE_SPEED/mission.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
QGC WPL 110
0 0 0 16 0.000000 0.000000 0.000000 0.000000 -35.363262 149.165237 584.090027 1
1 0 3 22 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 20.000000 1
2 0 3 16 0.000000 0.000000 0.000000 0.000000 -35.362656 149.165072 20.000000 1
3 0 0 178 1.000000 15.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1
4 0 3 16 0.000000 0.000000 0.000000 0.000000 -35.360174 149.167908 14.000000 1
5 0 0 178 1.000000 10.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1
6 0 3 16 0.000000 0.000000 0.000000 0.000000 -35.363296 149.169244 18.000000 1
7 0 0 178 1.000000 16.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1
8 0 3 16 0.000000 0.000000 0.000000 0.000000 -35.364115 149.165747 20.000000 1
9 0 0 20 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1
QGC WPL 110
0 1 0 16 0 0 0 0 -35.3632620 149.1652370 584.090000 1
1 0 3 22 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 20.000000 1
2 0 3 178 0.00000000 4.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
3 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -35.36265600 149.16507200 20.000000 1
4 0 0 178 1.00000000 15.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
5 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -35.36017400 149.16790800 14.000000 1
6 0 0 178 1.00000000 10.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
7 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -35.36329600 149.16924400 18.000000 1
8 0 0 178 1.00000000 16.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
9 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -35.36411500 149.16574700 20.000000 1
10 0 0 20 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
13 changes: 10 additions & 3 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9505,22 +9505,29 @@ def DO_CHANGE_SPEED(self):
self.wait_ready_to_arm()
self.arm_vehicle()

self.wait_current_waypoint(2)
self.wait_current_waypoint(1)
self.wait_groundspeed(
3.5, 4.5,
minimum_duration=5,
timeout=60,
)

self.wait_current_waypoint(3)
self.wait_groundspeed(
14.5, 15.5,
minimum_duration=10,
timeout=60,
)

self.wait_current_waypoint(4)
self.wait_current_waypoint(5)
self.wait_groundspeed(
9.5, 11.5,
minimum_duration=10,
timeout=60,
)

self.set_parameter("ANGLE_MAX", 6000)
self.wait_current_waypoint(6)
self.wait_current_waypoint(7)
self.wait_groundspeed(
15.5, 16.5,
minimum_duration=10,
Expand Down

0 comments on commit fdb1c26

Please sign in to comment.