Browse Source

autotest: correct rc-values-good debug

c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
dfa342a79f
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -3474,12 +3474,12 @@ class AutoTest(ABC): @@ -3474,12 +3474,12 @@ class AutoTest(ABC):
continue
bad_channels = ""
for chan in map_copy:
self.progress("RC values good")
chan_pwm = getattr(m, "chan" + str(chan) + "_raw")
if chan_pwm != map_copy[chan]:
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")
break
self.progress("RC values bad:%s" % bad_channels)
if not self.rc_thread.is_alive():

Loading…
Cancel
Save