test_msmForceTorque

test_msmForceTorque.msmForceTorqueTestFunction(show_plots, accuracy)[source]

Test method

test_msmForceTorque.test_msmForceTorque(show_plots, accuracy)[source]

Validation Test Description

The behavior of the MSM e-force and torque evaluation is tested. 3 space objects locations and orientations are setup. Each object is assigned 2-3 sphere locations and radii. The voltage input messages are setup such that each space object has its own potential. The simulation is run for a single update cycle and the resulting forces and torques acting on each body are compared to hand-computed truth values.

Test Parameters

Parameters

accuracy (float) – relative accuracy value used in the validation tests

Description of Variables Being Tested

The module output messages for the inertial force vector and body torque vector are compared to hand-calculated truth values using their relative accuracy.