Additional states forgotten when adding attitude provider
When adding an attitude provider to a BoundedPropagator (ephemerisReference below) the additional states are forgotten.
The bug is in Ephemeris#basicPropagate (l.222). Line:
return new SpacecraftState(evaluatedState.getOrbit(), calculatedAttitude, evaluatedState.getMass());
Should be:
return new SpacecraftState(evaluatedState.getOrbit(), calculatedAttitude, evaluatedState.getMass(), , evaluatedState.getAdditionalStates());
In short, the additional state is “forgotten” when adding the evaluated attitude.
See related topic.