mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
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:
parent
0a235ce094
commit
04aed49572
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user