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

  • i have the same question, thanks

  • Developer
    divide by 1e7 to get the number in lla
    ie -68905466 / 1e7
  • I've tried opening the link, and when I saw this line on my PC:

    {"time_usec":8363201000,"lat":-68905466,"lon":1076103660,"alt":772500,......

    what do those numbers mean? Because when I tried to convert it as ECEF to LLA, it doesn't show correct location information...

    Can I get the lla (lat, lon, and alt) raw data from mission planner? Like the one shown on the HUD user items  

    Thanks.

    Michael Oborne said:

    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

    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 applic…
  • Did you have resolved this problem? could you tele me your method?my email is:maxweiqiang@sina.com

    thanks you very much.

  • Hi,

    Please let me know that are you able to extract GPS coordinates in real time via Mission Planner?

    I am having the exact same requirement for my current Project

    Thanks in advance

    Vishu Gupta

     

    • Hi, 

      Unfortunately I could not find any solution for this issue. The MAVLINK format is very complicated and I think it is not easy for me to extract the GPS information from it, because I'm not a programmer.

      But if I find a solution, I will share it with all of you.

      Good Luck,

      Fatima

      • Not sure if anyone looks at this thread anymore.  But in case you're wondering.  The easiest way to get GPS data is through "control-f > NMEA" 

        Here you can set up a serial connection to your own application, which you can pass the NMEA sentences to. NMEA protocol can be found online, well documented and it's easy. 

        You will have to write code for serial port communication inside your application. Again, this is usually well documented code found online.

        Then, you'll need to set up 2 virtual comports using a terminal emulator. (Free software found online)

        Before you run your software, start Mission Planner. Do control-f > NMEA

        Open one of the virtual comports you set up with the terminal emulator.

        Launch your software and configure the serial port connection for your software. Or maybe you just hardcoded it instead.

        Note, you should spawn another thread in your software if you are reading a constant stream of real time GPS data. Otherwise, you'll slow your program down.

        If you want more than GPS, try the same process with the microdrones protocol. However, the GPS data in microdrones was garbage data last I tried using it was way off.

        Also, I can't find the Uplink Microdrones protocol, just the downlink.  Let me know if any of you find the Uplink. 

        Thanks. 

  • Okay so I pass through all raw traffic and connect through a TCP connection with the attached code.  But what exactly does the data I'm receiving represent?  These strings are encrypted, correct?  How do I decrypt them and translate them into something that makes sense?  Specifically, all I want is current state information about the copter.  Such as, longitude and latitude, current flight mode, etc.  I've attached my basic windows code for receiving mavlink raw data from Mission Planner. Please Help. Thanks.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
18 hours ago
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
18 hours ago
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
18 hours ago
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
More…