From 1687c5a3b969cffa9297c434788c2ec692597c02 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 16 Dec 2024 16:47:02 +1100 Subject: [PATCH] autotest: add option to quieten set_rc_from_map --- Tools/autotest/vehicle_test_suite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 978483c70e20c..df449a26c5fe9 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -5618,7 +5618,7 @@ def rc_defaults(self): 16: 1500, } - def set_rc_from_map(self, _map, timeout=20): + def set_rc_from_map(self, _map, timeout=20, quiet=False): map_copy = _map.copy() for v in map_copy.values(): if not isinstance(v, int): @@ -5645,7 +5645,8 @@ def set_rc_from_map(self, _map, timeout=20): bad_channels += " (ch=%u want=%u got=%u)" % (chan, map_copy[chan], chan_pwm) break if len(bad_channels) == 0: - self.progress("RC values good") + if not quiet: + self.progress("RC values good") break self.progress("RC values bad:%s" % bad_channels) if not self.rc_thread.is_alive():