test_formationBarycenter
- test_formationBarycenter.test_formationBarycenter(show_plots, accuracy)[source]
Validation Test Description
This unit test verifies the formationBarycenter module. It checks the barycenter of three spacecraft using both cartesian coordinates and orbital elements weighted averaging.
Test Parameters
The test parameters used are the following:
- Parameters:
accuracy (float) – absolute accuracy value used in the validation tests
Description of Variables Being Tested
In this file we are checking the values of the variables
barycenterbarycenterVelocitybarycenterCbarycenterVelocityC
which represent the center of mass position and velocity vectors. The variables ending in
Care pulled from the C-wrapped navigation output message, whereas the other two come from the usual C++ message. All these variables are compared totrueBarycenterandtrueBarycenterVelocity, which contain their true values.As stated, both the C and C++ wrapped message outputs are checked.