mirror of
https://github.com/AdaCore/OpenUxAS.git
synced 2026-02-12 13:07:16 -08:00
1.1 KiB
1.1 KiB
How to add a new message
Each message used by UxAS must be defined in an XML document (MDM). MDMs for all relevant messages are then used
by LmcpGen to create a C++ library that allows easy access to the data fields of each message. As new functionality
often depends on new information in the system, the ability to quickly update the message set and corresponding C++
libary is crucial to exanding UxAS capability. The following is a set of steps for adding a new message to UxAS:
- Copy an exisiting MDM file
- Rename MDM file to a unique 8 character string (e.g. NEWMDM.xml)
- Update the top-level comment to describe your new set of messages
- Change the
SeriesNameto the same name as the file (e.g.<SeriesName>NEWMDM</SeriesName>) - Change the namespace to reflect your new MDM (e.g.
<Namespace>uxas/projects/newmdm</Namespace>) - Change the version number to 1 (e.g.
<Version>1</Version>) - Remove all copied messages from between the
<StructList>tags - Add new messages following Section 8 of
src/doc/lmcp.htmlin theLmcpGenproject - In the root of
OpenUxAS, run the scriptRunLmcpGen.sh - Rebuild (e.g.
ninja -C build uxas)