3689624585?profile=original

This blog is a continuation of my previous post.

How to build a High-Definition FPV UAV using a Rasperry PI with HD camera, using a high speed WiFi link

This post will discuss how to use GStreamer and Mission Planner together to display the HD video with a HUD (Head-Up-Display).

Note: I have only tested this feature on Windows so the instructions given here are for Windows only. 

To give proper credit, the HUD created here was borrowed from APM Planner, a Qt-Based app similar to Mission Planner. The HUD part was created from the Qt codebase QML HUD created by Bill Bonney who is on the APM Planner development team. To make the HUD work with the background video, I used a GStreamer library called "QtGStreamer" which integrates GStreamer plugins with painting on a Qt widget.  This library is available on the GStreamer website.

The end-result is dynamically added to Mission Planner using the plug-in architecture. 

In the previous posts I discussed used a Raspberry PI and a High-speed WiFi link using GStreamer on the PI and the ground station PC.  To get the HUD to work, you need to already have a successful link with the video on your ground station. 

Here are the steps to follow to install the plugin:

1) Install Mission Planner.

2) Download and install GStreamer from this link.  Use the x86 version, the x86_64 version will NOT work. (Use the default path 'C:\GStreamer' when installing). When installing GStreamer, select 'Custom' install and select ALL plugins to be installed.

3) Follow the steps in the previous blog noted above to get your video stream working.

4) Download and the MSI installer from this link. and run the installer.

If all went well, you should have the plugin installed.

Open Mission Planner and navigate to the "Flight Data" page and right-click on the map. You should see a menu item called "GStreamer HUD" as shown below:

3689624376?profile=original

Select this menu item and the following screen should appear:

3689624624?profile=original

In the upper-left corner is a context menu. Here is where you enter your GStreamer Pipeline string. If you had the video displaying without the HUD using a valid pipeline, enter it here.

Note: The GStreamer Pipeline string should be exactly the same as the string you used before, but WITHOUT the final video sink element. The video sink is the QtGStreamer element which will be added automatically by the plugin. The GStreamer pipe should therefore be the same, except remove the last element for the video sink.

Here is an example string I used on my setup:

udpsrc port=9000  buffer-size=60000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! queue ! avdec_h264

If all is well, you can connect to your UAV and see the HUD elements moving.  To change the HUD, right click on the display and select which elements you want to display. The default is to display everything shown here. 

If anybody has problems, please post back and I'll update the blog in case I missed something, and you cannot get it to work.

Happy Flying!

E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Yeah I will.

    I have jigs for both antennas so I will test them, open them up and check the leaf orientation and that sort of thing
  • @The Sun, those look ok, but I have heard some stories about cheap antennas made in China having high VSWR. Please post back what kind of results you get with the antenna setup you decide to use.  It would be nice to have some data for others thinking about using this setup. 

  • http://www.amazon.com/gp/product/B00GLGUZD4/ref=ox_sc_act_title_1?i...

    man those are cheap

    Im grabbing a pair of those and 2x 5ghz rockets

    This sounds just about right?

    Thanks again

  • @The Sun,  lower gain antennas will work, it just depends on what kind of range you want to achieve.  You will need an adapter depending on the antenna you use. The output is RP-SMA. 

  • One more thing, the connectors are SMA right? Not RP-SMA?

  • @Patrick Duffy

    Thanks, would it be plausible to run a cloverleaf/ skew planar combo (ie no directional antennas at all) 

    or would the range be far too little?

    I will be happy with 1-2km of range

  • @The Sun,  you can two rocket m5s or rocket/nano combination.  I have done both.  I am currently experimenting with two rocket m5 setup and two of these antennas:

    http://www.readymaderc.com/store/index.php?main_page=product_info&a...

    They don't sell an LHCP antenna, so I ordered two RHCP antennas, and rewound one of them to be LHCP.  This setup is the best I have used yet.  

  • can I use two of these for the over the air link?

    http://www.amazon.com/gp/product/B004EHUTNI/ref=s9_simh_gw_p421_d6_...

    thanks

  • @ap105,  I think there is a setting in CMake where you can specify the version of Qt. Click on 'Advanced' and then browse for the Qt settings area.  Let me check my build environment and get back with you. It would be better for you to get it to build rather than me posting binary files. 

  • @Patrick: Yes, I am building for Windows. I think there is a problem with detecting qt5 when i fire up cmake: 

    -- Building for: Visual Studio 12 2013
    -- Using Qt4 (min: 4.7)
    -- Found unsuitable Qt version "5.4.0" from D:/Qt/5.4/msvc2013/bin/qmake.exe
    -- Could NOT find Qt4or5 (missing: _Qt4or5_FOUND Core Gui Widgets)
    -- Boost version: 1.57.0
    ......

    CMake Error at c:/CMake/share/cmake-3.1/Modules/Qt4Macros.cmake:499 (message):
    Can not use "Core" module which has not yet been found.

    Having your build directory would really be great. 

This reply was deleted.