Send APM2 status data using MavLink + Serial

I'm currently working on a project where I need an APM2 to send its status data (RC inputs, attitude & IMU data, etc) to a beaglebone over serial connection. My question is, how do I get the APM to send that data over mavlink, and then have the beaglebone use mavlink to decode that data? I know how to set up serial communication with the beaglebone, my problem is just decoding the mavlink messages. 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    You use the request data stream message to control update messages. Search for MAVLink in Google. On the site they have examples of how to integrate using the generated headers. If you want to be in sync with ardupilot you can copy the headers from GCS_mavlink directory for ardupilot.
    • There isn't a command that will easily decode the messages into human readable text? I am already receiving the messages, but they are gibberish until they are decoded. I was thinking there might be a function where you give it the encoded text and it returns the unpacked text which can then be manipulated. 

This reply was deleted.

Activity