Re: [Flightgear-devel] FDM API
Matt Fair wrote: I am writing my own FDM, is there an API that I can use so I can use Flight Gear as my front end? Yes, take a look at net_fdm.* and native_ctrls.* in the FlightGear/src/Network directory. Those are the one you want to use. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] Re: [Simgear-cvslogs]
Hello Curt, could you please revert this change and remove the whole FreeBSD clause - it just makes life harder on the cuurrent FreeBSD RELEASE - or change it. See below. Curtis L. Olson wrote: Update of /var/cvs/SimGear-0.3/source/simgear/sound In directory baron:/tmp/cvs-serv27687/sound Modified Files: soundmgr_openal.cxx Log Message: I don't understand why FreeBSD doesn't see isnan() after including math.h but it doesn't. Trying the apple approach to fixing isnan results in an infinite loop (making me wonder what happens on OSX?) This is an alternative approach to checking isnan() on freebsd ... Index: soundmgr_openal.cxx === RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** soundmgr_openal.cxx 19 Nov 2004 21:44:17 - 1.7 --- soundmgr_openal.cxx 21 Nov 2004 03:13:54 - 1.8 [...] *** *** 47,50 --- 47,54 #endif + #if defined (__FreeBSD__) + inline int isnan(double r) { return !(r 0 || r 0); } + #endif + #include STL_IOSTREAM An alternative to keep compatibility with older FreeBSD releases might be to place such a clause: #if defined (__FreeBSD__) extern C { #if __FreeBSD_version 50 inline int isnan(double r) { return !(r = 0 || r = 0); } #endif } #endif Thanks alot, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] Re: [Simgear-cvslogs]
Hi Martin, Ok, this sounds reasonable. I assume this means that the isnan() problems are fixed in newer versions of FreeBSD? Thanks, Curt. Martin Spott wrote: Hello Curt, could you please revert this change and remove the whole FreeBSD clause - it just makes life harder on the cuurrent FreeBSD RELEASE - or change it. See below. Curtis L. Olson wrote: Update of /var/cvs/SimGear-0.3/source/simgear/sound In directory baron:/tmp/cvs-serv27687/sound Modified Files: soundmgr_openal.cxx Log Message: I don't understand why FreeBSD doesn't see isnan() after including math.h but it doesn't. Trying the apple approach to fixing isnan results in an infinite loop (making me wonder what happens on OSX?) This is an alternative approach to checking isnan() on freebsd ... Index: soundmgr_openal.cxx === RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** soundmgr_openal.cxx 19 Nov 2004 21:44:17 - 1.7 --- soundmgr_openal.cxx 21 Nov 2004 03:13:54 - 1.8 [...] *** *** 47,50 --- 47,54 #endif + #if defined (__FreeBSD__) + inline int isnan(double r) { return !(r 0 || r 0); } + #endif + #include STL_IOSTREAM An alternative to keep compatibility with older FreeBSD releases might be to place such a clause: #if defined (__FreeBSD__) extern C { #if __FreeBSD_version 50 inline int isnan(double r) { return !(r = 0 || r = 0); } #endif } #endif Thanks alot, Martin. -- Curtis Olsonhttp://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text:2f585eeea02e2c79d7b1d8c4963bae2d ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] Re: [Simgear-cvslogs]
Curtis L. Olson wrote: Ok, this sounds reasonable. I assume this means that the isnan() problems are fixed in newer versions of FreeBSD? To be honest: I don't know if the current handling in FreeBSD-5.3 is _correct_, I just can state that the clause you introduced at this place annoyed the compiler :-) I got this error: g++ -march=pentiumpro -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. -I/usr/local/include -I/opt/FlightGear/include -I/usr/X11R6/include -O3 -D_REENTRANT -c -o soundmgr_openal.o soundmgr_openal.cxx In file included from /usr/include/c++/3.4/cmath:52, from ../../simgear/math/point3d.hxx:48, from ../../simgear/math/sg_types.hxx:42, from ../../simgear/misc/sg_path.hxx:36, from soundmgr_openal.cxx:60: soundmgr_openal.cxx:52: error: previous declaration of `int isnan(double)' with C++ linkage /usr/include/math.h:266: error: conflicts with new declaration with C linkage *** Error code 1 BTW: The workaround wasn't my own idea, I borrowed it from the folks who patched PLIB for the FreeBSD port ;-) Thanks, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] Re: [Simgear-cvslogs]
Perhaps this is why it is OK with OSX? -- Adam From: Curtis L. Olson [EMAIL PROTECTED] Reply-To: FlightGear developers discussions [EMAIL PROTECTED] Date: Thu, 02 Dec 2004 09:02:16 -0600 To: FlightGear developers discussions [EMAIL PROTECTED], J. Couch [EMAIL PROTECTED] Subject: Re: [Flightgear-devel] Re: [Simgear-cvslogs] Hi Martin, Ok, this sounds reasonable. I assume this means that the isnan() problems are fixed in newer versions of FreeBSD? Thanks, Curt. Martin Spott wrote: Hello Curt, could you please revert this change and remove the whole FreeBSD clause - it just makes life harder on the cuurrent FreeBSD RELEASE - or change it. See below. Curtis L. Olson wrote: Update of /var/cvs/SimGear-0.3/source/simgear/sound In directory baron:/tmp/cvs-serv27687/sound Modified Files: soundmgr_openal.cxx Log Message: I don't understand why FreeBSD doesn't see isnan() after including math.h but it doesn't. Trying the apple approach to fixing isnan results in an infinite loop (making me wonder what happens on OSX?) This is an alternative approach to checking isnan() on freebsd ... Index: soundmgr_openal.cxx === RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** soundmgr_openal.cxx 19 Nov 2004 21:44:17 - 1.7 --- soundmgr_openal.cxx 21 Nov 2004 03:13:54 - 1.8 [...] *** *** 47,50 --- 47,54 #endif + #if defined (__FreeBSD__) + inline int isnan(double r) { return !(r 0 || r 0); } + #endif + #include STL_IOSTREAM An alternative to keep compatibility with older FreeBSD releases might be to place such a clause: #if defined (__FreeBSD__) extern C { #if __FreeBSD_version 50 inline int isnan(double r) { return !(r = 0 || r = 0); } #endif } #endif Thanks alot, Martin. -- Curtis Olsonhttp://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text:2f585eeea02e2c79d7b1d8c4963bae2d ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] New scenery build
I am currently working on building the latest round of world scenery for FlightGear. I'm not done, so don't consider this to be the official announcement. However, for those that want to get a jump on the competition, you can find the new scenery here: ftp://ftp.flightgear.org/pub/fgfs/Scenery-0.9.7/ This scenery should work just fine with the 0.9.6 version, but some radio towers will look better running with the current CVS version of FG ... not a big deal. There is nothing ground breaking in this new build. It is mostly a collection of small fixes, and is based on the latest[1] airport data from Robin Peel including many submissions from FG developers and users. I've done quite a bit of addition work on airport surfaces so the little odd cliffs that showed up in a few places mid-runway should now be gone. [1] Well, the latest data as of the start of my build ... figures he would release an update before I was finished, but I'm past the point of no return now. Regards, Curt. -- Curtis Olsonhttp://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text:2f585eeea02e2c79d7b1d8c4963bae2d ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d