]> git.mxchange.org Git - flightgear.git/commitdiff
Fix for issue 1400 (YASim slats always give full stall enhancement)
authorColin Douglas Howell <colin.d.howell@gmail.com>
Sat, 22 Mar 2014 19:11:39 +0000 (12:11 -0700)
committerColin Douglas Howell <colin.d.howell@gmail.com>
Sat, 22 Mar 2014 19:11:39 +0000 (12:11 -0700)
Surface::stallFunc() now scales _slatAlpha by _slatPos when adjusting stallAlpha.

src/FDM/YASim/Surface.cpp

index db977f58a943e217f2acbb7ea9d6ecf9354bf6d4..e6f581a2253473cd78d7df15f9518c61b098af1c 100644 (file)
@@ -281,7 +281,7 @@ float Surface::stallFunc(float* v)
         return 1;
 
     if(i == 0)
-       stallAlpha += _slatAlpha;
+       stallAlpha += _slatPos * _slatAlpha;
 
     // Beyond the stall
     if(alpha > stallAlpha+_widths[i])