From 8cca0adc5893f5836de087de072f95d635ce22dd Mon Sep 17 00:00:00 2001 From: Colin Douglas Howell Date: Thu, 27 Mar 2014 02:12:11 -0700 Subject: [PATCH] Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes) Correct Airplane::compileFuselage() so that a Fuselage's "cx" only affects drag on the X axis. --- src/FDM/YASim/Airplane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index 15fd4d683..72d2b7b29 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -547,9 +547,10 @@ float Airplane::compileFuselage(Fuselage* f) Surface* s = new Surface(); s->setPosition(pos); float sideDrag = len/wid; + s->setXDrag(f->_cx); s->setYDrag(sideDrag*f->_cy); s->setZDrag(sideDrag*f->_cz); - s->setTotalDrag(scale*segWgt*f->_cx); + s->setTotalDrag(scale*segWgt); s->setInducedDrag(f->_idrag); // FIXME: fails for fuselages aligned along the Y axis -- 2.39.5