Re: [Flightgear-devel] View questions
* Melchior FRANZ -- Tuesday 27 November 2007: You can also set /sim/current-view/view-number=-101. Better don't do that. I have no idea if all listeners on that property can digest a -101. view.indexof(View Name) is better, anyway, as using hardcoded numbers is always problematic. m. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] View questions
* Melchior FRANZ -- Tuesday 27 November 2007: * Melchior FRANZ -- Tuesday 27 November 2007: You can also set /sim/current-view/view-number=-101. Better don't do that. I have no idea if all listeners on that property can digest a -101. BS. That's not a problem. The negative number never reaches listeners, so that's fine. A listener will only see the 8. But view.indexof() is still better, anyway. m. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear prerelease; RPMs available + PATCH
Hi. I have yet another two patches to get FlightGear and Simgear compiling with new gcc 4.3, which is stricter about missing declarations of functions. So it's only missing #include which should be in the code. See the attachments. Btw. I'm building the RPMs for Fedora, Mandriva and SuSE in Build Service (http://build.opensuse.org). So you can easily install them, searching the FlightGear on the web page http://software.opensuse.org/search and choose the home:lmich repository. Regards Ladislav. --- src/Airports/parking.cxx +++ src/Airports/parking.cxx @@ -27,6 +27,7 @@ #endif //#include algorithm +#include stdlib.h #include simgear/compiler.h --- src/Airports/runwayprefs.cxx +++ src/Airports/runwayprefs.cxx @@ -26,6 +26,8 @@ #endif #include math.h +#include stdlib.h +#include cstring //#include algorithm #include simgear/compiler.h --- src/Airports/runways.cxx +++ src/Airports/runways.cxx @@ -27,6 +27,7 @@ #include math.h // fabs() #include stdio.h // sprintf() +#include stdlib.h //atoi() #include simgear/compiler.h #include simgear/debug/logstream.hxx --- src/FDM/JSBSim/input_output/FGfdmSocket.cpp +++ src/FDM/JSBSim/input_output/FGfdmSocket.cpp @@ -37,6 +37,7 @@ INCLUDES %%*/ +#include cstring #include FGfdmSocket.h namespace JSBSim { --- src/FDM/YASim/yasim-test.cpp +++ src/FDM/YASim/yasim-test.cpp @@ -1,4 +1,6 @@ #include stdio.h +#include stdlib.h +#include cstring #include simgear/props/props.hxx #include simgear/xml/easyxml.hxx --- src/Main/util.cxx +++ src/Main/util.cxx @@ -21,6 +21,7 @@ #include simgear/compiler.h #include math.h +#include stdlib.h #include vector SG_USING_STD(vector); --- BUILD/SimGear-0.3.11-pre2/simgear/io/sg_file.cxx +++ BUILD/SimGear-0.3.11-pre2/simgear/io/sg_file.cxx @@ -21,6 +21,8 @@ // $Id: sg_file.cxx,v 1.8 2006-03-08 18:16:08 mfranz Exp $ +#include cstring + #include simgear/compiler.h #include STL_STRING --- BUILD/SimGear-0.3.11-pre2/simgear/io/sg_serial.cxx +++ BUILD/SimGear-0.3.11-pre2/simgear/io/sg_serial.cxx @@ -20,6 +20,8 @@ // // $Id: sg_serial.cxx,v 1.6 2006-03-08 18:16:08 mfranz Exp $ +#include stdlib.h +#include cstring #include simgear/compiler.h --- BUILD/SimGear-0.3.11-pre2/simgear/misc/strutils.cxx +++ BUILD/SimGear-0.3.11-pre2/simgear/misc/strutils.cxx @@ -21,6 +21,7 @@ // $Id: strutils.cxx,v 1.3 2006-03-08 18:16:08 mfranz Exp $ #include ctype.h +#include cstring #include strutils.hxx namespace simgear { --- BUILD/SimGear-0.3.11-pre2/simgear/misc/tabbed_values.cxx +++ BUILD/SimGear-0.3.11-pre2/simgear/misc/tabbed_values.cxx @@ -20,6 +20,8 @@ // // $Id: tabbed_values.cxx,v 1.3 2006-03-08 18:16:08 mfranz Exp $ +#include stdlib.h + #include tabbed_values.hxx #include assert.h --- BUILD/SimGear-0.3.11-pre2/simgear/screen/RenderTexture.cpp +++ BUILD/SimGear-0.3.11-pre2/simgear/screen/RenderTexture.cpp @@ -46,6 +46,7 @@ * Nov. 2005, Use the simgear logging facility, Erik Hofman * Mar. 2006, Add MAC OS X support, Alexander Powell */ +#include cstring #ifdef HAVE_CONFIG_H # include simgear_config.h --- BUILD/SimGear-0.3.11-pre2/simgear/screen/TestRenderTexture.cpp +++ BUILD/SimGear-0.3.11-pre2/simgear/screen/TestRenderTexture.cpp @@ -16,6 +16,7 @@ #include assert.h #include stdio.h +#include stdlib.h void Reshape(int w, int h); --- BUILD/SimGear-0.3.11-pre2/simgear/screen/shader.cpp +++ BUILD/SimGear-0.3.11-pre2/simgear/screen/shader.cpp @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include cstring +#include stdlib.h + #ifdef HAVE_CONFIG_H # include simgear_config.h #endif - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] View questions
On Tue, 27 Nov 2007 09:32:19 +0100 Melchior FRANZ [EMAIL PROTECTED] wrote: * Melchior FRANZ -- Tuesday 27 November 2007: * Melchior FRANZ -- Tuesday 27 November 2007: You can also set /sim/current-view/view-number=-101. Better don't do that. I have no idea if all listeners on that property can digest a -101. BS. That's not a problem. The negative number never reaches listeners, so that's fine. A listener will only see the 8. But view.indexof() is still better, anyway. m. Thanks for the tips. And by not defining a view i meant the default FGFS , no extra views added beyond FLY-BY :)... Cheers -- SydSandy [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] View questions
* SydSandy -- Tuesday 27 November 2007: And by not defining a view i meant the default FGFS , no extra views added beyond FLY-BY :)... Then there will be no extra views, not even a strange sea-level view with two lines running toward and meeting at the horizon. Could it be that you have an empty view in your autosave.xml? This would cause something ugly. m. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear prerelease
On Monday 26 November 2007 03:09, Tatsuhiro Nishioka wrote: Durk, (and more developers), could you test this patch so it can run on linux and windows properly? If so, please apply this patch. Otherwise, I'm gonna make a new patch with #ifdef __APPLE__ #endif closure not to affect other platforms. Okay, committed. Thanks. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear prerelease
On Monday 26 November 2007 19:52, Tatsuhiro Nishioka wrote: Please apply this patch if you still have time before the official 0.9.11-pre2 release. Otherwise, apply this on the next release. Okay, done. Cheers, Durk - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear prerelease; RPMs available + PATCH
On Tuesday 27 November 2007 15:22, Ladislav Michnovič wrote: Hi. I have yet another two patches to get FlightGear and Simgear compiling with new gcc 4.3, which is stricter about missing declarations of functions. So it's only missing #include which should be in the code. See the attachments. Hi Ladislav, Committed. Thanks for the patches. Cheers, Durk - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] View questions
On Tue, 27 Nov 2007 18:53:47 +0100 Melchior FRANZ [EMAIL PROTECTED] wrote: * SydSandy -- Tuesday 27 November 2007: And by not defining a view i meant the default FGFS , no extra views added beyond FLY-BY :)... Then there will be no extra views, not even a strange sea-level view with two lines running toward and meeting at the horizon. Could it be that you have an empty view in your autosave.xml? This would cause something ugly. m. Ah that could be it, ... I'll check tonight , ...and update :) -- SydSandy [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear prerelease; RPMs available + PATCH
So it's only missing #include which should be in the code. See the attachments. [...] #include math.h +#include stdlib.h +#include cstring Surely that should be string.h, no? It's just a style thing, but if you're modifying code that is already using ANSI C headers, and not Standard C++ headers, you should stay with the existing convention. It's especially weird to add one of each. :) Andy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Merge JSBSim into 0.9.11?
Hi, I think we should merge the latest JSBSim code into fg before releasing 0.9.11. There are many fixes since the last merge and I'd love to have them in fg, too. Torsten - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Improved chat interface patch
--- Stuart Buchanan wrote: I now have a working chat menu system, which will generate canned chat messages by using a simple menu system, access by the numbers on your keyboard. The canned messages are somewhat dynamic, in that they pick up the current airport, and your own callsign and altitude. You will need to pick up the tarball from http://www.nanjika.co.uk/flightgear/chatmenu.tar.gz. This contains the following files: - multiplayer.nas to put in your Nasal directory (this is updated from my previous patch) - chat-menu.xml to put in your gui/dialogs directory. - chat-menu-entries.xml to put in your ATC directory. In addition, you will need to do the following: - Apply the keyboard.xml patch below. This maps - to open the chat menu and _ to open free-form chat using the simply chat widget I created earlier. - Edit your preferences.xml file to pick up the chat-menu-entries.xml file under /sim/multiplay. As we all have much modified preferences, this is probably best shown by example rather than patch: multiplay chat type=stringHello/chat transmission-freq-hz type=string11850/transmission-freq-hz chat-display type=bool userarchive=ytrue/chat-display chat-menu include=ATC/chat-menu-entries.xml/ /multiplay I.e. you need to add a linechat-menu include=ATC/chat-menu-entries.xml/ within the multiplay section. To use, simply press - to open the menu - you will see a set of numbered options. They can be accessed using the obvious numeric key assignments. Some of the options open sub-menus, and you can navigate backwards using 0, or press 1 to immediately open the chat widget with the current message. As always, you can modify the menu tree to include your favourite messages, simply by editing the ATC/chat-menu-entries.xml file. The one I've created is very much a starting point, and submissions/improvements are most welcome. We may need to standardize on an FG phraseology, due to the differences in ATC phraseology across the globe. The number of subsitutions available within the messages is very limited, and the message parser also very simple. There is quite a bit of room for improvement in this regard. For example, it would be nice to substitute in a guess of the current runway in use. Assuming this passes muster, if someone could commit it, I'd be grateful. Comments as always are welcome. -Stuart Index: keyboard.xml === RCS file: /var/cvs/FlightGear-0.9/data/keyboard.xml,v retrieving revision 1.101 diff -u -r1.101 keyboard.xml --- keyboard.xml13 Nov 2007 14:42:44 -1.101 +++ keyboard.xml23 Nov 2007 00:58:21 - @@ -354,7 +354,17 @@ /mod-up /key - key n=46 + key n=45 +name-/name +repeatable type=boolfalse/repeatable +descCompose Chat/desc +binding + commanddialog-show/command + dialog-namechat-menu/dialog-name +/binding + /key + + key n=46 name./name descRight brake/desc binding @@ -754,6 +764,16 @@ /mod-up /key + key n=95 +name_/name +repeatable type=boolfalse/repeatable +descCompose Chat/desc +binding + commandnasal/command + scriptmultiplayer.compose_message()/script +/binding + /key + key n=97 namea/name descIncrease speed-up./desc An updated tarball of these changes is now available from http://www.nanjika.co.uk/flightgear/chatmenu.tar.gz Changes: - Improved message substitutions - now handles the active runway, approach direction etc. - Fix for the message repetition bug - you can just take multiplayer.nas for this. - Updated messages to (almost) follow UK CAA radio phraseology. I'm hopeful that this will solve the message repetition bug completely. If it doesn't, I'd appreciate diagnostics in the form of a dump of the /ai tree using Melchiors development tools. Thanks -Stuart ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Merge JSBSim into 0.9.11?
On mar 27 novembre 2007, Torsten Dreyer wrote: Hi, I think we should merge the latest JSBSim code into fg before releasing 0.9.11. There are many fixes since the last merge and I'd love to have them in fg, too. Torsten Me, Too, I'd love to have them:) -- Gérard http://pagesperso-orange.fr/GRTux/ - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Merge JSBSim into 0.9.11?
I think we should merge the latest JSBSim code into fg before releasing 0.9.11. There are many fixes since the last merge and I'd love to have them in fg, too. Torsten Me, Too, I'd love to have them:) -- Gérard http://pagesperso-orange.fr/GRTux/ I'd like to see this, as well, but I think the migration of the newest JSBSim code to FlightGear will be more tedious, and I know people are anxious to get a new FlightGear released. The latest JSBSim code includes numerous bug fixes and new features. It also includes two new features that might conflict with use within FlightGear. JSBSim code now includes the capability to drive FlightGear using the netFDM protocol. So, it includes one FlightGear header file. So, there will need to be some coordination and some #ifdef code to make sure the right one gets used, and so that two possibly different header files are not in the directory tree. Also, there have been extensive additions to the trim code. Agostino De Marco's trim analysis code has been incorporated into JSBSim, and that brings the directsearch library into play. What might be a better option at this time is to copy over certain files that bring self-contained, [relatively] innocuous, bug fixes and feature additions. Gerard - unfortunately, the generic external force capability is not *quite* there. Close, but not quite. It's been close for a long time because I've gotten busier and busier, but it will be done. So, I have little time to do the migration myself, but I can certainly provide advice, and moral and technical support. :-) I think that much of the code in the models/flight_control/ subdirectory can probably be moved over as-is, along with the src/models/FGFCS.* files. There are probably some fixes in the src/math directory, as well. And various others. Jon - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel