mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: adjust for arming change in plane
expect disarm to fail when airmode on
This commit is contained in:
parent
0f3e33e766
commit
912df2992f
@ -248,13 +248,25 @@ class AutoTestQuadPlane(AutoTest):
|
|||||||
self.progress("Waiting for Motor1 to speed up")
|
self.progress("Waiting for Motor1 to speed up")
|
||||||
self.wait_servo_channel_value(5, spin_min_pwm, comparator=operator.ge)
|
self.wait_servo_channel_value(5, spin_min_pwm, comparator=operator.ge)
|
||||||
|
|
||||||
self.progress("Disarm/rearm with GCS")
|
self.progress("Disarm/rearm with GCS - expect to fail")
|
||||||
self.disarm_vehicle()
|
self.run_cmd(mavutil.mavlink.MAV_CMD_COMPONENT_ARM_DISARM,
|
||||||
|
0, # DISARM
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
timeout=10,
|
||||||
|
want_result=mavutil.mavlink.MAV_RESULT_FAILED)
|
||||||
|
|
||||||
|
self.progress("Disarm/rearm with GCS - forced")
|
||||||
|
self.disarm_vehicle(force=True)
|
||||||
self.arm_vehicle()
|
self.arm_vehicle()
|
||||||
|
|
||||||
self.progress("Verify that airmode is still on")
|
self.progress("Verify that airmode is still on")
|
||||||
self.wait_servo_channel_value(5, spin_min_pwm, comparator=operator.ge)
|
self.wait_servo_channel_value(5, spin_min_pwm, comparator=operator.ge)
|
||||||
self.disarm_vehicle()
|
self.disarm_vehicle(force=True)
|
||||||
self.wait_ready_to_arm()
|
self.wait_ready_to_arm()
|
||||||
|
|
||||||
def test_motor_mask(self):
|
def test_motor_mask(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user