Browse Source

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.
zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
04aed49572
  1. 2
      Tools/autotest/arducopter.py

2
Tools/autotest/arducopter.py

@ -4731,7 +4731,7 @@ class AutoTestCopter(AutoTest): @@ -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…
Cancel
Save