Skip to content

Commit

Permalink
autotest: add option to quieten set_rc_from_map
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Dec 27, 2024
1 parent cc327cd commit 3fa69ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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():
Expand Down

0 comments on commit 3fa69ef

Please sign in to comment.