![]() ![]() The path here assumes you are building the code from the example directory, and that have installed the headers in mavlink/include. The MAVLink header directory must be added to the include path. /include/common -o mavlink_udp mavlink_udp.c Open a terminal and navigate to examples/linuxĬompile with GCC using the following command: gcc -std=c99 -I. You can put/generate the library wherever you like, but the build command below assumes they are located in directory named include below the MAVLink root directory. We recommend that you use MAVLink 1.0 headers as some ground control software may not yet support MAVLink 2.0. Install MAVLink and generate the MAVLink 1.0 libraries into the mavlink/include directory.Īlternatively you can clone the mavlink/mavlink repository and Download prebuilt headers to the same location. ![]() ![]() The following instructions show how to build and run the example. These instructions were tested on a clean Ubuntu LTS 16.04 installation using the default version of gcc (5.4.0). The example should work on any Unix-like system (Linux, MacOS, BSD, etc.). QGroundControl responds with heartbeats and other messages, which are then printed by this program. The MAVLink UDP Example is a simple C example that sends some data to QGroundControl using MAVLink over UDP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |