No more addEvent in BasicEventSimualationEngine; only down in currentStatus

This commit is contained in:
JoePfeiffer 2024-01-07 14:43:03 -07:00
parent 7f56cd01f5
commit 18b0e39738

View File

@ -423,7 +423,7 @@ public class BasicEventSimulationEngine implements SimulationEngine {
ThrustCurveMotor motor = (ThrustCurveMotor) motorState.getMotor();
double[] timePoints = motor.getTimePoints();
for (double point : timePoints) {
addEvent(new FlightEvent(FlightEvent.Type.ALTITUDE, point, event.getSource(), motorState));
currentStatus.addEvent(new FlightEvent(FlightEvent.Type.ALTITUDE, point, event.getSource(), motorState));
}
// and queue up the burnout for this motor, as well.