Oops, forgot I had a modified file in here
This commit is contained in:
parent
3ecb87c861
commit
afed541fb1
@ -255,7 +255,7 @@ public class BasicEventSimulationEngine implements SimulationEngine {
|
|||||||
final boolean wantToTumble = (cg > cp && aoa > AOA_TUMBLE_CONDITION);
|
final boolean wantToTumble = (cg > cp && aoa > AOA_TUMBLE_CONDITION);
|
||||||
final boolean isSustainer = currentStatus.getConfiguration().isStageActive(0);
|
final boolean isSustainer = currentStatus.getConfiguration().isStageActive(0);
|
||||||
final boolean isApogee = currentStatus.isApogeeReached();
|
final boolean isApogee = currentStatus.isApogeeReached();
|
||||||
if (wantToTumble) {
|
if (wantToTumble && (isApogee || !isSustainer)) {
|
||||||
addEvent(new FlightEvent(FlightEvent.Type.TUMBLE, currentStatus.getSimulationTime()));
|
addEvent(new FlightEvent(FlightEvent.Type.TUMBLE, currentStatus.getSimulationTime()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user