I am writing to have a suggestion to a current issue we are facing with resetting the state of a numerical propagator after event detector.
Context: we want to perform an action some time before the beginning of a maneuver. This maneuver is started upon detection of a combination of events (boolean detector).
The solution we tried is to reset the state to the given (past) date when the event that starts the maneuver is detected. To locate the past state we interpolate a collection of spacecraft states using the Ephemeris class. This seems to work fine in the sense that we return to the correct date in the past. On the other hand, many times the propagation freezes after the reset state.
Basically, I would like to have your advice about this situation. Do you see any major flaws in what I described? If faced with a similar need would you use a rather different solution?
Thanks in advance,