test_planetHeading

test_planetHeading.test_planetHeading(show_plots=False, relTol=1e-08)[source]

Test Description

Test that a planet heading is properly calculated from a spacecraft and planet position and spacecraft attitude. To test this, the earth is placed at the inertial origin. A spacecraft with inertial attitude is placed at 1AU in the z-direction. The heading is checked to be [0, 0, -1]. These values were chosen arbitrarily. They are checked to be accurate to within a relative tolerance of the input relTol, 1e-8 by default.

Parameters:

relTol (float) – positive, the relative tolerance to which the result is checked.

Variables Being Tested

This test checks that headingOut stores the pulled log of the module bodyHeadingOutMsg.