[Flightgear-devel] Initial conditions at reset

2006-12-05 Thread Thomas Biwer


I just want to gently push this back to top, since I figured out more
strange behaviours which I really dont know the cause of...

First, as I didnt notice before, the plane is hovering a few feet above the
runway at start as soon as I specify an initial velocity. If I specify the
initial velocity as zero, it stands on the ground, just as normal. By using
the --notrim option in the command line, it shows up a few inches below the
runway (similar as it is when specifiying --fdm=NULL). Whats the reason for
this? Could it be somewhee in the trimming code?

Second, I m still not seeing clearly in the way the reset is processed...
Could anyone give me a hint as to where the FDM is initialized during the
reset process? Is the Initialize()-function in the FGState.cpp file still
involved at all? And if it is not, where does FG take its starting values
from and where could I tell it to load my initial conditions at reset, too?
(while running FG with --notrim option)

Any thoughts or help are much appreciated indeed.

Best,
Thomas




 Hello,

 I want to start FlightGear with a bunch of Initial Conditions Settings
and
 I noticed that they dont seem to be loaded when restarting the simulator
 with File-Reset.
 It rather looks like FG is taking the values for pitch, alpha, and so on
 off of the last session, i.e. if I crashed the plane almost in a 90 deg
 angle to the earth and then press reset, it starts with the plane heading
 towards ground in almost a 90deg angle. By pressing pause at startup
and
 comparing the values in the property tree I indeed figured out that the
 values are exactly the same.
 I am using FG 0.9.10 release version and noticed this behaviour with the
 c172 and f16. I am loading the IC in from an external input file. I
 therefore modified the code in FGState.cpp, in the Initialize() function
 with a rather simple routine to read in the values and used the
 FGIC-SetBlahBlah() method of the FGInitialConditions class in order to
 save them.

 All works fine as long as I am NOT specifying --notrim in the command
 line. As soon as I specify this option, the above described behaviour
 occurs.

 Anyone might be able to shed some light in this matter? Where can I find
 the functions that are responsible for the reset process in the code?
Could
 it be that FG restarts different than its actual starting process is?

 Thanks a lot for your help.

 Best,
 Thomas



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Initial conditions at reset

2006-12-05 Thread Jon S. Berndt
 First, as I didnt notice before, the plane is hovering a few feet
 above the
 runway at start as soon as I specify an initial velocity. If I specify the
 initial velocity as zero, it stands on the ground, just as
 normal. By using
 the --notrim option in the command line, it shows up a few inches
 below the
 runway (similar as it is when specifiying --fdm=NULL). Whats the
 reason for
 this? Could it be somewhee in the trimming code?

If you are not trimming, then the aircraft may be placed initially at an
inappropriate altitude, considering where it's CG is defined, and where the
landing gear are defined to be touching. I'm assuming this is for some
JSBSim aircraft. The altitude that the aircraft is initially placed at
should be the vertical distance from the CG to the landing gear location.

 Second, I m still not seeing clearly in the way the reset is processed...
 Could anyone give me a hint as to where the FDM is initialized during the
 reset process? Is the Initialize()-function in the FGState.cpp file still
 involved at all? And if it is not, where does FG take its starting values
 from and where could I tell it to load my initial conditions at
 reset, too?
 (while running FG with --notrim option)

Have you looked inside JSBSim.cxx? That's the interface between FlightGear
and JSBSim.

Jon


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Initial conditions at reset

2006-12-05 Thread Thomas Biwer
Thank you for your help Jon,

Is there a way to fix this problem with the altitude on the runway? And
yes, I am using JSBSim planes.

Yes I did take a look in JSBSim.cxx - but without success. I tried to set
the initial conditions within the FGJSBSim()-function as well as within the
init(9 function - none of it worked.
Where should I place it?

Best,
Thomas



[EMAIL PROTECTED] escribió: -


Para: FlightGear developers discussions
flightgear-devel@lists.sourceforge.net
De: Jon S. Berndt [EMAIL PROTECTED]
Enviado por: [EMAIL PROTECTED]
Fecha: 05/12/2006 13:49
Asunto: Re: [Flightgear-devel] Initial conditions at reset

 First, as I didnt notice before, the plane is hovering a few feet
 above the
 runway at start as soon as I specify an initial velocity. If I specify
the
 initial velocity as zero, it stands on the ground, just as
 normal. By using
 the --notrim option in the command line, it shows up a few inches
 below the
 runway (similar as it is when specifiying --fdm=NULL). Whats the
 reason for
 this? Could it be somewhee in the trimming code?

If you are not trimming, then the aircraft may be placed initially at an
inappropriate altitude, considering where it's CG is defined, and where the
landing gear are defined to be touching. I'm assuming this is for some
JSBSim aircraft. The altitude that the aircraft is initially placed at
should be the vertical distance from the CG to the landing gear location.

 Second, I m still not seeing clearly in the way the reset is processed...
 Could anyone give me a hint as to where the FDM is initialized during the
 reset process? Is the Initialize()-function in the FGState.cpp file still
 involved at all? And if it is not, where does FG take its starting values
 from and where could I tell it to load my initial conditions at
 reset, too?
 (while running FG with --notrim option)

Have you looked inside JSBSim.cxx? That's the interface between FlightGear
and JSBSim.

Jon


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel