Tools: DynamicRpmNotches is mostly within 5% but 10% prevents the test from flapping as much

This commit is contained in:
David Buzz 2024-01-06 13:56:46 +10:00 committed by Andrew Tridgell
parent b03728853e
commit 977b5dfe33

View File

@ -5928,8 +5928,8 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
freq, hover_throttle, peakdb2 = self.hover_and_check_matched_frequency_with_fft(-15, 20, 350, reverse=True)
# notch-per-motor should do better, but check for within 5%
if peakdb2 * 1.05 > peakdb1:
# notch-per-motor should do better, but check for within 10%. ( its mostly within 5%, but does vary a bit)
if peakdb2 * 1.10 > peakdb1:
raise NotAchievedException(
"Notch-per-motor peak was higher than single-notch peak %fdB > %fdB" %
(peakdb2, peakdb1))