diff --git a/core/test/net/sf/openrocket/masscalc/MassCalculatorTest.java b/core/test/net/sf/openrocket/masscalc/MassCalculatorTest.java index 1977565dd..099d45b46 100644 --- a/core/test/net/sf/openrocket/masscalc/MassCalculatorTest.java +++ b/core/test/net/sf/openrocket/masscalc/MassCalculatorTest.java @@ -45,8 +45,8 @@ public class MassCalculatorTest extends BaseTestCase { assertEquals("Simple Rocket CM is incorrect: ", expCM, actualRocketDryCM); - double expMOIrot = 5.394503232245634E-5; - double expMOIlong = 3.029224106873237E-4; + double expMOIrot = 1.8763734635622462E-5; + double expMOIlong = 2.1238394331365588E-4; double actualMOIrot = actualStructure.getRotationalInertia(); double actualMOIlong = actualStructure.getLongitudinalInertia(); @@ -442,10 +442,10 @@ public class MassCalculatorTest extends BaseTestCase { assertEquals(cc.getName() + " Longitudinal MOI calculated incorrectly: ", expInertia, compInertia, EPSILON); final FinSet boosterFins = (FinSet) boosters.getChild(1).getChild(1); - expInertia = 0.00413298; + expInertia = 0.001377661595723823; compInertia = boosterFins.getRotationalInertia(); assertEquals(boosterFins.getName() + " Rotational MOI calculated incorrectly: ", expInertia, compInertia, EPSILON); - expInertia = 0.01215133; + expInertia = 0.004050443797127646; compInertia = boosterFins.getLongitudinalInertia(); assertEquals(boosterFins.getName() + " Longitudinal MOI calculated incorrectly: ", expInertia, compInertia, EPSILON); @@ -668,11 +668,11 @@ public class MassCalculatorTest extends BaseTestCase { RigidBody spent = MassCalculator.calculateBurnout(config); - double expMOIRotational = 0.01593066; + double expMOIRotational = 0.010420016485489425; double boosterMOIRotational = spent.getRotationalInertia(); assertEquals(" Booster x-axis MOI is incorrect: ", expMOIRotational, boosterMOIRotational, EPSILON); - double expMOI_tr = 0.08018692435877221; + double expMOI_tr = 0.06398514917026163; double boosterMOI_tr = spent.getLongitudinalInertia(); assertEquals(" Booster transverse MOI is incorrect: ", expMOI_tr, boosterMOI_tr, EPSILON); } @@ -688,9 +688,9 @@ public class MassCalculatorTest extends BaseTestCase { RigidBody launchData = MassCalculator.calculateLaunch(config); - final double expIxx = 0.01899116; + final double expIxx = 0.013480523485489424; final double actIxx = launchData.getRotationalInertia(); - final double expIyy = 0.08637653; + final double expIyy = 0.07017476021288252; final double actIyy = launchData.getLongitudinalInertia(); assertEquals(" Booster x-axis MOI is incorrect: ", expIxx, actIxx, EPSILON); @@ -731,11 +731,11 @@ public class MassCalculatorTest extends BaseTestCase { assertEquals(" Booster Launch CM is incorrect: ", expCM, boosterSetCM); // Validate MOI - double expMOI_axial = 0.01261079; + double expMOI_axial = 0.007100144485489424; double boosterMOI_xx = burnout.getRotationalInertia(); assertEquals(" Booster x-axis MOI is incorrect: ", expMOI_axial, boosterMOI_xx, EPSILON); - double expMOI_tr = 16.046826943504207; + double expMOI_tr = 16.030625168315694; double boosterMOI_tr = burnout.getLongitudinalInertia(); assertEquals(" Booster transverse MOI is incorrect: ", expMOI_tr, boosterMOI_tr, EPSILON); } @@ -785,11 +785,11 @@ public class MassCalculatorTest extends BaseTestCase { assertEquals(" Booster Launch CM is incorrect: ", expCM, boosterCM); // Validate MOI - double expMOI_axial = 0.031538609; + double expMOI_axial = 0.026027963480146098; double boosterMOI_xx = boosterData.getRotationalInertia(); assertEquals(" Booster x-axis MOI is incorrect: ", expMOI_axial, boosterMOI_xx, EPSILON); - double expMOI_tr = 0.37548843; + double expMOI_tr = 0.35928666329363634; double boosterMOI_tr = boosterData.getLongitudinalInertia(); assertEquals(" Booster transverse MOI is incorrect: ", expMOI_tr, boosterMOI_tr, EPSILON); } @@ -832,11 +832,11 @@ public class MassCalculatorTest extends BaseTestCase { assertEquals(" Booster Launch CM is incorrect: ", expCM, structure.getCM()); // Validate MOI - final double expMOI_axial = 0.012610790; + final double expMOI_axial = 0.007100144485489424; double boosterMOI_xx = structure.getRotationalInertia(); assertEquals(" Booster x-axis MOI is incorrect: ", expMOI_axial, boosterMOI_xx, EPSILON); - final double expMOI_tr = 0.063491225; + final double expMOI_tr = 0.047289449862727435; double boosterMOI_tr = structure.getLongitudinalInertia(); assertEquals(" Booster transverse MOI is incorrect: ", expMOI_tr, boosterMOI_tr, EPSILON); }