diff --git a/core/src/net/sf/openrocket/aerodynamics/BarrowmanCalculator.java b/core/src/net/sf/openrocket/aerodynamics/BarrowmanCalculator.java index 60d8eec6c..0afe28222 100644 --- a/core/src/net/sf/openrocket/aerodynamics/BarrowmanCalculator.java +++ b/core/src/net/sf/openrocket/aerodynamics/BarrowmanCalculator.java @@ -204,8 +204,7 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator { Coordinate cp_inst = instanceForces.getCP(); Coordinate cp_abs = context.transform.transform(cp_inst); - if ((comp instanceof FinSet) && (((FinSet)comp).getFinCount() > 2)) - cp_abs = cp_abs.setY(0.0).setZ(0.0); + cp_abs = cp_abs.setY(0.0).setZ(0.0); // if( 1e-6 < cp_inst.weight) { // System.err.println("_________ cp:inst: (rel): " + cp_inst.toString()); diff --git a/core/test/net/sf/openrocket/aerodynamics/BarrowmanCalculatorTest.java b/core/test/net/sf/openrocket/aerodynamics/BarrowmanCalculatorTest.java index c54d5cfba..f4c638b50 100644 --- a/core/test/net/sf/openrocket/aerodynamics/BarrowmanCalculatorTest.java +++ b/core/test/net/sf/openrocket/aerodynamics/BarrowmanCalculatorTest.java @@ -338,20 +338,13 @@ public class BarrowmanCalculatorTest { // results with and without it // cpNoPods (0.34125,0.00000,0.00000,w=16.20502) -- interference disabled // cpNoPods (0.34797,0.00000,0.00000,w=19.34773) -- interference enabled - - // another note: the fact that this is seen as three one-fin - // FinSets instead of a single three-fin FinSet means the CP - // will be off-axis (one of the fins is taken as having an - // angle of 0 to the airstream, so it has no contribution). - // This doesn't turn out to cause a problem in an actual - // simulation. final Coordinate cpNoPods = calcNoPods.getCP(configNoPods, conditionsNoPods, warningsNoPods); final Coordinate cpPods = calcPods.getCP(configPods, conditionsPods, warningsPods); System.out.printf("with pods %s\n", cpPods.toString()); System.out.printf("without pods %s\n", cpNoPods.toString()); assertEquals(" Alpha III With Pods rocket cp x value is incorrect:", cpNoPods.x - 0.002788761352, cpPods.x, EPSILON); - assertEquals(" Alpha III With Pods rocket cp y value is incorrect:", cpNoPods.y - 0.005460218430206499, cpPods.y, EPSILON); + assertEquals(" Alpha III With Pods rocket cp y value is incorrect:", cpNoPods.y, cpPods.y, EPSILON); assertEquals(" Alpha III With Pods rocket cp z value is incorrect:", cpNoPods.z, cpPods.z, EPSILON); assertEquals(" Alpha III With Pods rocket CNa value is incorrect:", cpPods.weight, cpNoPods.weight - 3.91572, EPSILON); }