[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] [PPRZLINK] Code generation for receiving messages

From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] [PPRZLINK] Code generation for receiving messages
Date: Fri, 18 Mar 2016 10:11:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1


PPRZLINK is generating both sending and reading macros and functions.
The reading macros are at the end of the file and they have the form:


So once you have extracted the payload part of the message (PPRZ_DATA in, you give this buffer to the macro corresponding to the field you want to read and it returns the value with correct type.


Le 17/03/2016 23:45, cxiao a écrit :
Hi all,

We have been taking a look at the PPRZLINK library for generating C code to
read telemetry messages over a serial port, from our Lisa/MX to an onboard
single-board Linux computer. We've tried using the  python gen_messages tool
, but it seems to generate code for sending messages, rather than receiving
and parsing them.

In particular, we are looking for a code generation tool that will parse our
messages.xml file for the order of data fields and the size of each field in
a message type, then generate a function to read a particular message type.
Is this something that does (are we missing something)? Is
there another tool in PPRZLINK that can do this?


View this message in context:
Sent from the paparazzi-devel mailing list archive at

Paparazzi-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]