]> git.mxchange.org Git - flightgear.git/commit
Separate fuselage drag adjustment from that for landing gear and external weights.
authorColin Douglas Howell <colin.d.howell@gmail.com>
Thu, 8 May 2014 21:40:46 +0000 (14:40 -0700)
committerColin Douglas Howell <colin.d.howell@gmail.com>
Mon, 12 May 2014 21:29:48 +0000 (14:29 -0700)
commit907209746fbc975f074f591d12706955f8f3632c
treeb06f72195ec6db28c7b895e6ded4db3d6f73775a
parent98c053792e1fd13d420a510ebd2b033ca345c9dc
Separate fuselage drag adjustment from that for landing gear and external weights.

This commit is in prepartion for the following commit, which is a bug fix for
Issue 1463 (YASim underestimates off-axis forces on fuselages).

Previously the solver would adjust the drag factor for all of an Airplane's
non-Wing Surfaces in one pass, with no attempt to distinguish Fuselage Surfaces
from the Surfaces for Gear and Weights. This makes it difficult to modify how
fuselage drag is calculated while leaving unaffected the drag for landing gear
and external weights.

Now the solver adjusts the drag for an Airplane's fuselages, landing gear, and
external weights in three separate passes. To do this, each Fuselage now has a
list of its Surfaces. The fuselage pass simply iterates through the list of
Fuselages, running through each Fuselage's list of Surfaces.

The Airplane's list of non-Wing Surfaces, "_surfs", is no longer used here, but
there may still be uses of it elsewhere.
src/FDM/YASim/Airplane.cpp
src/FDM/YASim/Airplane.hpp