[fix #497] Disables Fin-Thickness-Warnings on Phantom Fins
This commit is contained in:
parent
6efc7e42a1
commit
0823de5e2a
@ -65,7 +65,7 @@ public class FinSetCalc extends RocketComponentCalc {
|
||||
FinSet fin = (FinSet) component;
|
||||
|
||||
thickness = fin.getThickness();
|
||||
bodyRadius = fin.getFinFront().y;
|
||||
bodyRadius = fin.getBodyRadius();
|
||||
finCount = fin.getFinCount();
|
||||
|
||||
baseRotation = fin.getBaseRotation();
|
||||
@ -101,7 +101,7 @@ public class FinSetCalc extends RocketComponentCalc {
|
||||
}
|
||||
|
||||
// Add warnings (radius/2 == diameter/4)
|
||||
if (thickness > bodyRadius / 2) {
|
||||
if( (0 < bodyRadius) && (thickness > bodyRadius / 2)){
|
||||
warnings.add(Warning.THICK_FIN);
|
||||
}
|
||||
warnings.addAll(geometryWarnings);
|
||||
|
@ -110,7 +110,7 @@ public class TubeFinSetCalc extends RocketComponentCalc {
|
||||
}
|
||||
|
||||
// Add warnings (radius/2 == diameter/4)
|
||||
if (thickness > bodyRadius / 2) {
|
||||
if( (0 < bodyRadius) && (thickness > bodyRadius / 2)){
|
||||
warnings.add(Warning.THICK_FIN);
|
||||
}
|
||||
warnings.add(new Other("Tube fin support is experimental"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user