No more addEvent in BasicEventSimualationEngine; only down in currentStatus
This commit is contained in:
parent
7f56cd01f5
commit
18b0e39738
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user