]> git.mxchange.org Git - flightgear.git/commit
Maik Justus:
authorcurt <curt>
Sat, 9 Dec 2006 20:37:59 +0000 (20:37 +0000)
committercurt <curt>
Sat, 9 Dec 2006 20:37:59 +0000 (20:37 +0000)
commit5d18c09c08472e35b0e8109cf60fff538dc3b43c
tree15a5d3f559fef71020952d9c4b186e9bd4df3eb4
parentb9e4775a7a4bbeac9e3af2bf617ddacfbc2d47bf
Maik Justus:

I found a small conspicuity  in YASim. The destructor of the fdm was
never called, therefore a modification of the heli fdm (not in cvs) did
not work after reset (I tie some properties and untie them in the
destructor, but the destructor was not called and the tieing failed
after reset. I don't know if any other parts of YASim need their
destructors, at least it wastes memory.

Another small fix I have made to the turbulence.cpp. The code needed,
that (a-floor(a)) is >=0 and <1. This is analytical correct, but
numerical only for "small" values. In normal fg-operation a in this
function is always small, but with unrealistic parameters in the
aircraft config file it is not and then fg crashes (instead a crash of
the aircraft or cataputling it far away).
src/FDM/YASim/Turbulence.cpp
src/FDM/YASim/YASim.cxx
src/FDM/YASim/YASim.hxx