test_thrustCMEstimation

test_thrustCMEstimation.test_thrustCMEstimation(show_plots, dT, accuracy)[source]

Validation Test Description

This unit test script tests the correctness of the center of mass (CM) estimate computed by Module: thrustCMEstimation when multiple torque measurements are provided.

Test Parameters

This tests feeds several thrust vectors and thrust application points to the CM estimator module. These simulate the behavior of a gimbaled thruster.

Parameters:
  • dT (sec) – time interval between two consecutive torque measurements are processed

  • accuracy – tolerance on the result.

Description of Variables Being Tested

This Unit Test checks the correctness of the estimation based on the following considerations: - post-fit residuals are smaller than the associate pre-fit residuals for every measurement update; - post-fit residuals are within \(3\sigma\) bounds of the measurement noise covariance; - the error on the state estimate is within \(3\sigma\) bounds of the estimated covariance.