@@ -52,7 +52,7 @@ class FGInitialConditionTest : public CxxTest::TestSuite
5252 TS_ASSERT_EQUALS (ic.GetBetaDegIC (), 0.0 );
5353 TS_ASSERT_EQUALS (ic.GetBetaDegIC (), 0.0 );
5454 TS_ASSERT_EQUALS (ic.GetBetaRadIC (), 0.0 );
55- TS_ASSERT_EQUALS (ic.GetWindFpsIC (), 0.0 );
55+ TS_ASSERT_EQUALS (ic.GetWindMagFpsIC (), 0.0 );
5656 TS_ASSERT_EQUALS (ic.GetWindDirDegIC (), 0.0 );
5757 TS_ASSERT_EQUALS (ic.GetWindUFpsIC (), 0.0 );
5858 TS_ASSERT_EQUALS (ic.GetWindVFpsIC (), 0.0 );
@@ -356,10 +356,10 @@ class FGInitialConditionTest : public CxxTest::TestSuite
356356 TS_ASSERT_DELTA (ic.GetWindNFpsIC (), 1.0 , epsilon);
357357 TS_ASSERT_DELTA (ic.GetWindEFpsIC (), 2.0 , epsilon);
358358 TS_ASSERT_DELTA (ic.GetWindDFpsIC (), 3.0 , epsilon);
359- TS_ASSERT_DELTA (ic.GetWindFpsIC (), sqrt (5.0 ), epsilon);
359+ TS_ASSERT_DELTA (ic.GetWindMagFpsIC (), sqrt (5.0 ), epsilon);
360360 TS_ASSERT_DELTA (ic.GetWindDirDegIC (), atan2 (2.0 , 1.0 )*180 ./M_PI, epsilon);
361361
362- double mag = ic.GetWindFpsIC ();
362+ double mag = ic.GetWindMagFpsIC ();
363363 ic.SetWindDirDegIC (30 .);
364364 TS_ASSERT_DELTA (ic.GetWindNFpsIC (), 0.5 *mag*sqrt (3.0 ), epsilon);
365365 TS_ASSERT_DELTA (ic.GetWindEFpsIC (), 0.5 *mag, epsilon);
@@ -369,5 +369,10 @@ class FGInitialConditionTest : public CxxTest::TestSuite
369369 TS_ASSERT_DELTA (ic.GetWindNFpsIC (), 3.5 *sqrt (3.0 )*ktstofps, epsilon);
370370 TS_ASSERT_DELTA (ic.GetWindEFpsIC (), 3.5 *ktstofps, epsilon);
371371 TS_ASSERT_DELTA (ic.GetWindDFpsIC (), 3.0 , epsilon);
372+
373+ ic.SetWindMagFpsIC (7.0 );
374+ TS_ASSERT_DELTA (ic.GetWindNFpsIC (), 3.5 * sqrt (3.0 ), epsilon);
375+ TS_ASSERT_DELTA (ic.GetWindEFpsIC (), 3.5 , epsilon);
376+ TS_ASSERT_DELTA (ic.GetWindDFpsIC (), 3.0 , epsilon);
372377 }
373378};
0 commit comments