test_thruster_dynamics_attached_body

test_thruster_dynamics_attached_body.test_unitThrusters(show_plots, long_angle, lat_angle, location, rate)[source]

This unit test checks the functionality of attaching a dynamic thruster to a body other than the hub. Although the attached body is fixed with respect to the hub, the point where the thruster is attached now has an additional offset and a different orientation.

The unit test sets up the thruster as normal, but then converts the direction and location to take into account the attached body for testing purposes. The thruster is set to fire for the first half of the simulation, and then turn off.

As with the other tests, the expected forces and torques are compared with the values from the module to check that everything matches accordingly.