mirror of https://github.com/ArduPilot/ardupilot
12 lines
313 B
Python
12 lines
313 B
Python
|
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
|
||
|
|