A question about the usage of mavlogdump.py

Hi ,wo found a question about the usage of mavlogdump.py

in this page
https://www.ardusub.com/operators-manual/logging.html

i kown mavlogdump.py have these options

usage: mavlogdump.py [-h] [--no-timestamps] [--planner] [--robust] [-f]
                     [--condition CONDITION] [-q] [-o OUTPUT] [-p]
                     [--format FORMAT] [--csv_sep CSV_SEP] [--types TYPES]
                     [--nottypes NOTTYPES] [--dialect DIALECT]
                     [--zero-time-base] [--no-bad-data] [--show-source]
                     [--show-seq] [--source-system SOURCE_SYSTEM]
                     [--source-component SOURCE_COMPONENT] [--link LINK]
                     LOG

I noticed the option

  -f, --follow          keep waiting for more data at end of file

I think the option can be used to watch the log in real-time; So i tried this command

mavlogdump.py -f mav.tlog

but,the result was the same like mavlogdump.py -f mav.tlog

so i don’t konw what’s wrong with the option “- f” ??

Hi,

--follow is not working with tlog files.
You can check the status of this issue here:
https://github.com/ArduPilot/pymavlink/pull/255

There is a fix already waiting to be merged:
https://github.com/ArduPilot/pymavlink/pull/256

You can add this fix in your installation or you can wait to be merged.

@Jacklee The problem was fixed, please update your pymavlink installation.

1 Like