From 3c02dbc2d17c3f2bc73e72f18de2f917d9e51801 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Wed, 10 Jan 2024 08:09:23 -0700 Subject: [PATCH] Put "null" in data field of ALTITUDE events inserted for motor firing; check for null in altitude deployment configuration. --- .../openrocket/rocketcomponent/DeploymentConfiguration.java | 4 ++-- .../sf/openrocket/simulation/BasicEventSimulationEngine.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/DeploymentConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/DeploymentConfiguration.java index 3a21493f4..62adb9c67 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/DeploymentConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/DeploymentConfiguration.java @@ -41,7 +41,7 @@ public class DeploymentConfiguration implements FlightConfigurableParameter getConfigListeners() { return configListeners; } -} \ No newline at end of file +} diff --git a/core/src/net/sf/openrocket/simulation/BasicEventSimulationEngine.java b/core/src/net/sf/openrocket/simulation/BasicEventSimulationEngine.java index b7f46b7bf..884643ee5 100644 --- a/core/src/net/sf/openrocket/simulation/BasicEventSimulationEngine.java +++ b/core/src/net/sf/openrocket/simulation/BasicEventSimulationEngine.java @@ -418,7 +418,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)); + addEvent(new FlightEvent(FlightEvent.Type.ALTITUDE, point, event.getSource(), null)); } // and queue up the burnout for this motor, as well.