Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VER messages should not be affected by --condition nor --reduction #910

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/mavlogdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def reduce_rate_msg(m, reduction_rate):
'''return True if this msg should be discarded by reduction'''
global last_msg_rate_t
mtype = m.get_type()
if mtype in ['PARM','MSG','FMT','FMTU','MULT','MODE','EVT','UNIT']:
if mtype in ['PARM','MSG','FMT','FMTU','MULT','MODE','EVT','UNIT', 'VER']:
return False
t = getattr(m,'_timestamp',None)
if t is None:
Expand Down Expand Up @@ -258,7 +258,7 @@ def match_type(mtype, patterns):
continue

if not mavutil.evaluate_condition(args.condition, mlog.messages) and (
not (m_type in ['FMT', 'FMTU', 'MULT', 'PARM', 'MODE', 'UNIT'] and args.meta)):
not (m_type in ['FMT', 'FMTU', 'MULT', 'PARM', 'MODE', 'UNIT', 'VER'] and args.meta)):
continue
if args.source_system is not None and args.source_system != m.get_srcSystem():
continue
Expand Down
Loading