Package edu.nps.moves.dis7.test
Class EulerConversionsTest
java.lang.Object
edu.nps.moves.dis7.test.EulerConversionsTest
Unit tests for EulerConversions utility class.
Validates conversions between Tait-Bryan angles (heading/pitch/roll in degrees)
and DIS Euler angles (psi/theta/phi in radians) given a geodetic position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCommand-line invocation (CLI) of program, execution starts herestatic voidpreparationstatic voidcleanupvoidTest round-trip: banked turn (heading 45, roll 30)voidTest round-trip: combined heading, pitch, and roll Heading 225 (southwest), pitch 10 up, roll -20 (left bank)voidTest round-trip: heading east (90 degrees)voidTest at equator/prime meridian (lat=0, lon=0) to verify different positionvoidTest round-trip: heading/pitch/roll -> psi/theta/phi -> heading/pitch/roll Entity heading north, level flight at NPS MontereyvoidTest round-trip: pitch down (-15 degrees nose down), heading eastvoidTest round-trip: pitch up (30 degrees nose up), heading northvoidTest at southern hemisphere position: Cape Town (-33.9, 18.4)voidTest round-trip: heading south (180 degrees)voidTest round-trip: heading west (-90 degrees)
-
Constructor Details
-
EulerConversionsTest
public EulerConversionsTest()default constructor
-
-
Method Details
-
setUpClass
@BeforeAll public static void setUpClass()preparation -
tearDownClass
@AfterAll public static void tearDownClass()cleanup -
testRoundTripNorthLevel
@Test public void testRoundTripNorthLevel()Test round-trip: heading/pitch/roll -> psi/theta/phi -> heading/pitch/roll Entity heading north, level flight at NPS Monterey -
testRoundTripEastHeading
@Test public void testRoundTripEastHeading()Test round-trip: heading east (90 degrees) -
testRoundTripSouthHeading
@Test public void testRoundTripSouthHeading()Test round-trip: heading south (180 degrees) -
testRoundTripWestHeading
@Test public void testRoundTripWestHeading()Test round-trip: heading west (-90 degrees) -
testRoundTripPitchUp
@Test public void testRoundTripPitchUp()Test round-trip: pitch up (30 degrees nose up), heading north -
testRoundTripPitchDown
@Test public void testRoundTripPitchDown()Test round-trip: pitch down (-15 degrees nose down), heading east -
testRoundTripBankedTurn
@Test public void testRoundTripBankedTurn()Test round-trip: banked turn (heading 45, roll 30) -
testRoundTripCombinedAngles
@Test public void testRoundTripCombinedAngles()Test round-trip: combined heading, pitch, and roll Heading 225 (southwest), pitch 10 up, roll -20 (left bank) -
testRoundTripEquator
@Test public void testRoundTripEquator()Test at equator/prime meridian (lat=0, lon=0) to verify different position -
testRoundTripSouthernHemisphere
@Test public void testRoundTripSouthernHemisphere()Test at southern hemisphere position: Cape Town (-33.9, 18.4) -
main
Command-line invocation (CLI) of program, execution starts here- Parameters:
args- command-line arguments
-