test_PrescribedMotionStateEffector

test_PrescribedMotionStateEffector.test_prescribed_motion_state_effector(show_plots, theta_init, theta_ref, pos_init, pos_ref)[source]

Verification Test Description

The unit test for this module is an integrated test with two prescribed motion kinematic profiler modules. This is required because the prescribed motion module does not define or integrate states for the prescribed body. Both the Module: prescribedRotation1DOF and Module: prescribedLinearTranslation modules are configured so that the prescribed body simultaneously translates and rotates relative to the spacecraft hub. The initial attitude and displacement of the prescribed body are varied relative to the hub.

The test checks that the conservation quantities of the spacecraft orbital energy, orbital angular momentum, and rotational angular momentum remain constant over the duration of the simulation.

Test Parameters

Parameters:
  • theta_init (float) – [rad] Initial PRV angle of the P frame with respect to the M frame

  • theta_ref (float) – [rad] Reference PRV angle of the P frame with respect to the M frame

  • pos_init (float) – [m] Initial displacement of the P frame with respect to the M frame

  • pos_ref (float) – [m] Reference displacement of the P frame with respect to the M frame

Description of Variables Being Tested

The test checks that the conservation quantities of the spacecraft orbital energy, orbital angular momentum, and rotational angular momentum remain constant over the duration of the simulation.