On lundi 08 décembre 2008, Anders Gidenstam wrote:
> On Mon, 8 Dec 2008, gerard robin wrote:
> > Unfortunately as i said before , the non working examples, are with
> > JSBSim FDM aircraft that i am working on. ( old models translated to FG
> > 1.9 )
> > None of them are in cvs yet.
> > And i said the problem was not new to me.
> > I never , before these day,  told anything about it, which could have
> > been coming from me.
>
> Well, I was hoping for a preview :)
> It is difficult to look for the bugs you are seeing without a FDM config
> that exposes them.
>
> Could you try the below change in src/FDM/JSBSim/models/FGAuxiliary.cpp?
> It prevents calls to FGAuxiliary::GetTAT_C() from returning an
> uninitialized value. These early calls will return absolute zero instead,
> maybe not much better but at least it prevents NaN or invalid double
> values from entering the computation at this point.
> This fixes the valgrind errors I got with the 737_cruise_steady_turn.xml
> script.
>
> Index: src/models/FGAuxiliary.cpp
> ===================================================================
> RCS file: /cvsroot/jsbsim/JSBSim/src/models/FGAuxiliary.cpp,v
> retrieving revision 1.29
> retrieving revision 1.30
> diff -u -p -r1.29 -r1.30
> --- src/models/FGAuxiliary.cpp        21 Nov 2008 02:45:27 -0000      1.29
> +++ src/models/FGAuxiliary.cpp        8 Dec 2008 12:27:31 -0000       1.30
> @@ -79,6 +79,7 @@ FGAuxiliary::FGAuxiliary(FGFDMExec* fdme
>     day_of_year = 1;
>     seconds_in_day = 0.0;
>     hoverbmac = hoverbcg = 0.0;
> +  tatc = RankineToCelsius(tat);
>
>     vPilotAccel.InitMatrix();
>     vPilotAccelN.InitMatrix();

Hello Anders,
Just patched and tested .
:( sorry, :(  
same NaN error

Cheers
-- 
Gérard
http://pagesperso-orange.fr/GRTux/

J'ai décidé d'être heureux parce que c'est bon pour la santé. 
Voltaire


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to