mirror of https://github.com/ArduPilot/ardupilot
autotest: augment blended test to ensure three GPSs seen
This commit is contained in:
parent
612e73b9d7
commit
9941313a9d
|
@ -9111,8 +9111,6 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
||||||
'''Test GPS Blending'''
|
'''Test GPS Blending'''
|
||||||
'''ensure we get dataflash log messages for blended instance'''
|
'''ensure we get dataflash log messages for blended instance'''
|
||||||
|
|
||||||
self.context_push()
|
|
||||||
|
|
||||||
# configure:
|
# configure:
|
||||||
self.set_parameters({
|
self.set_parameters({
|
||||||
"WP_YAW_BEHAVIOR": 0, # do not yaw
|
"WP_YAW_BEHAVIOR": 0, # do not yaw
|
||||||
|
@ -9165,8 +9163,8 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
||||||
raise NotAchievedException("Blended diverged")
|
raise NotAchievedException("Blended diverged")
|
||||||
current_ts = None
|
current_ts = None
|
||||||
|
|
||||||
self.context_pop()
|
if len(measurements) != 3:
|
||||||
self.reboot_sitl()
|
raise NotAchievedException("Did not see three GPS measurements!")
|
||||||
|
|
||||||
def GPSWeightedBlending(self):
|
def GPSWeightedBlending(self):
|
||||||
'''Test GPS Weighted Blending'''
|
'''Test GPS Weighted Blending'''
|
||||||
|
|
Loading…
Reference in New Issue