From 24e1dcc7fe449b7c20a494d9db2be51c9f918a2d Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Mon, 7 Mar 2022 09:46:27 -0700 Subject: [PATCH] Make sure active motor list is updated after all stage state changes Use getActiveMotors() instead of getMotors() to get motors in thrust calculation --- .../sf/openrocket/rocketcomponent/FlightConfiguration.java | 7 ++++--- .../openrocket/simulation/AbstractSimulationStepper.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 2ec435327..7cbd9f0bf 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -109,23 +109,23 @@ public class FlightConfiguration implements FlightConfigurableParameter activeMotorList = status.getMotors(); + Collection activeMotorList = status.getActiveMotors(); for (MotorClusterState currentMotorState : activeMotorList ) { thrust += currentMotorState.getAverageThrust( status.getSimulationTime(), currentTime ); //thrust += currentMotorState.getThrust( currentTime );