Replay: allow for early log end in check_replay.py

when session is killed we can lose one frame worth of EKF msgs
This commit is contained in:
Andrew Tridgell 2020-11-07 09:29:08 +11:00
parent 4cd5ac5164
commit 614a77d2c9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def check_log(logfile):
if args.verbose:
for mtype in counts.keys():
print("%s %u/%u %d" % (mtype, counts[mtype], base_counts[mtype], base_counts[mtype]-counts[mtype]))
if count == 0 or count != base_count:
if count == 0 or abs(count - base_count) > 30:
failure += 1
for filename in args.logs: