Joacim Persson wrote: > #1 (below) is a call to localWind for the thruster calculations, only the > thruster > altitude is NAN. >
> "_global_ground" are all NAN:s too. But I think by then, my insane turns had > become insane loopings. (Hard to tell with the view flipping around like > that.) I can't see where the NAN value of _global_ground came from, from a > stack backtrace, so the lead ends there. > Hi Joacim, to find the line, where the NAN is generated you can easily switch on the floating point exceptions while the FDM is calculating. e.g. for windows: file model.cpp in FDM/YASim: add #include <windows.h> #include <float.h> and change the function void Model::iterate(): void Model::iterate() { _clearfp();_controlfp( 0|_EM_INEXACT|_EM_INVALID|_EM_UNDERFLOW/*|_EM_OVERFLOW|_EM_DENORMAL*/, _MCW_EM ); initIteration(); initRotorIteration(); _body.recalc(); // FIXME: amortize this, somehow _integrator.calcNewInterval(); _clearfp(); // always call _clearfp before enabling/unmasking a FPU exception _controlfp( _MCW_EM , _MCW_EM ); } for an other compiler it should be similar (in bootstrap.cxx you can find some examples). Maik Maik ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel