Sample of MAVlink using c on Linux
==================================

=======
Purpose
=======

mavlink_binary.c is a sample code implementing MAVlink using c. It shows in a simple manner, how a MAVlink message is packed and decoded again. The processing sequence is the following:

 1. pack attitude message
 2. save binary to a file
 3. read binary from the same file
 4. decode attitude message 

Instead of saving the serialized binary to a file, it could also be sent serially over an I/O (websocket, serial port, ...).

============
Compile Code
============

Mind, that before executing the following commands it is assumed, that the setup.py script in the parent directory has been performed successfully. Note the readme.rst file in the parent directory.

To create the mavlink headers do

::
   
   make headers


Finally the code can be compiled by

::

   make binary

