From cf7763ab6e4cee5ee9db0e0e11c583f261b8f27d Mon Sep 17 00:00:00 2001 From: hcraigmiller <68821492+hcraigmiller@users.noreply.github.com> Date: Tue, 24 May 2022 12:52:25 -0700 Subject: [PATCH] Remove/changed comments Revised comments re suggestion of SiboVG; checking on global cd change. --- core/src/net/sf/openrocket/rocketcomponent/Streamer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/Streamer.java b/core/src/net/sf/openrocket/rocketcomponent/Streamer.java index c3b04a34d..240e3c9e7 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/Streamer.java +++ b/core/src/net/sf/openrocket/rocketcomponent/Streamer.java @@ -95,7 +95,7 @@ public class Streamer extends RecoveryDevice { double area = getArea(); stripWidth = MathUtil.safeSqrt(area / ratio); stripLength = ratio * stripWidth; - clearPreset(); // ---- + clearPreset(); fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE); } @@ -118,7 +118,7 @@ public class Streamer extends RecoveryDevice { double ratio = Math.max(getAspectRatio(), 0.01); stripWidth = MathUtil.safeSqrt(area / ratio); stripLength = ratio * stripWidth; - clearPreset(); // ---- + clearPreset(); fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE); } @@ -138,14 +138,14 @@ public class Streamer extends RecoveryDevice { if ( preset.has(ComponentPreset.WIDTH)) { this.stripWidth = preset.get(ComponentPreset.WIDTH); } - // ---- Set Cd value when preset is selected after manual Cd change + // Set Cd value when preset is selected after manual Cd change double density = this.getMaterial().getDensity(); double cd; cd = 0.034 * ((density + 0.025) / 0.105) * (stripLength + 1) / stripLength; cd = MathUtil.min(cd, MAX_COMPUTED_CD); this.cd = cd; this.cdAutomatic = true; - // ---- + super.loadFromPreset(preset); // Fix the length to the stripWidth since RocketComponent assigns ComponentPreset.LENGTH to length. this.length = this.stripWidth;