From b78d5a0b93ca5e29676c9fad4555ea74042c9faa Mon Sep 17 00:00:00 2001 From: david Date: Tue, 18 Feb 2003 17:37:28 +0000 Subject: [PATCH] Interpolate the twist linearly over the wing. Reduce the minimum number of twist segments from 16 to 8. --- src/FDM/YASim/Wing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FDM/YASim/Wing.cpp b/src/FDM/YASim/Wing.cpp index 9899df8be..368cb4ec9 100644 --- a/src/FDM/YASim/Wing.cpp +++ b/src/FDM/YASim/Wing.cpp @@ -330,8 +330,8 @@ void Wing::compile() // and flap1 are set. Right now flap1 overrides. int nSegs = (int)Math::ceil((end-start)/segLen); - if (_twist != 0 && nSegs < 16) // more segments if twisted - nSegs = 16; + if (_twist != 0 && nSegs < 8) // more segments if twisted + nSegs = 8; float segWid = _length * (end - start)/nSegs; int j; @@ -349,7 +349,7 @@ void Wing::compile() sr->surface = s; sr->weight = chord * segWid; s->setTotalDrag(sr->weight); - s->setTwist(_twist * Math::sqrt(1-frac)); + s->setTwist(_twist * frac); _surfs.add(sr); if(_mirror) { -- 2.39.5