Oops, forgot I had a modified file in here

This commit is contained in:
JoePfeiffer 2023-10-16 16:22:48 -06:00
parent 3ecb87c861
commit afed541fb1

View File

@ -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()));
} }
} }