]> git.mxchange.org Git - flightgear.git/commit
Ron Jensen: fixed a potential NaN and Segfault in JSBSim propeller code
authorThorstenB <brehmt@gmail.com>
Sat, 11 Feb 2012 16:11:13 +0000 (17:11 +0100)
committerThorstenB <brehmt@gmail.com>
Sat, 11 Feb 2012 16:12:14 +0000 (17:12 +0100)
commit58e79013e3c1d412d8e1f8adc0c39a400484c5ae
tree3396f73bcfd6923503f266e219364a52a4f897f0
parenta8d5ac90c6c3ea87d11ca4bdee25e38714add13f
Ron Jensen: fixed a potential NaN and Segfault in JSBSim propeller code
The property /fdm/jsbsim/propulsion/engine/prop-induced-velocity_fps
gives wrong answers, and can become NaN under certain conditions. When thrust is
negative and forward velocity is small we can take the square root of a negative
number. This could occur, for example, when using reverse thrusters on landing.
The value comes out much too high when alpha is near 180, such as taxing with a
tail wind.
src/FDM/JSBSim/models/propulsion/FGPropeller.cpp