I need help with the MavLink Protocol. What is the code in c# (prefered) for getting the video stream of UAV, using the MavLink protocol.

Thank u!

Views: 2863

Reply to This

Replies to This Discussion

First: what bitrate and transmitter/reciever equipment are going to use for the transfer ?

i'm not a expert, but i don't need a high image quality, so the bitrate doesn't have to be higher.

And the transmitter/reciever equipment, my university bought it so, i can´t use it when i want, i don't know the reference, but i use telemetry and the uav is a 3dr. I hope the information to be useful. Maybe in the afternoon, i can get the reference. 

Hi,  the camera's reference that i'll use is 3DR Video/OSD System Kit. 

ok, I think you may be mixing stuff up.

Mavlink, over "the telemetry radio link" is good for 57600bps , works at half duplex, telemetry data it is not suitable for video transmission.

The FPV kit you pentioned in PM, is for transferring video, is simplex, and does not transfer telemetry (mavlink) - but with minimOSD you can mix in some some telemetry data into the video, in form of a OSD, but it's still not transmitting the actual mavlink protocol.

I have the telemetry usb 3dr and the camera, i need the camera just to get data,but i use the telemetry to recieve and send data with mavlink, so i need the video to show it in my app, i'll use this usb for getting the camera´s stream.

long post short: you're making this mentioned in Simon's reply?



I'm not an expert at setup but your making an app like droid planner but with a virtual osd like the ground control station has in mission planner? but, only using a single transmitter instead of the telemetry, and an fpv video transmitter.

Not entirely sure you'll get enough bandwidth through the telemetry unit but i think it'd be really cool for a app like this even if it's just sending a pic every couple seconds to a android/apple device so you have an idea what the environment is.

i'm going to implement evasion tactics, so i need to recognize "enemies" in the video stream and make an analysis to the images for getting speed, position, distance of my enemie. I'm working with c#, so i need the stream with mavlink  them i use a library Emucv for the images analysis , also i want to show the video in the gui.  I need the mavlink code for getting this stream.

it's not necessary use mavlink, whatever, i need the stream and can work it in c#. but i don´t know other way

hi alex... you will need to use a separate VTX for the video and a headless receiver feeding to a composite video digitizer(belkin or similar) the MAVlink protocol being transmitted via the telemetry can be mixed with the video stream at the VTX via miniOSD or plucked off on the ground via python and/or mavelous

(which is implemented in python) let already developed code do the heavy lifting and decoding for you here on mavlink ,

"enemy"  tracking(you have built an IFF discriminator algorithm havent you?)(so you dont regard any moving object as an enemy) can be examined in  OpenCV or SimpleCV ,Github can help you here along with the OpenTLD(predator algorithm(C++ and maybe c# implementations out there on github) plenty of OpenCV examples of object, facial and feature/object  tracking on youtube with pointers to code...

in C and python.. simple refactor into c# and .NET will go far here


ps sorry the above so dense hope its as clear as I can make it..and you sound like a programmer type :)

Thank U!!! do u have the python code?

i never have worked with VTX is this? http://www.fpvuk.org/equipment/vtx-and-vrx/

Please help me with that.

hi alex, you need to go to github for the OpenTLD implementtion(in c++)

same for mavelous etc all found on github.

for the object tracking  try http://www.youtube.com/results?search_query=openCV%20object%20track...

and watch some of the videos and note the URLs presented for the project a lot of them have pointers to source..


ps yes VTX = video xmitter   VRX = Video receiver


Reply to Discussion



Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service