autotest: fixed accel/gyro threshold consistency for tempcal

This commit is contained in:
Andrew Tridgell 2021-01-20 16:35:10 +11:00 committed by Peter Barker
parent fe7d933976
commit 3add045924
1 changed files with 3 additions and 5 deletions

View File

@ -1985,8 +1985,6 @@ class AutoTestPlane(AutoTest):
self.assert_reach_imu_temperature(43, timeout=600)
self.progress("Testing with compensation enabled")
gyro_threshold = 0.2
accel_threshold = 0.05
test_temperatures = range(10,45,5)
corrected = {}
@ -2015,6 +2013,9 @@ class AutoTestPlane(AutoTest):
self.set_parameter("INS_TCAL1_ENABLE", 0)
self.set_parameter("INS_TCAL2_ENABLE", 0)
gyro_threshold = 0.2
accel_threshold = 0.2
for temp in test_temperatures:
self.progress("Testing temperature %.1f" % temp)
self.set_parameter("SIM_IMUT_FIXED", temp)
@ -2026,9 +2027,6 @@ class AutoTestPlane(AutoTest):
raise NotAchievedException(msg)
temperature = m.temperature*0.01
gyro_threshold = 1.0
accel_threshold = 0.5
if abs(temperature - temp) > 0.2:
raise NotAchievedException("incorrect %s temperature %.1f should be %.1f" % (msg, temperature, temp))