test_spinningBodyTwoDOFStateEffector

test_spinningBodyTwoDOFStateEffector.test_spinningBody(show_plots, cmdTorque1, lock1, theta1Ref, cmdTorque2, lock2, theta2Ref)[source]

Validation Test Description

This unit test sets up a spacecraft with a single-axis rotating rigid body attached to a rigid hub. The spinning body’s center of mass is off-center from the spinning axis and the position of the axis is arbitrary. The scenario includes gravity acting on both the spacecraft and the effector.

Description of Variables Being Tested

In this file we are checking the principles of conservation of energy and angular momentum. Both the orbital and rotational energy and angular momentum must be maintained when conservative forces like gravity are present. Therefore, the values of the variables

  • finalOrbAngMom

  • finalOrbEnergy

  • finalRotAngMom

  • finalRotEnergy

against their initial values.