From 9d15561937ed60cd42198a38872d75c4edfeba28 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 3 Dec 2003 21:26:03 +0000 Subject: [PATCH] My refactoring left two values uninitialized when running a helicopter. Melchior caught the bug. --- src/FDM/YASim/Airplane.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index bc06500c4..09707c7f7 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -1033,6 +1033,9 @@ void Airplane::solve() void Airplane::solveHelicopter() { + _solutionIterations = 0; + _failureMsg = 0; + applyDragFactor(Math::pow(15.7/1000, 1/SOLVE_TWEAK)); applyLiftRatio(Math::pow(104, 1/SOLVE_TWEAK)); setupState(0,0, &_cruiseState); -- 2.39.5