test_prescribedTrans

test_prescribedTrans.prescribedTransTestFunction(show_plots, scalarPosInit, scalarPosRef, scalarAccelMax, accuracy)[source]

Call this routine directly to run the unit test.

test_prescribedTrans.test_prescribedTransTestFunction(show_plots, scalarPosInit, scalarPosRef, scalarAccelMax, accuracy)[source]

Validation Test Description

This unit test ensures that the profiled translation for a secondary prescribed rigid body connected to the spacecraft hub is properly computed for a series of initial and reference positions and maximum accelerations. The final prescribed position and velocity magnitudes are compared with the reference values.

Test Parameters

Parameters:
  • scalarPosInit (float) – [m] Initial scalar position of the F frame with respect to the M frame

  • scalarPosRef (float) – [m] Reference scalar position of the F frame with respect to the M frame

  • scalarAccelMax (float) – [m/s^2] Maximum acceleration for the translational maneuver

  • accuracy (float) – absolute accuracy value used in the validation tests

Description of Variables Being Tested

This unit test ensures that the profiled translation is properly computed for a series of initial and reference positions and maximum accelerations. The final prescribed position magnitude r_FM_M_Final and velocity magnitude rPrime_FM_M_Final are compared with the reference values r_FM_M_Ref and rPrime_FM_M_Ref, respectively.