Vivian Meazza wrote:
> Whilst working on the DC3 model, trying to help a little with this
> problem, I noted that the model flies left-wing low. This seems to
> be related to the twist element set on the wing. The DC3 has -3 deg
> set. Reverse this and the model flies wings right wing low. It seems
> as if the twist applies across the whole wing rather than being
> reversed for half the wing. It won't run at all with twist = 0. Is
> this a bug or a feature?

Indeed, the twist assignment for wings looks a little wrong.  These
are the twist assignments for the symmetrical left and right wing
segments:

            s->setTwist(_twist * frac);
            s->setTwist(_twist * Math::sqrt(frac));

This is almost certainly a mistake; I took the sqrt() call out and
committed a symmetric right-side twist to CVS.  David, this was your
code originally, right?  Is that your intent, or should I have put a
sqrt() into the left side?

Andy

Index: Wing.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/Wing.cpp,v
retrieving revision 1.4
diff -u -r1.4 Wing.cpp
--- Wing.cpp    18 Feb 2003 17:37:28 -0000      1.4
+++ Wing.cpp    9 Feb 2004 15:11:32 -0000
@@ -360,7 +360,7 @@
                 sr->surface = s;
                 sr->weight = chord * segWid;
                 s->setTotalDrag(sr->weight);
-                s->setTwist(_twist * Math::sqrt(frac));
+                s->setTwist(_twist * frac);
                 _surfs.add(sr);
             }
         }


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to