From f7359d969910ad71abb38638905e75aa49970a58 Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Tue, 21 Mar 2017 22:46:33 +0100 Subject: [PATCH] YASim: add bug warning messages. --- src/FDM/YASim/FGFDM.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index 40bf6efa2..d981eb516 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -832,7 +832,12 @@ Wing* FGFDM::parseWing(XMLAttributes* a, const char* type, Version * version) w->setSweep(attrf(a, "sweep", 0) * DEG2RAD); w->setTaper(attrf(a, "taper", 1)); w->setDihedral(attrf(a, "dihedral", defDihed) * DEG2RAD); - w->setCamber(attrf(a, "camber", 0)); + + float camber = attrf(a, "camber", 0); + if (!version->isVersionOrNewer(Version::YASIM_VERSION_2017_2) && (camber == 0)) { + SG_LOG(SG_FLIGHT, SG_DEV_WARN, "YASIM warning: versions before 2017.2 are buggy for wings with camber=0"); + } + w->setCamber(camber); // These come in with positive indicating positive AoA, but the // internals expect a rotation about the left-pointing Y axis, so