Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Feb 2, 2021
1 parent 18f68b7 commit fef161c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README

This file was deleted.

49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
This project started from https://github.com/TobiasBales/PlayuavOSD.git

Supported platforms:
-------------------
* Raspberry Pi 0-3 -- native mode (use VideoCore IV API)
* Linux with X11 -- use gstreamer overlay

Supported autopilots:
---------------------

* PX4 -- full support
* Ardupilot -- should work, but not tested
* any mavlink-based -- should work with small fixes

Building:
---------

1. Build for Linux X11 (native build):
* `apt-get install libcairo2-dev gstreamer1.0-tools libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly`
* `make osd`

2. Build for Raspberry PI (cross-build):
* `make build_rpi` (you need linux machine with docker installed)

3. Build for Raspberry PI (native build):
* `make osd mode=rpi`

Running:
--------

Default mavlink port which OSD listen is 14550.

1. RPI: `./osd`
2. Linux X11:
* Run test video stream (OSD will not work without video stream)
```
gst-launch-1.0 videotestsrc pattern=black ! videoconvert ! \
video/x-raw,format=NV12,framerate=30/1,width=1280,height=720 ! \
x264enc bitrate=4000 tune=zerolatency ! rtph264pay config-interval=1 ! \
udpsink host=127.0.0.1 port=5600
```
* Run OSD: `./osd`
* You should got screen like this:
![gstreamer](scr1.png)


Screenshots:
------------
![px4](scr2.png)
Binary file added scr1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scr2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fef161c

Please sign in to comment.