Hello,

Jon Berndt, Tony Peden, please could you take a look for the next (regarding
crashes of FG/JSBsim during startup on win32/MSVC)?

I'm not sure if I understanding FGInitialCondition right, but my guess is
following:

The input parameters for the JSBsim are (in FG case):
- roll, pitch, heading angles (phi, theta, psi)
- velocity elements (true air velocities or local ground velocities)

The missing parameters are calculated (for example angle of attack-alpha,
sideslip-beta...) i.e. there is a  iteration algorithm launched which from
(for current aircraft) possible alpha range finding a some value according
to other initial parameters (angles, velocities). But (I think) this
algorithm not working correctly for a stationary aircraft (air velocities ==
0) after FG startup.

This is a "call stack" during JSBsim FG startup:

FGJSBsim::set_Euler_Angles( double phi, double theta, double psi )
    fgic->SetPitchAngleRadIC(theta)
        getAlpha()
            solve(&alpha,0)
                GammaEqOfAlpha(double Alpha)

Because all velocity members are 0 , 'GammaEqOfAlpha()' must return always
0, so both f1 and f3 locals of 'solve()' gets zero and  ...  (for MSVC FG
users well known) division by the zero is performed in next ...


Richard Kis








_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to