I was unsure of the correct forum to post this discussion and I figured unassigned fit the bill, please let me know if I should move this.
Recently I have been working on a school project to control the APM from a second arduino board. I have begun looking at the mavlink library as I plan to read mavlink packets from the telemetry port, and place my own packets on the telemetry port as though a radio were receiving data from the ground station. To begin I decided I would follow the tutorial posted here: http://qgroundcontrol.org/dev/mavlink_arduino_integration_tutorial on basic arduino/mavlink interaction. Unfortunetely I was unable to get very far as the provided source for receiving packets doesn't seem to work for me. Has anyone been able to get this example, or a similar basic example working?
my problem seems to be including the mavlink library itself. When I use #include <mavlink.h> or #include "../mavlink/include/mavlink.h" (which points to my libraries folder in my sketchbook) the file isn't found or included. However I've noticed that if I add another include such as "#include <FastSerial.h>" then mavlink.h file is suddenly found but I receive other issues about overriden functions in the FastSerial library.
All that I really want to do is be able to read Mavlink packets from the telemetry port and get data from them such as current gps position and roll/pitch/yaw, so basically the data which would be available in the mission planner software if using telemetry radios. If anyone has been able to do something similar and have any suggestions, or tips on getting this working then please let me know.