Fix the test for recovery deplyed under thrust.
This commit is contained in:
parent
3efce7e8c5
commit
5a79c210cd
@ -440,12 +440,10 @@ public class BasicEventSimulationEngine implements SimulationEngine {
|
|||||||
// TODO: HIGH: Check stage activeness for other events as well?
|
// TODO: HIGH: Check stage activeness for other events as well?
|
||||||
|
|
||||||
// Check whether any motor in the active stages is active anymore
|
// Check whether any motor in the active stages is active anymore
|
||||||
Collection<MotorConfiguration> activeMotors = currentStatus.getConfiguration().getActiveMotors();
|
for (MotorClusterState state : currentStatus.getActiveMotors() ) {
|
||||||
for (MotorConfiguration curMotor : activeMotors) {
|
if ( state.isSpent() ) {
|
||||||
RocketComponent comp = ((RocketComponent) curMotor.getMount());
|
|
||||||
int stageNumber = comp.getStageNumber();
|
|
||||||
if (!currentStatus.getConfiguration().isStageActive(stageNumber))
|
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
currentStatus.getWarnings().add(Warning.RECOVERY_DEPLOYMENT_WHILE_BURNING);
|
currentStatus.getWarnings().add(Warning.RECOVERY_DEPLOYMENT_WHILE_BURNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user