-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
35bc0c1
commit e39879a
Showing
2 changed files
with
177 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters