autotest: timesync roundtrip after setting parameter

may fix flapping test
This commit is contained in:
Peter Barker 2023-06-03 11:58:39 +10:00 committed by Peter Barker
parent 146cc3312c
commit de61384fa5
1 changed files with 1 additions and 0 deletions

View File

@ -13206,6 +13206,7 @@ switch value'''
(msg, m.alt, gpi_alt))
introduced_error = 10 # in metres
self.set_parameter("SIM_GPS2_ALT_OFS", introduced_error)
self.do_timesync_roundtrip()
m = self.assert_receive_message("GPS2_RAW")
if abs((m.alt-introduced_error*1000) - gpi_alt) > 100:
raise NotAchievedException("skewed Alt (%s) discrepancy; %d+%d vs %d" %