mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Tools: DynamicRpmNotches is mostly within 5% but 10% prevents the test from flapping as much
This commit is contained in:
parent
b03728853e
commit
977b5dfe33
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user