My refactoring left two values uninitialized when running a
helicopter. Melchior caught the bug.
This commit is contained in:
parent
6b1e5f905a
commit
9d15561937
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue