-
Notifications
You must be signed in to change notification settings - Fork 702
Open
Description
When trying to reduce the size of a log like this:
mavlogdump.py --reduce-rate 10 INPUT.tlog --output OUTPUT.tlog --quiet --parmsI lose the parameter messages, as verified by
mavlogdump.py --types PARAM_VALUE INPUT.tlog # as expected
# versus
mavlogdump.py --types PARAM_VALUE OUTPUT.tlog # no outputI assume this doesn't happen with DataFlash logs, because of these lines:
Lines 132 to 136 in 2d2d811
| def reduce_rate_msg(m, reduction_rate): | |
| '''return True if this msg should be discarded by reduction''' | |
| mtype = m.get_type() | |
| if mtype in ['PARM','MSG','FMT','FMTU','MULT','MODE','EVT','UNIT', 'VER']: | |
| return False |
I have fixed it locally by adding PARAM_VALUE to the list in line 135. I would be happy to contribute a fix, but since we're here I'd like to ensure that feature parity is the desired behaviour and make it complete for all Dataflash types currently in this list:
PARM:PARAM_VALUEMSG: ¿STATUSTEXT?FMT: N/AFMTU: N/AMULT: N/AMODE:HEARTBEATdue tocustom_modefieldEVT: unsure, I guess it would be mostly covered bySTATUSTEXTUNIT: N/AVER: ¿AUTOPILOT_VERSION?
N/A: mavlink (thus tlog) has messages with fields and units fully defined by dialect XML files, unlike self-describing dataflash logs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels