test_spacecraftPointMass
Unit tests for the Spacecraft.pointMassTranslationalOnly option.
The point-mass mode should reproduce the normal spacecraft translational
motion when no state effectors are attached, while omitting rotational dynamics
from the integrated equations of motion.
- test_spacecraftPointMass.test_spacecraftPointMass_allowsAttitudeDependentDynamicEffector()[source]
Point-mass mode must expose fixed attitude states for dynamic effectors.
- test_spacecraftPointMass.test_spacecraftPointMass_matchesStandardSpacecraftTranslation()[source]
Point-mass mode must match normal spacecraft translational motion.
- test_spacecraftPointMass.test_spacecraftPointMass_matchesStandardSpacecraftWithDynamicForce()[source]
Point-mass mode must include translational dynamic-effector forces.
- test_spacecraftPointMass.test_spacecraftPointMass_rejectsStateEffectors()[source]
Point-mass mode must reject state effectors because they add internal states.
- test_spacecraftPointMass.test_spacecraftPointMass_zeroAccelerationsBeforeIntegration(pointMassMode)[source]
The state message must not hold uninitialized accelerations.
The non-conservative acceleration and the angular acceleration are only computed after an integration step in the 6-DOF mode and never in the point-mass mode. Before that they must be zero, and the angular acceleration must stay zero in the point-mass mode.
- Parameters:
pointMassMode (bool) – if
True, run the spacecraft inpointMassTranslationalOnlymode