mirror of https://github.com/ArduPilot/ardupilot
Tools: autotest: fix for Plane receiver health test
Won't be healthy until SITL is repolled for RC input
This commit is contained in:
parent
59de79b0c0
commit
678a966d4c
|
@ -814,6 +814,8 @@ class AutoTestPlane(AutoTest):
|
|||
# raise NotAchievedException("Sensor healthy when it shouldn't be")
|
||||
self.set_parameter("SIM_RC_FAIL", 0)
|
||||
self.drain_mav_unparsed()
|
||||
# have to allow time for RC to be fetched from SITL
|
||||
self.delay_sim_time(0.5)
|
||||
m = self.mav.recv_match(type='SYS_STATUS', blocking=True)
|
||||
self.progress("Testing receiver enabled")
|
||||
if (not (m.onboard_control_sensors_enabled & receiver_bit)):
|
||||
|
|
Loading…
Reference in New Issue