pigeond pigeond

pigeon's blog - the pigeon concerto in D minor

< older blogs

Pilot filters in FGMap
2009/05/03 19:32:28
flightgear linux

A couple of weeks ago, one of the fellows (yes, you, MSmith) from the Island Virtual Airways, the virtual airline based on FlightGear, poked me and was asking me if there is a way to show only their airline pilots on FGMap. After spending a few coding train trips, I’ve added a very simple pilot filtering feature. Currently you can filter by the callsign and the aircraft. It also has query string support, so you can do things like http://mpmap02.flightgear.org/?pilots_filter_callsign=blah

Check it out at http://mpmap02.flightgear.org/. Code is in my usual git repo.

Enjoy…





My FlightGear stuff
2007/12/31 15:33:06
flightgear

Every now and then people e-mail me or ask me on IRC where my FlightGear stuff is. So during this holiday I’ve spared a few moments and put together a dedicated page about all the stuff I’ve done with FlightGear.

Share and enjoy…





FlightGear + Google Earth fun
2006/12/12 04:56:39
flightgear linux software

Last week I briefly played with Google Earth (GE) and KML, exploring the potential of using it to do something useful with FlightGear (FG).

The quickest hack I did was the GE version FGMap, which shows a moving map of all the online pilots on the FG MP servers. It is basically a very simple change with the FGMap CGI that translate MP server info into XML, only this time it outputs KML. Very simple and straight forward, nothing fancy at all. Check it out by opening this file in GE (if no one is on the server, you’ll see nothing! Check FGMap too).

FGMap Google Earth

[Updated] GE MP map using 3D models work-in-progress:

FGMap Google Earth

This weekend I started looking into GE’s 3D model support. Currently it supports two kinds of 3D model definition. KML embedded model using MultiGeometry, or a Collada .dae format. After some investigation I figured I have to use Collada to do what I want – having a 3D model of an aircraft and updating its position/orientation in GE. MultiGeometry (current version at least) is a fixed coordinates format, while with a Collada model you can place it in GE and then move it around, and also altering its heading/pitch/roll.

Quickly I found this Collada exportor plugin for Blender. As a test I loaded the C172P aircraft AC3D model from FG into Blender, followed by a few trail-and-error and I figured out what I need to export for GE: 1) Convert all faces to triangles, 2) Export Triangles, Disable Physics, Use UV Image and optionally Use Relative Paths.

According to the KML tutorial I have to pack up the .dae file together with the textures, along with a textures.txt for textures path mapping. However I discovered you could actually alter the path referenced in the .dae file to a local jpeg file, or even an HTTP URL.

So now I’ve got GE to show a 3D model of an aircraft from FG. Next is to get FG to talk to GE. There are many ways (network, serial port, etc) in FG you can export real time flight data. To make things easier for now, I’ve set it up to export simply latitude, longitude, altitude, pitch, roll, heading to a file (or actually a fifo), then I wrote a little program to read and output a KML file for GE to read. Then on the GE side, I have to create a KML with a NetworkLink to refresh the actual FG KML.

Now, problems. It seems even if I set the refresh time to be 0 seconds, and I can see GE refreshing the link continuously, on screen it still only updates the position/orientation about once per second. It could well be a GE internal limitation (or feature). The bottom line is, we need a sane way to feed data into GE.

Another thing is I can never get GE to “follow” the aircraft properly. It’s either not panning faster enough, or it will go kinda crazy and jitter a lot. Guess I’m not a GE/KML yet. I need to test it more and tidy up my codes/scripts/things a bit and I’ll put them up.

Nevertheless, it’s kind of fun to “fly FG inside GE”.

Screenshots of FlightGear running side by side with Google Earth, whereby FG sending data to GE and showing the 3D aircraft. Possibly more screenshots here

KSFO

Hong Kong with Computamaps Hong Kong 3D models





FGMap now does metar, and more…
2006/12/03 20:30:48
coding flightgear linux

Recently updated FGMap with various bug fixes, as well as adding a new tabbed info box for airports. That way I could easily add more different information, such as metar information. I have to admit I first got the idea of adding metar information for FGMap when I first saw it on flyagogo.net. They have excellent real world aviation charts, data and an awesome flight planning tools. I’m simply using the metar in Debian at the moment. Hopefully it will match FlightGear’s weather when using with its real weather fetch.

Also I’ve added external links in the airport info box to World Aero Data and AirNav (for U.S. airports).


permlink :: trackback :: Comments Off



And we’ve moved!
2006/10/23 06:13:08
flightgear pigeond

On this fine Sunday afternoon, pigeond.net was moved to a new ISP. Everything seemed to have gone well.

I want to thank Stanley again for the trouble, and probably any sorts of other things he had to do for this move.

Though, still need to wait for Curt to update the DNS for mpserver02.flightgear.org and mpmap02.flightgear.org, as he’s always very very busy. So if you need to use the FlightGear server on my box, you could just use pigeond.net 5000/5002, and this url for the FGMap.


permlink :: trackback :: Comments Off



We’re moving again…
2006/10/20 05:25:36
flightgear pigeond

For those who care, pigeond.net will be moving again sometime this weekend to a new data center. Hopefully it won’t be down for too long during the move.

And for our fellow FlightGear pilots, that would mean mpserver02.flightgear.org and mpmap02.flightgear.org would not work for a little bit when we’re moving.


permlink :: trackback :: Comments Off



< older blogs
blog top 24 tags
api bonding debian engrish fglive fgmap flightgear google ISP laptop lca2007 lca2008 linux live map mpserver navaids network qotd quote of the day taiwan vim windows wine
Search
 
Web pigeond.net









this site is
created with vim



nearly all pages in this site are validated as
Valid HTML 4.01!

css validated by
Valid CSS!


pigeond.net copyright 2001 - 2014
designed, created, and coded by pigeon at pigeond dot net
all rights reserved