Use SimulationStatus.addWarning() to add large AOA warnings

This commit is contained in:
JoePfeiffer 2024-10-15 19:41:28 -06:00
parent edf4d03322
commit 02b17dfd16

View File

@ -280,8 +280,7 @@ public class BasicEventSimulationEngine implements SimulationEngine {
} else {
// Stable, so warning about AOA
if (currentStatus.recordWarnings()) {
currentStatus.addEvent(new FlightEvent(FlightEvent.Type.SIM_WARN, currentStatus.getSimulationTime(), null,
new Warning.LargeAOA(aoa)));
currentStatus.addWarning(new Warning.LargeAOA(aoa));
}
}
}