Commit Graph

8 Commits

Author SHA1 Message Date
Simon Hancock c0a503d74d autotest: Provide format and unit/multiplier info for log messages
Definitions of each character are extracted from LogStructure.h
Data is extracted by parsing the logging definition struct
Also parse WriteMessage() calls for messages not defined in struct
Add support to separate log descriptions for messages with same field list
Compute derived unit from combination of format, unit and multiplier
For XML output the format and derived unit into new attributes
Add enumerations to the XML output (bitmasks were already done)
For MD,RST,HTML, output either derived unit, 'char[n]', 'bitmask' or 'enum'
Fix support for Blimp by adding it to the parse_enum.py lookup table
2024-01-16 11:24:34 +11:00
Iampete1 82bcaae9ad Tools: autotest: logger_metadara: parse `@FieldBits` to new bitmask format and ouput bitmask in xml 2023-02-06 23:44:21 +00:00
Peter Barker 3708ed7a45 Tools: add script to extract enumeration as metadata 2023-01-25 19:50:34 +11:00
Pierre Kancir 4b67ed808f Tools: logger_metadata: remove useless shebang 2022-06-08 08:16:42 +09:00
Peter Barker 18ded114ae Tools: param_metadata; stop prettifying XML before emitting
indent is not available on our documentation server:

[build_parameters.py]
Traceback (most recent call last):
  File "./param_parse.py", line 422, in <module>
    do_emit(XmlEmit())
  File "./param_parse.py", line 415, in do_emit
    emit.close()
  File "/home/wiki/build_wiki/ardupilot/Tools/autotest/param_metadata/xmlemit.py
", line 24, in close
    etree.indent(self.paramfile)
AttributeError: module 'lxml.etree' has no attribute 'indent'
2021-04-02 14:39:39 +11:00
Pierre Kancir 69fab70582 Tools: use lxml for xml generation
fix caracters
fix indentation
validate xml
2020-12-30 18:19:43 +11:00
Peter Barker e671a0912e autotest: logger_metadata: understand , in @LoggerMessage
This means multiple messages use exactly the same meaning in the fields

Also retain ordering of fields
2020-03-21 09:34:43 +11:00
Peter Barker 60ff6c0b24 autotest: add parser for the logger metadata 2020-03-20 13:05:46 +11:00