I am using a C program to read joystick inputs and generate the commands on each channels. Then I send these values to an Arduino Mega board which generates the ppm signal toward the transmission module
Tags:
Comment by David Hamm on August 16, 2012 at 5:59am That's outstanding!!! Good work! What OS are you using on the PC?
Comment by Charly0188 on August 16, 2012 at 10:54am currently it is running on linux, but as it uses the SDL library which is also available on windows, it should work.
The only thing to modify is the system calls to send the serial command to the arduino. But I guess it could be done using a library in order to be portable.
Comment by David Hamm on August 16, 2012 at 6:01pm
Comment by Les LaZar on August 16, 2012 at 6:47pm One problem with trying to do closed-loop control of an R/C device through a computer, specifically with a video image telling the operator what the plane/copter/robot is doing is the signal lag. I have attempted this with standard utilities (cYoucMe, videoLAN) and experience delays of 300ms to 800ms in the video return link. It is difficult to impossible to control something that requires real-time reactions with such delays in the loop. If you are just observing, that is fine...who cares if the image you see happened a second ago? But if you are in control of a moving device, in that second, it ran off the cliff or into the wall. Bummer!
Comment by David Hamm on August 16, 2012 at 6:58pm
Comment by Charly0188 on August 16, 2012 at 11:04pm @ Les LaZar
Actually if you use vlc to stream from your video receiver you can tune the buffer. By default it is at 300ms but you can turn it down to 5ms so it looks real time for you. Moreover I an not flying manual while in FPV, I made a small autopilot based on a standalone arduimu. here is the video of it: http://diydrones.com/video/arduimu-based-fpv-system
It has a low pas filter on the pilot input while the control loop is running at 20Hz, so I think that is perfect for fpv!
Comment
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.1295 members
687 members
7 members
24 members
51 members
© 2013 Created by Chris Anderson.
Powered by

You need to be a member of DIY Drones to add comments!
Join DIY Drones