Tools: autotest: fix for Plane receiver health test

Won't be healthy until SITL is repolled for RC input
This commit is contained in:
Peter Barker 2019-09-17 11:46:47 +10:00 committed by Peter Barker
parent cba03da59a
commit 8736a13a87
1 changed files with 2 additions and 0 deletions

View File

@ -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)):