test_prescribedRot1DOF

test_prescribedRot1DOF.prescribedRot1DOFTestFunction(show_plots, thetaInit, thetaRef, thetaDDotMax, accuracy)[source]

Call this routine directly to run the unit test.

test_prescribedRot1DOF.test_prescribedRot1DOFTestFunction(show_plots, thetaInit, thetaRef, thetaDDotMax, accuracy)[source]

Validation Test Description

This unit test ensures that the profiled 1 DOF rotation for a secondary rigid body connected to the spacecraft hub is properly computed for a series of initial and reference PRV angles and maximum angular accelerations. The final prescribed attitude and angular velocity magnitude are compared with the reference values.

Test Parameters

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

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

  • thetaDDotMax (float) – [rad/s^2] Maximum angular acceleration for the attitude maneuver

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

Description of Variables Being Tested

This unit test ensures that the profiled 1 DOF rotation is properly computed for a series of initial and reference PRV angles and maximum angular accelerations. The final prescribed angle theta_FM_Final and angular velocity magnitude thetaDot_Final are compared with the reference values theta_Ref and thetaDot_Ref, respectively.