Merge branch 'unstable' into SIMFAIL-flight-event
This commit is contained in:
commit
6273c7a7be
@ -41,7 +41,7 @@ public class DeploymentConfiguration implements FlightConfigurableParameter<Depl
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean isActivationEvent(DeploymentConfiguration config, FlightEvent e, RocketComponent source) {
|
||||
if (e.getType() != FlightEvent.Type.ALTITUDE)
|
||||
if ((e.getType() != FlightEvent.Type.ALTITUDE) || (e.getData() == null))
|
||||
return false;
|
||||
|
||||
double alt = config.deployAltitude;
|
||||
@ -210,4 +210,4 @@ public class DeploymentConfiguration implements FlightConfigurableParameter<Depl
|
||||
public List<DeploymentConfiguration> getConfigListeners() {
|
||||
return configListeners;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +423,7 @@ public class BasicEventSimulationEngine implements SimulationEngine {
|
||||
ThrustCurveMotor motor = (ThrustCurveMotor) motorState.getMotor();
|
||||
double[] timePoints = motor.getTimePoints();
|
||||
for (double point : timePoints) {
|
||||
currentStatus.addEvent(new FlightEvent(FlightEvent.Type.ALTITUDE, point, event.getSource(), motorState));
|
||||
currentStatus.addEvent(new FlightEvent(FlightEvent.Type.ALTITUDE, point, event.getSource(), null));
|
||||
}
|
||||
|
||||
// and queue up the burnout for this motor, as well.
|
||||
|
Loading…
x
Reference in New Issue
Block a user