real time export telemetry data from Mission Planner

Hi,

 I need to be able to receive telemetry data (just GPS coordinates and a few others) in real time via Mission Planner and pass to another application I am currently working on,

does anyone have any tips as to how I would do this? Is it possible in Mission Planner? 

Would I have to write something to connect directly to the USB port and decode the mavlink stream?

Many Thanks,

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

Join diydrones

Email me when people reply –

Replies

    • Developer

      depending on what you want

      you could just use http gets

      from this url

      http://127.0.0.1:56781/mavlink/

      when mp is running.

      or you could use the microdrone output format, using control-f > microdrone.

      which is a clear text format

      • I've got this working using MicroDrone Output, but the format for the GPS is in ECEF.  And this is alright since I've got the code to convert it to LLA from here:

        http://stackoverflow.com/questions/18253546/ecef-to-lla-lat-lon-alt...

        However, I'm getting perfect Latitude and Longitude, but the Altitude is coming out -9400.  I thought this was a problem with the code, but I verified it with 3 different online calculators and it is correct for the ECEF data that I am receiving from Mission Planner.  So what does -9400 meters for Altitude refer to?  I'm looking for the height from the ground.  Since I already have the code for Mission Planner compiled, could you point me to the file where you do the conversions from raw data to the GUI?  That way I can see what I'm missing here. 

        Thanks.

  • Developer

    in MP, press control-f > then mavlink.

     

    this will passthrough all raw traffic

    • detail process?

This reply was deleted.

Activity