User messages
From Paparazzi
This draft describes how to insert new messages in the conf/messages.xml file.
The basic idea here is to write new messages into a user file (user_messages.xml) and keep the standard messages into a system file (paparazzi_messages.xml), and merge them into messages.xml.
Installation
- First of all, we copy the content of the messages.xml into paparazzi_messages.xml
cd conf cp messages.xml paparazzi_messages.xml
- We download and build the merge_messages software into the sw/tools directory:
cd ../sw/tools wget http://www.recherche.enac.fr/~gph/planning/merge_messages.ml wget http://www.recherche.enac.fr/~gph/planning/merge_messages.patch patch -p0 < merge_messages.patch make merge_messages.out
Usage
- We write into the file conf/user_messages.xml the new messages respecting to the messages.dtd, except for the ID (which will be rewritten). You can find such an example here
- The merge_messages.out regenerates all messages with valid ID, and print the XML output on the stdout.
sw/tools/merge_messages > conf/messages.xml

