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
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Thursday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…