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

DFReader: Read unit data from log and add dump_verbose function to DFMessage #911

Merged
merged 1 commit into from
Jan 27, 2024

Commits on Jan 26, 2024

  1. DFReader: Read unit data from log and add dump_verbose function to DF…

    …Message
    
    Cache units and multipliers in lookup tables when first scanning the file
    Handles both DFBinary and DFText files
    Store derived unit for each field as DFFormat class attribute
    Create get_unit method on DFFormat to return unit if defined or empty string
    
    Create dump_verbose function on DFMessage class, which outputs both value and
    unit for each field
    Also show the deg or deg/s value for rad or rad/s fields
    
    Separate code to detect quiet nan into a utility function, so it can be used
    by both __str__ and dump_verbose
    
    Improve display precision of values with a format multiplier, e.g.:
    (401952592*1e-7 => 40.195259199999995 vs 401952592/1e7 => 40.1952592)
    
    mavlogdump.py updated to call the dump_verbose method when --verbose specified
    Use hasattr to check method exists, in case of misaligned files
    shancock884 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    6618cf1 View commit details
    Browse the repository at this point in the history