Displaying new messages on Mission Planner

Hi, 

I'm currently working on trying to display a new message to Mission Planner from the APM code. Is there a guide on how to do this? I looked online and couldn't find one, and I tried parsing through the Mission Planner code but couldn't find where new messages in the "Status" section were being displayed. 

Thanks

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    You might want to try reading the wiki

    http://dev.ardupilot.com/wiki/apmcopter-code-overview/code-overview...

    there is a wealth of information available 

    • Thanks, I've tried but have had trouble getting my message to send, particularly on step 5 of the guide. My understanding of the "hierarchy" of the code to send a message is this: to send a message, we use the send_message function, which in turn calls the try_send_message function, which has a bunch of switch-case statements, and within each of those statements is (usually) to send a specific kind of data. So, for example, sending pressure uses the send_scaled_pressure function. My job, then, (if I'm understanding this correctly) is to add the new case statement and add a new function to send that message. My questions are as follows:

      1. How do I know this is displayed on Mission Planner? I.e. how is this necessarily printed on the "Status" screen? It doesn't seem like using the GCS_MavLink protocol ensures that the message is then communicated to Mission Planner, and I can't find where in the Mission Planner code they get the MavLink messages from (granted, I'm having trouble with the Mission Planner code as is).

      2. What's the point of  the gcs_send_heartbeat or gcs_data_stream_send functions? We already have send_heartbeat and data_stream_send functions, so I don't understand what those do.

      I'm new with this code, so forgive me if my questions were answered elsewhere. I've looked through that guide and the Mavlink Guide for Dummies, as well as a few forum posts, extensively and have yet to find satisfactory answers. 

This reply was deleted.

Activity