test_hillFrameRelativeControl
- test_hillFrameRelativeControl.test_hillFrameRelativeControl(show_plots, accuracy, use_hill_state)[source]
Validation Test Description
This unit test verifies the
hillFrameRelativeControlmodule in both supported input modes: direct deputy navigation input mode and precomputed Hill-state input mode. In both cases, the resulting inertial force command is compared to an independently computed truth value from the same control-law equations.Test Parameters
The test parameters used are the following:
- Parameters:
accuracy (float) – absolute accuracy value used in the validation test
use_hill_state (bool) – if true, use hillStateConverter output; if false, use deputy nav input directly
Description of Variables Being Tested
In this file we are checking the values of the variable
forceRequestInertial
recorded from
forceOutMsgandforceOutMsgC. These outputs are compared againstexpected_force, which is computed independently from chief/deputy inertial states, control gains, and references.