LogAnalyser: TestBalanceTwist sanity check of motor values

This commit is contained in:
Randy Mackay 2014-10-27 13:50:31 +09:00
parent a62f1f0f48
commit 98e9ce3206
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class TestBalanceTwist(Test):
ch = zip(*ch)
num_channels = 0
for i in range(len(ch)):
ch[i] = filter(lambda x: x != 0, ch[i])
ch[i] = filter(lambda x: (x>0 and x<3000), ch[i])
if num_channels < len(ch[i]):
num_channels = len(ch[i])