test_mrpPD

test_mrpPD.test_mrp_PD_tracking(show_plots, setExtTorque)[source]

Validation Test Description

The unit test for this module is kept as there are no branching code segments to account for different cases. The spacecraft inertia tensor message is setup, as well as a guidance message. The module is then run for a few time steps and the control torque output message compared to a known answer. The simulation only variable is if the known external torque is specified, or if the zero default vector is used.

Test Parameters

The unit test verifies that the module output torque message vector matches expected values. The test method parameters include the following.

Parameters
  • show_plots – flag to show the test run plots

  • setExtTorque – flag to set the knownTorquePntB_B variable

Returns

void