mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
autotest: remove old apm_unit_tests
This commit is contained in:
parent
9e1ffcae5d
commit
59ecccd4aa
@ -1,13 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.takeoff(mavproxy,mav, alt_min=30, takeoff_throttle=1510) and
|
|
||||||
arducopter.hover(mavproxy,mav, hover_throttle=1300) and
|
|
||||||
arducopter.loiter(mavproxy, mav, holdtime=45, maxaltchange=20)): # 45 second loiter
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.takeoff(mavproxy,mav, alt_min=80, takeoff_throttle=1510) and
|
|
||||||
arducopter.hover(mavproxy,mav, hover_throttle=1300) and
|
|
||||||
arducopter.fly_RTL(mavproxy, mav, side=80, timeout=80)):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.takeoff(mavproxy,mav, alt_min=30, takeoff_throttle=1510) and
|
|
||||||
arducopter.change_alt(mavproxy, mav, alt_min=60) and
|
|
||||||
arducopter.change_alt(mavproxy, mav, alt_min=20)
|
|
||||||
):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.takeoff(mavproxy,mav, alt_min=80, takeoff_throttle=1510) and
|
|
||||||
arducopter.hover(mavproxy,mav, hover_throttle=1300) and
|
|
||||||
arducopter.fly_failsafe(mavproxy, mav, side=80, timeout=120)
|
|
||||||
):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (arducopter.calibrate_level(mavproxy, mav)):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.disarm_motors(mavproxy,mav)):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
import arducopter
|
|
||||||
|
|
||||||
def unit_test(mavproxy, mav):
|
|
||||||
'''A scripted flight plan'''
|
|
||||||
if (
|
|
||||||
arducopter.calibrate_level(mavproxy, mav) and
|
|
||||||
arducopter.arm_motors(mavproxy, mav) and
|
|
||||||
arducopter.takeoff(mavproxy,mav, alt_min=30, takeoff_throttle=1510)):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user