[Flightgear-devel] sprintf usage

2007-10-07 Thread Durk Talsma
Gentlemen,

Is there any reason not to use snprintf instead of sprintf? In order to 
investigate possible memory corruption errors, I changed a few in SimGear, 
and just found there are about another 250 of these in FlightGear. Unless 
there's a compelling reason, I'd like to change those as well, and commit 
this.

Cheers,
Durk

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Century IIB, Century IIII, and Altimatic IIIc 3d autopilots submitted to cvs

2007-10-07 Thread dave perry
Hi all,

Autopilot changes to the pa24 and SenecaII:  For the last 5 weeks, I 
have been working with Torsten Dreyer to implement accurate models of 
the actual autopilots used by the pa24 and SenecaII.

Friday morning, I  sent 4 patches to Andy Ross for submission to cvs 
that implement these three autopilots in a manner similar to the kap140 
implementation.

One patch puts the nasal models in Aircraft/Generic.  Another patch puts 
the .ac models, the model xml, and the panel xml files in Instruments 
3d.  See the README.txt files in Aircraft/Instruments-3d/Century-IIB and 
Aircraft/Instruments-3d/Century-III for how to add these autopilots to 
other aircraft as well as where to get pdf files for Pilots Operating 
Handbook for these autopilots.

Two other patches modify the pa24 and SenecaII to use these autopilots.  
The Altimatic IIIc is a modification of the Century III autopilot that 
uses the hsi pointer (both ends) in place of the DG heading bug vlaue 
that is referenced in the Century III documentation so that other than 
in heading mode, the heading bug is ignored.  The SenecaII  uses the 
Altimatic IIIc.

With these patches, the pa24 now has two -set.xml files.  The 
pa24-250-CIIB-set.xml file replaces the kap140 with the 2 axis Century 
IIB autopilot as in the real N7764P.  The pa24-250-set.xml file replaces 
the kap140 with the 3 axis Century III autopilot.

The autopilot config xml files are in the respective Systems folders.

Check out these realistic autopilot implementations once they are in cvs.

Cheers,
Dave Perry


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] oil platform...

2007-10-07 Thread Robert Black
On Wednesday 03 October 2007 19:05, SydSandy wrote:
   Log Message:
   Oil platform for helicopter practice

I was thinking about this and thought of a ship with a helo deck which could 
be anything from a yacht to cargo ships and ships in the Niimitz Strike Force 
or a Coast Guard type  and then I thought of an Amphibious assault type as 
they have a large deck and support helo's, Harriers and the Osprey.
http://en.wikipedia.org/wiki/Amphibious_assault_ship#List_of_amphibious_assault_ship_types

Robert

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] autopilots, adverse aileron yaw and jsbsim questions

2007-10-07 Thread dave perry
While optimizing the aitopilot config files for the Century IIB and III 
autopilots for the pa24 and the Altimatic IIIc for the SenecaII, a 
significant difference between the values of parameters (gains in 
particular) that give non oscillatory behavior in yasim and jsbsim 
became very apparent.  I had to completely turn off turbulence to get 
stability without significant overshoot in 
SenecaII/Systems/ALTIMATICIII.xml.  With the values submitted to cvs, 
the Seneca still has a wing rock in LOC REV and LOC modes with the 
default weather that has some turbulence.  The pa24 with the same values 
is as solid as a rock with the default turbulence all the way down the 
glide slope.  With the turbulence zero, both behave the same.

The SenecaII wing rock with light turbulence appears to result from a 
very exaggerated adverse aileron yaw.  So I did the same experiment with 
the c172p and pa28-140 which both use the kap140.  With the default 
turbulence, the c172p oscillates so bad that you cannot complete the 
approach with the LOC needle going full stop to full stop near the 
runway.  The pa28-161 (also yasim) is as solid as a rock all the way 
down the glide slope with light to moderate turbulence.

If you watch the oscillation for either jsbsim model, you should note 
that when the yoke is rotating counter clockwise, the nose is yawing 
right and then finally swings back left, as would be expected with 
extreme adverse aileron yaw.

 Most high performance AC show very little AAY except in significant 
slow flight.  I would not expect that small aileron deflections should 
move the nose counter to the roll in a SenecaII or pa24.

Two questions:
1.  Have others noticed this difference between jsbsim and yasim?
2.  Can this adverse aileron yaw be toned down in jsbsim?

Regards,
Dave Perry

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] oil platform...

2007-10-07 Thread gh.robin
On lun 8 octobre 2007, Robert Black wrote:
 On Wednesday 03 October 2007 19:05, SydSandy wrote:
Log Message:
Oil platform for helicopter practice

 I was thinking about this and thought of a ship with a helo deck which
 could be anything from a yacht to cargo ships and ships in the Niimitz
 Strike Force or a Coast Guard type  and then I thought of an Amphibious
 assault type as they have a large deck and support helo's, Harriers and the
 Osprey.
 http://en.wikipedia.org/wiki/Amphibious_assault_ship#List_of_amphibious_ass
ault_ship_types

 Robert

Yes , 
on the French side, the Mistral is part of my huge french Navy project
Regards


-- 
GĂ©rard
http://perso.orange.fr/GRTux/


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Flight Gear runtime failure

2007-10-07 Thread James Reinsberg
I have attempted to build Flight Gear from source, as well as plib, simgear, 
and openscenegraph. I have retrieved the head of each program from cvs/svn, and 
compiled/linked without (significant) error. When I execute Flight Gear the 
program reads airport and navigation data fine, but crashes immediately when 
reading aircraft data. [I launch the program in default mode with just 
$fgfs.] I have a Saitec Av8r joystick. I did not include any options with 
/../FlightGear/source$./configure.

Here is the failure information written to screen:

[EMAIL PROTECTED]:~/applications/FlightGear/source$ fgfs
*** glibc detected *** fgfs: free(): invalid pointer: 0x08746e10 ***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6[0xb74037cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7406e30]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb759ed11]
/usr/local/lib/libosg.so.25(_ZN3osg16DrawArrayLengthsD0Ev+0x37)[0xb7aae767]
/usr/local/lib/libosgUtil.so.25(_ZN7osgUtil11TessellatorD1Ev+0xca)[0xb7db5e7a]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZN4ac3d10SurfaceBin8finalizeERKNS_12MaterialDataERKNS_11TextureDataE+0xa94)[0xa4e91ce4]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZN4ac3d10readObjectERSiRNS_8FileDataERKN3osg7MatrixdENS_11TextureDataE+0x1a34)[0xa4e8b344]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZN4ac3d10readObjectERSiRNS_8FileDataERKN3osg7MatrixdENS_11TextureDataE+0x2a8d)[0xa4e8c39d]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZN4ac3d8readFileERSiPKN5osgDB12ReaderWriter7OptionsE+0xb7)[0xa4e8c7d7]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZNK14ReaderWriterAC8readNodeERSiPKN5osgDB12ReaderWriter7OptionsE+0xd2)[0xa4e9c432]
/usr/local/lib/osgPlugins-2.2.0/osgdb_ac.so(_ZNK14ReaderWriterAC8readNodeERKSsPKN5osgDB12ReaderWriter7OptionsE+0x3b5)[0xa4e98e55]
/usr/local/lib/libosgDB.so.25(_ZNK5osgDB8Registry15ReadNodeFunctor6doReadERNS_12ReaderWriterE+0x2f)[0xb7c80caf]
/usr/local/lib/libosgDB.so.25(_ZN5osgDB8Registry4readERKNS0_11ReadFunctorE+0xf33)[0xb7c78c83]
/usr/local/lib/libosgDB.so.25(_ZN5osgDB8Registry18readImplementationERKNS0_11ReadFunctorEb+0x433)[0xb7c7a193]
/usr/local/lib/libosgDB.so.25(_ZN5osgDB8Registry22readNodeImplementationERKSsPKNS_12ReaderWriter7OptionsE+0x7f)[0xb7c7a7df]
fgfs[0x855ea21]
/usr/local/lib/libosgDB.so.25(_ZN5osgDB12readNodeFileERKSsPKNS_12ReaderWriter7OptionsE+0x48)[0xb7c69538]
fgfs[0x8556cad]
fgfs[0x84108cd]
fgfs[0x841022a]
fgfs[0x8062b7b]
fgfs[0x80aa9d2]
/usr/local/lib/libosgViewer.so.25(_ZN9osgViewer6Viewer14eventTraversalEv+0x1040)[0xb7f09270]
/usr/local/lib/libosgViewer.so.25(_ZN9osgViewer10ViewerBase5frameEd+0x33)[0xb7f0fda3]
/usr/local/lib/libosgViewer.so.25(_ZN9osgViewer10ViewerBase3runEv+0xb0)[0xb7f0fef0]
/usr/local/lib/libosgViewer.so.25(_ZN9osgViewer6Viewer3runEv+0x2f)[0xb7f0439f]
fgfs[0x80ae7c3]
fgfs[0x806234e]
fgfs[0x80611e1]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb73b1ebc]
fgfs[0x8060fa1]

I have ubuntu 7.04, flightgear 0.9.10, openscenegraph 2.2.0-25, simgear 0.3.10, 
plib revision 2128.

Finally, I am really new to Linux. Any help will be greatly appreciated.

v/r,
Jim Reinsberg


   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel