Skip to content

Commit 4a3cb71

Browse files
committed
fix
1 parent c746696 commit 4a3cb71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/simulator/Hill.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,19 @@ double Hill::calculatePointsForBackWindBy50PercentsOfFrontWind(double pointsForF
222222
double Hill::calculateBestTakeoffHeightLevel(Hill *hill)
223223
{
224224
if(hill->getTakeoffEffect() > hill->getFlightEffect())
225-
return (hill->getTakeoffEffect() / hill->getFlightEffect()) / 0.9;
225+
return 1 + (hill->getTakeoffEffect() / hill->getFlightEffect()) / 0.7;
226226
else
227-
return -(hill->getFlightEffect() / hill->getTakeoffEffect()) / 0.9;
227+
return 1 + -(hill->getFlightEffect() / hill->getTakeoffEffect()) / 0.7;
228228

229229
return 0;
230230
}
231231

232232
double Hill::calculateBestFlightHeightLevel(Hill *hill)
233233
{
234234
if(hill->getTakeoffEffect() > hill->getFlightEffect())
235-
return (hill->getTakeoffEffect() / hill->getFlightEffect()) / 0.6;
235+
return 1 + (hill->getTakeoffEffect() / hill->getFlightEffect()) / 0.4;
236236
else
237-
return -(hill->getFlightEffect() / hill->getTakeoffEffect()) / 0.6;
237+
return 1 + -(hill->getFlightEffect() / hill->getTakeoffEffect()) / 0.4;
238238

239239
return 0;
240240
}

0 commit comments

Comments
 (0)