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
That's outstanding!!! Good work! What OS are you using on the PC?
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.
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!
@ 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!
Join DIY Drones
Welcome toDIY Drones
Sign Upor Sign In
Or sign in with:
© 2013 Created by Chris Anderson.
Report an Issue |
Terms of Service
Please check your browser settings or contact your system administrator.