Merge pull request #1297 from hcraigmiller/Split-fin-mass-correction
[Fixes Issue #1292] Calculates per fin mass when splitting a set of fins with a mass override
This commit is contained in:
commit
cf5190c010
@ -28,8 +28,11 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
||||
* Maximum allowed cant of fins.
|
||||
*/
|
||||
public static final double MAX_CANT_RADIANS = (15.0 * Math.PI / 180);
|
||||
|
||||
public enum CrossSection {
|
||||
|
||||
public void setOverrideMass() {
|
||||
}
|
||||
|
||||
public enum CrossSection {
|
||||
//// Square
|
||||
SQUARE(trans.get("FinSet.CrossSection.SQUARE"), 1.00),
|
||||
//// Rounded
|
||||
|
@ -129,6 +129,7 @@ public abstract class FinSetConfig extends RocketComponentConfig {
|
||||
copy.setFinCount(1);
|
||||
copy.setBaseRotation(base + i * 2 * Math.PI / count);
|
||||
copy.setName(copy.getName() + " #" + (i + 1));
|
||||
copy.setOverrideMass(((FinSet) component).getOverrideMass()/((FinSet) component).getFinCount());
|
||||
parent.addChild(copy, index + i);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user