Skip to content

Commit

Permalink
Made corrections to unit tests based on issue #226
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Aug 28, 2017
1 parent 27f9881 commit 992cd78
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE( test_PointingAnglesCalculator )
stationState->getRotationFromBodyFixedToTopocentricFrame( 0.0 ) * inertialToBodyFixedFrame *
testCartesianPoint ;
TUDAT_CHECK_MATRIX_CLOSE_FRACTION(
testPointInLocalFrame, expectedTestPointInLocalFrame, std::numeric_limits< double >::epsilon( ) );
testPointInLocalFrame, expectedTestPointInLocalFrame, ( 10.0 * std::numeric_limits< double >::epsilon( ) ) );
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ BOOST_AUTO_TEST_CASE( testRelativisticAccelerationPartial )

// Load spice kernel.
std::string kernelsPath = input_output::getSpiceKernelPath( );
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de-403-masses.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "pck00009.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de-403-masses.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de421.bsp");

// Set vehicle and earth state.
Expand Down Expand Up @@ -728,8 +728,8 @@ BOOST_AUTO_TEST_CASE( testEmpiricalAccelerationPartial )

// Load spice kernel.
std::string kernelsPath = input_output::getSpiceKernelPath( );
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de-403-masses.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "pck00009.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de-403-masses.tpc");
spice_interface::loadSpiceKernelInTudat( kernelsPath + "de421.bsp");

// Set vehicle and earth state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ BOOST_AUTO_TEST_CASE( testCartesianStatePartials )
{
//Load spice kernels.
std::string kernelsPath = input_output::getSpiceKernelPath( );
loadSpiceKernelInTudat( kernelsPath + "pck00009.tpc");
loadSpiceKernelInTudat( kernelsPath + "de-403-masses.tpc");
loadSpiceKernelInTudat( kernelsPath + "de421.bsp");
loadSpiceKernelInTudat( kernelsPath + "naif0009.tls");
loadSpiceKernelInTudat( kernelsPath + "pck00009.tpc");

// Specify initial time
double initialEphemerisTime = 1.0E7;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE( test_EstimationFromPosition )
{
BOOST_CHECK_SMALL( std::fabs( estimationError( i ) ), 5.0E-3 );
BOOST_CHECK_SMALL( std::fabs( estimationError( i + 3 ) ), 5.0E-7 );
BOOST_CHECK_SMALL( std::fabs( estimationError( i + 18 ) ), 2.0E-4 );
BOOST_CHECK_SMALL( std::fabs( estimationError( i + 18 ) ), 5.0E-4 );
}

BOOST_CHECK_SMALL( std::fabs( estimationError( 6 ) ), 5.0E-6 );
Expand Down

0 comments on commit 992cd78

Please sign in to comment.