autotest: adjust GyroFFT threshold to make it pass

From Andy:

Can you make this 0. The test should then pass. I'm not terribly happy about it but its better than disabling the test and I can't tell whether there is actually a problem or not.
This commit is contained in:
Peter Barker 2021-05-07 09:05:01 +10:00 committed by Peter Barker
parent 0a235ce094
commit 04aed49572

View File

@ -4731,7 +4731,7 @@ class AutoTestCopter(AutoTest):
smaxhz = int(350 * scale)
freq = psd["F"][numpy.argmax(psd["X"][sminhz:smaxhz]) + sminhz]
peakdb = numpy.amax(psd["X"][sminhz:smaxhz])
if peakdb < -9:
if peakdb < 0:
self.progress("Did not detect a motor peak, found %fHz at %fdB" % (freq, peakdb))
else:
raise NotAchievedException("Detected %fHz motor peak at %fdB" % (freq, peakdb))