mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Tools: autotest: add test for flying spline waypoints
This commit is contained in:
parent
5e69758661
commit
18ed422a97
@ -3301,6 +3301,21 @@ class AutoTestHeli(AutoTestCopter):
|
||||
if ex is not None:
|
||||
raise ex
|
||||
|
||||
def fly_spline_waypoint(self):
|
||||
"""ensure basic spline functionality works"""
|
||||
self.load_mission("copter_spline_mission.txt")
|
||||
self.change_mode("LOITER")
|
||||
self.wait_ready_to_arm()
|
||||
self.progress("Raising rotor speed")
|
||||
self.set_rc(8, 2000)
|
||||
self.arm_vehicle()
|
||||
self.wait_seconds(20)
|
||||
self.change_mode("AUTO")
|
||||
self.set_rc(3, 1500)
|
||||
self.mav.motors_disarmed_wait()
|
||||
self.progress("Lowering rotor speed")
|
||||
self.set_rc(8, 1000)
|
||||
|
||||
def set_rc_default(self):
|
||||
super(AutoTestCopter, self).set_rc_default()
|
||||
self.progress("Lowering rotor speed")
|
||||
@ -3316,6 +3331,10 @@ class AutoTestHeli(AutoTestCopter):
|
||||
"Fly POSHOLD takeoff",
|
||||
self.fly_heli_poshold_takeoff),
|
||||
|
||||
("SplineWaypoint",
|
||||
"Fly Spline Waypoints",
|
||||
self.fly_spline_waypoint),
|
||||
|
||||
("LogDownLoad",
|
||||
"Log download",
|
||||
lambda: self.log_download(
|
||||
|
Loading…
Reference in New Issue
Block a user