autotest: remove old apm_unit_tests

This commit is contained in:
Pierre Kancir 2016-07-31 12:31:19 +02:00 committed by Peter Barker
parent 9e1ffcae5d
commit 59ecccd4aa
7 changed files with 0 additions and 84 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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