autotest: fixed levelling for ACM with MAVLink 1.0

This commit is contained in:
Andrew Tridgell 2012-04-27 14:41:31 +10:00
parent 8134c9a883
commit 581e52f0d4
1 changed files with 2 additions and 3 deletions

View File

@ -21,9 +21,8 @@ def hover(mavproxy, mav):
def calibrate_level(mavproxy, mav):
'''init the accelerometers'''
print("Initialising accelerometers")
MAV_ACTION_CALIBRATE_ACC = 19
mav.mav.action_send(mav.target_system, mav.target_component, MAV_ACTION_CALIBRATE_ACC)
mavproxy.expect('APM: action received')
mav.calibrate_level()
mavproxy.expect(['APM: action received', 'COMMAND_ACK'])
return True
def arm_motors(mavproxy, mav):