Commit 34ca7998 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed DSST events detection in the osculating case.

Fixes issue #398.
parent 81679b3b
......@@ -608,7 +608,7 @@ public abstract class AbstractIntegratedPropagator extends AbstractPropagator {
throws OrekitException {
// main state
SpacecraftState state = stateMapper.mapArrayToState(t, y, yDot, true); //not sure of the mean orbit, should be true
SpacecraftState state = stateMapper.mapArrayToState(t, y, yDot, meanOrbit);
// pre-integrated additional states
state = updateAdditionalStates(state);
......
......@@ -952,6 +952,28 @@ public class DSSTPropagator extends AbstractIntegratedPropagator {
this.forceModels = forceModels;
}
/** {@inheritDoc} */
@Override
public void init(final ODEStateAndDerivative initialState, final double finalTime)
throws OrekitExceptionWrapper {
try {
// Build the mean state interpolated at initial point
final SpacecraftState meanStates = mapper.mapArrayToState(0.0,
initialState.getPrimaryState(),
initialState.getPrimaryDerivative(),
true);
// Compute short periodic coefficients for this point
for (DSSTForceModel forceModel : forceModels) {
forceModel.updateShortPeriodTerms(meanStates);
}
} catch (OrekitException oe) {
throw new OrekitExceptionWrapper(oe);
}
}
/** {@inheritDoc} */
@Override
public void handleStep(final ODEStateInterpolator interpolator, final boolean isLast)
......
......@@ -21,6 +21,10 @@
</properties>
<body>
<release version="9.2" date="TBD" description="TBD">
<action dev="luc" type="fix">
Fixed DSST events detection in the osculating case.
Fixes issue #398.
</action>
<action dev="luc" type="fix">
Allow several TLE with same date in TLESeries.
Fixes issue #411.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment