Skip to content

Commit

Permalink
Update mission-planner.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Droneforest05 authored Mar 8, 2025
1 parent 0bde480 commit 82e83e2
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions ground-station-software/mission-planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,36 @@ Mission Planner \(MP\) is a Ground Control Station \(GCS\) software for all type
* Operate your vehicle in FPV \(first person view\)

## Setting up bi-directional telemetry with OpenHD.
The first thing apart of obviusly download Mission planner you need to download a third-party software named Gstreamer [Gstreamer](https://gstreamer.freedesktop.org/).

In order to use MP in conjunction with OpenHD it is necessary to forward all telemetry to the PC. In the course of this walk-through we will choose to do it the most convenient way, namely using the Wifi-Hotspot feature running off the OpenHD GroundPi \(of course you can alternatively connect your PC also via USB Tethering, or Ethernet-Hotspot\).

**!!! Before we start make sure you have read and followed the section on how to setup** [**RC with Ardupilot**](../software-setup/joystick-rc.md)**. Those things are prerequisites for the following to work properly !!!**
In order to use MP in conjunction with OpenHD it is necessary to forward all telemetry to the PC, you can do it over WIFI or over Ethernet. We recommend to use ETHERNET over WIFI because the hostpot wifi on the RPI is very very noisy and can interfere with the main link between air and ground. Al of the following settings are common to WIFI and ETHERNET.

Now, Let's gets get started:

1. Enable the WiFi-Hotspot on your GroundPi by editing the openhd-settings-1.txt. Set the following parameters: `TELEMETRY_UPLINK=mavlink` `ENABLE_RC=mavlink` `WIFI_HOTSPOT=Y`
1. The Wifi hostpot is by default ON when disarm and OFF when arm because the possible interference, you can change it using the sidebar, if you want to use Ethernet just connect the cable
2. Next power on your Air- and GroundPi
3. Connect to the OpenHD WiFi with your computer Default SSID is "Open.HD", default password is "wifiopenhd", channel is 1.
3. Enter in the Ground tab and here change the settings "Ethernet" from disable to Hostpot or forward+internet, the last one is very handy to give internet to the pc from your phone

![Ground settings](../.gitbook/assets/Ground_hotspot.jpg)
![Ground settings](../.gitbook/assets/Ground_forward.jpg)

4. Reboot ground unit, once you have done this settings you can leave it ON it doesnt interfere with anything
5. Open Mission Planner and select as method of connection TCP
6. Once selected a few windows will pop up, in the first one you should enter the IP (192.168.3.1)

![IP](../.gitbook/assets/IP_MSP.png)

7. In the next window you have to introduce the port (5760)

![MissionPlanner\_BiTelem\_01.JPG](.gitbook/assets/MissionPlanner_BiTelem_01.JPG)
![PORT](../.gitbook/assets/PORT_MSP.png)

4. Next open up a Command Prompt \(press **Win+R** -> type: `cmd.exe` -> Press **Enter**\)
5. Next we are going to find out the IP of our GroundPi. Type `ipconfig` -> press **Ente**r Watch out for the IP-v4 address of your PC's Wifi adapter. It should read something like: `IPv4 address.....: 192.168.2.2` - Awesome! This address -1 on the last address block is the IP address of your GroundPi: i.e. `192.168.2.1` ![MissionPlanner\_BiTelem\_02.JPG](.gitbook/assets/MissionPlanner_BiTelem_02.JPG)
6. Let's see if we can Ping that thing. Type `ping 192.168.2.1` -> **Press Enter**. Are you getting a reply? Perfect! ![MissionPlanner\_BiTelem\_03.JPG](.gitbook/assets/MissionPlanner_BiTelem_03.JPG)
7. Now start MP and choose `TCP`as the method to connect. Press the **Connect Button** ![MissionPlanner\_BiTelem\_04.JPG](.gitbook/assets/MissionPlanner_BiTelem_04.JPG) and enter the IP of your GroundPi in the upcomming dialogue window: `192.168.2.1`. ![MissionPlanner\_BiTelem\_05.JPG](.gitbook/assets/MissionPlanner_BiTelem_05.JPG) Next select the port \(nothing needs to be changed - the default is: `5760`\) ![MissionPlanner\_BiTelem\_06.JPG](.gitbook/assets/MissionPlanner_BiTelem_06.JPG)
8. Now! Here we are! - Your MP should now happily connect to your Flight Controller \(FC\) through the OpenHD radio link. Once the initial parameter set has been transferred you can either enjoy your fancy real time telemetry or go ahead and configure your autonomous vehicle in-style. ![MissionPlanner\_BiTelem\_07.JPG](.gitbook/assets/MissionPlanner_BiTelem_07.JPG)
8. Now you should have video but not telemetry, to solve it you need to press in the drop-down and change it from "onboard" to "Fixed wing"

## Injecting HD-Video into Mission Planner Heads Up Display \(HUD\)
![Video but no telemetry](../.gitbook/assets/Onboard_video_no_telemetry.png)
![Loading params](../.gitbook/assets/Fixed_wing_telem_and_video.png)

Forwarding the HD-Video stream to MP is a little bit tricky and does not work right out of the box \(other than e.g. for QGroundControl\). However once you succeed you will have some neat benefits such as stacking the MP HUD on top of your live video.
9. Everything should be ready and working

Now, Let's do it:
![Ready](../.gitbook/assets/Load_ready.png)

1. In order to display the HD-video we need a third party software named [Gstreamer](https://gstreamer.freedesktop.org/). \(Download the 32bit version, since the 64bit version is known to cause issues\). You can download it [here](https://gstreamer.freedesktop.org/data/pkg/windows/1.9.1/gstreamer-1.0-x86-1.9.1.msi)
2. Now install Gstreamer by choosing the "Complete Install" option. Most preferably install it to `C:\gstreamer` since it is the default path and some programs depend on the binaries to be found exactly there.
3. Now edit your GroundPi's openhd-settings-1.txt and alter the following parameter: `VIDEO_UDP_PORT=5600` --> `VIDEO_UDP_PORT=5500` `FORWARD_STREAM=raw`
4. Put the MicroSD card back into GroundPi and power it on.
5. Connect to the "OpenHD" Hotspot.
6. Once connected, open up a Command Prompt \(press **Win+R** -> type: `cmd.exe` -> Press **Enter**\)
7. Change to the `C:\gstreamer\1.0\x86\bin` directory and type the following command \(you can put this in a \*.bat batch-file later on\): `gst-launch-1.0.exe udpsrc port=5500 ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5600` ![MissionPlanner\_VideoHUD\_01.JPG](.gitbook/assets/MissionPlanner_VideoHUD_01.JPG)
8. Now start MP. Upon first start it should notify you that a video-stream was detected and advice you to install a missing Addon. Please follow the dialog and install the component. After the install MP will automatically restart.
9. After the restart your live HD-video stream should show in the HUD window. ![MissionPlanner\_VideoHUD\_03.JPG](.gitbook/assets/MissionPlanner_VideoHUD_03.JPG)
10. Go ahead and connect the telemetry link by choosing the `TCP` connect option and proceed as described above.

0 comments on commit 82e83e2

Please sign in to comment.