|
|
|||||||||
|
Joined Mar 2009
514 Posts
|
Create a virtual immersive cockpit for FPV
Hi, I'll start a project I always wanted to do, which is to create in realtime a virtual cockpit, which will move as the camera moves. Or should I say which will look attached to the plane even if the camera is moving. It should be a very immersive experience.
It's not too difficult, as we have the angles of the camera (from the pan-tilt servos). The cockpit will be created on a PC, which will mix this with the video from the FPV. The position of the cockpit over the video will be changed as the camera moves, so to look as if the cockpit was fixed relative to the plane. Virtual instruments such as airspeed meter, altimeter and variometer can then be included in this virtual cockpit with a good level of realism. As the cockpit is created by the PC, we can record the video with and without the added cockpit. It's also possible during the flight to make the cockpit a little transparent or to hide/show it. The lisibility can be maximized as it is not an osd in the plane sent through a video link, but an image created and positionned by the pc on the video. So we have a very good resolution and use all the colors for photorealism. Some effects can be added to add to the realism, such as glass reflections in the instruments or on the virtual canopy. As we know the motor speed (from PropAway www.propaway.com ), it's also possible to reproduce another motor sound, such as a real plane's motor. We'll know the speed, and so we can simulate the wind's sounds. (of course we can simply use a microphone in the plane, but the sound an RC motor is so different from a real plane) A realistic HUD can be simulated, or different instruments, or a glass cockpit, actually, by creating the virtual cockpit on the PC, there a few limitations to what can be done. Any comments or ideas ? I'm surprized it doesn't already exists as (in my imagination at least) it looks very fun ![]() --------------------------------------------------------------------- EDIT status on May 1, 2011 :
status 5 month before :
status 7 month before :
|
||||||||
|
|
|
|
|||||
|
|
Ive thought about it also some time ago, the way I imagined it would happen is via augmented reality
You remember those little cards you could print out and then show it to your webcam, the flash applet would then draw a 3d object ontop of the card...? Well Im thinkin, have tiny little cards for different instruments which you can place around your cockpit and have some kind of onboard processing feed the OSD data into the video signal... Hope that gives you some ideas maybe ? ![]() If you make one, hook us up! ![]() Found this vid... -
Sorry this was too cool not to show :P
|
||||
|
|||||
|
|
|
|
|
It does work and the FAA even has Advisory Circulars on employing it as a piloting aid for manned aircraft. Here is their latest advisory on the subject I know of. AC 20-167, "Airworthiness Approval of Enhanced Vision System, Synthetic Vision System, Combined Vision System, and Enhanced Flight Vision System Equipment".
I use X-Plane and my Eagletree data equipment for just exactly what you are proposing. The only problem is processing lag will get you. An EXTREEEEEEMY fast machine with a really good professional level display card is a must. I use nVidia 3d workstation cards. Additionally it needs an external video mixer that is "green screen" capable. X-Plane is perfect for this since it was designed from the outset to be hacked input and output wise. Good luck, there is a LOT of homework and hard work involved. Hope you have some time and deep pockets. I have been at it for over 7 years now and still no satisfactory solution below cost levels that cause nose-bleeds just thinking about. It's pretty easy to do in a lab setting but making it portable gets insanely costly. Have fun and be safe. Rob |
|
|
|
|
|
I'm working to comply with FAA regulations as they will be in 12-24 months. I intend to keep flying and get paid for it.
X-Plane is already FAA certified so most of that worry is over. With X-Plane all it needs is X,Y,Z orientation and current position to do all the work and paint your environment, update your instruments, cockpit decor and even correct shadowing of the interior for the direction you are traveling relative to your geographic position and accurate to time of day/and seasonal changes. Have fun, Rob |
|
|
|
|
||
|
Joined Mar 2009
514 Posts
|
Quote:
I have done the incrustation of cockpit on the video, for now from a cockpit photo in 2D, which is moving almost as needed. I mean today it is just moving horizontally, without rotation nor perspective, following the camera's orientation (if the camera is looking left, the cockpit appears logically more and more on the right, staying on the plane). The PropAway has been modified to send the position of the camera (and now for testing purposes, it just makes it go slowly right and left in a continuous cycle of about 6 seconds). Doing this takes 10-11 ms for each frame, which is perfect, and no specific optimizations have been made. The time is dependent on a lot of factors, here I display the original 640*480 from the camera in a 1000*750 format which is more comfortable. Still a lot of work to do, but I was happy to see that I did not take too long to do the calculation for a frame. Of course we'll see when adding needles on the panel, perpective transform etc. One detail to mention : the camera pan servo was a bit slower than the display of the cockpit, which was giving a bad look. I added a slight filtering on the position where I display the cockpit, to match the servo reaction speed. For example, when giving a signal to go from full left to full right, the cockpit was going there immediately, but the servo needed a fraction of second to do so. Now with the (digital) filter they go at the same speed. A visible difference is that the video will be slightly blurred when the camera moves while the cockpit always looks crisp. Maybe I'll add a slight motion blur when moving. Another thing to manage is the lens distorsion, as I'm using a wide angle. It's not a big issue as the image library I'm using (open CV) has functions to measure and correct this. Ben |
|
|
|
||
|
Joined Mar 2009
514 Posts
|
Quote:
) but I prefer to do something a bit lighter and not FAA compliant, but more targeted for FPV use. For example specific indicators for the battery's usage (remaining mAh, etc) which will not exist on a real plane.Thanks for the link to the FAA advisory ! Ben |
|
|
||
|
|
|
|
Joined May 2005
771 Posts
|
I'm sure you already know this, but the FAA-approved version of X-Plane requires special hardware (a certified computer). In other words the FAA has to approve the software and its installation and the computer (the entire package, software and hardware).
The consumer version of X-Plane is definitely not FAA-certified for anything. |
|
|
|
|
|||
|
Joined May 2005
1,095 Posts
|
The video if the Virtual Reality cards was impressive !!
is there any software that use the video (camera) for tracking the environment ? Is there any way to use the head-tracker on a computer to track the "mouse-movement" it would be like this :
The point why I ask is that it could be funny to use the googles to something else when we not are flying with them ![]() and the "virtual OSD" was getting me on this idea.. |
||
|
|||
|
|
||
|
|
Quote:
![]() Starting with an already certified platform helps a lot when it comes time for acceptance. Besides, the folks that wrote this know way more than I about most of this anyway. Have a great day and keep 'em AGL! Rob |
|
|
||
|
|
|
|
Joined Mar 2009
514 Posts
|
Here a several screenshots, I prefer posting a video in a few days when I've added the vertical movement and rotation of the cockpit. (Remember I'm working on the virtual cockpit since yesterday only
)To position correctly the cockpit is not simple, because it's not just moving regularly horizontally when the pan servo is used. Because of the lens distorsion, the movement is relatively faster near the center and slower when looking at the wings. Secondly, there is a small vertical movement when panning horizontally. So I've put some visual markers where the cockpit sould be in the plane, and reprogrammed PropAway to make pan very slowly the camera over the whole horizontal range. At the same time I click on the screen to indicate where the markers are. The software then displays the position (x and y) and the current pan servo value. I export these values in excel to make curve fitting (see photo) and get the formula (x and y cockpit position in function of pan value). In the future the markers can be detected automatically and no need for excel calculation. But it's a one time calibration and then the system can be used. As mentionned, I don't plan to detect the markers during the flight, and there is no need for this as we know exactly the camera's orientation. The cockpit photo has been modified slightly to extend it on the right and left sides, it's a first draft and should be improved in many ways. Ben
|
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yippee! High above cloud and Gopro HD cam and virtual cockpit! | glassfox | Video Piloting (FPV/RPV) | 13 | Jul 14, 2010 07:05 PM |
| Discussion FPV Maiden flight with virtual cockpit | Wobby | Australia | 52 | Jul 24, 2008 04:16 AM |
| Sold Virtual Cockpit for Extreme Flight Yak 74" | MikeATL | Aircraft - Fuel - Airplanes (FS/W) | 2 | Jun 30, 2008 12:53 AM |
| Discussion Virtual virtual cockpit | daniel reese | Video Piloting (FPV/RPV) | 22 | Apr 09, 2008 07:16 PM |