diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 6bd736a1db26c9..1555507b507241 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -6119,8 +6119,11 @@ def DynamicRpmNotches(self): esc_hz = self.get_average_esc_frequency() esc_peakdb1 = psd["X"][int(esc_hz)] - # now add notch-per motor and check that the peak is squashed - self.set_parameter("INS_HNTCH_OPTS", 2) + # now add notch-per motor at f/4 and check that the peak is squashed + self.set_parameters({ + "INS_HNTCH_OPTS": 2, + "INS_HNTCH_BW": 20, + }) self.reboot_sitl() freq, hover_throttle, peakdb2, psd = \ @@ -6147,6 +6150,8 @@ def DynamicRpmNotches(self): try: self.progress("Flying Octacopter with ESC telemetry driven dynamic notches") self.set_parameter("INS_HNTCH_OPTS", 0) + self.set_parameter("INS_HNTCH_BW", 40) + self.customise_SITL_commandline( [], defaults_filepath=','.join(self.model_defaults_filepath("octa")), @@ -6159,8 +6164,11 @@ def DynamicRpmNotches(self): esc_peakdb1 = psd["X"][int(esc_hz)] # now add notch-per motor and check that the peak is squashed - self.set_parameter("INS_HNTCH_HMNCS", 1) - self.set_parameter("INS_HNTCH_OPTS", 2) + self.set_parameters({ + "INS_HNTCH_OPTS": 2, + "INS_HNTCH_BW": 20, + "INS_HNTCH_HMNCS": 1 + }) self.reboot_sitl() freq, hover_throttle, peakdb2, psd = \