mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
autotest: fixed levelling for ACM with MAVLink 1.0
This commit is contained in:
parent
8134c9a883
commit
581e52f0d4
@ -21,9 +21,8 @@ def hover(mavproxy, mav):
|
|||||||
def calibrate_level(mavproxy, mav):
|
def calibrate_level(mavproxy, mav):
|
||||||
'''init the accelerometers'''
|
'''init the accelerometers'''
|
||||||
print("Initialising accelerometers")
|
print("Initialising accelerometers")
|
||||||
MAV_ACTION_CALIBRATE_ACC = 19
|
mav.calibrate_level()
|
||||||
mav.mav.action_send(mav.target_system, mav.target_component, MAV_ACTION_CALIBRATE_ACC)
|
mavproxy.expect(['APM: action received', 'COMMAND_ACK'])
|
||||||
mavproxy.expect('APM: action received')
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def arm_motors(mavproxy, mav):
|
def arm_motors(mavproxy, mav):
|
||||||
|
Loading…
Reference in New Issue
Block a user