HI I want to control a QUAD using and ODROID XU3 (running UBUNTU 14.04) and a PIXHAWK (Arducopter), for this I read that using MAVLINK is the way to communicate to the pixhawk from the ODROID I followed the tutorial http://dev.ardupilot.com/wiki/companion-computers/raspberry-pi-via-... but I dont wanna use MAVPROXY or DRONEKIT since both are written on python and I want to use C++ for my code. Then I went to the Mavlink page and followed the mavlink onboard integration tutorial http://qgroundcontrol.org/dev/mavlink_onboard_integration_tutorial and generated the headers for the pixhawk using mavgenerate.py and selected the C option.

What I would like to know is how to include this headers into and IDE preferably Eclipse or in the other hand use gcc compiler from Ubuntu and specify this headers


Views: 1183

Replies to This Discussion

I'm using an Intel Edison interfaced to a PIXHAWK and writing code in C using the Eclipse IDE. I simply copied the mavlink directory to my source directory and included the appropriate files. In my case, the include line looked like:

#include "mavlink/ardupilotmega/mavlink.h"

I did not need to inform Eclipse that the mavlink directory was part of the project. Since the files are just include files, you don't need a build step to "process" them. Simply include them in your C code and you should be good to go.


I suggest www.4gmetry.com S-Video. :D You get all the necessary plug and play, at a modest extra cost repect to buying spare components.


© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service