Regression: Ephemeris with interpolationPoints=1
As a user I would like to use an Ephemeris
with interpolationOrder=1, i.e. step-wise interpolation. This was possible in Orekit 11.x, but no longer possible in Orekit 12.0.
Failing test case (Credit Sander Cochran):
/* Ephemeris propagate fails for interpolation point value of 1 */
@Test
void testMinInterpolationPoints() {
// GIVEN
final AbsoluteDate initialDate = new AbsoluteDate();
final Orbit initialOrbit = TestUtils.getDefaultOrbit(initialDate);
// Setup propagator
final Orbit finalOrbit = initialOrbit.shiftedBy(1);
final List<SpacecraftState> states = new ArrayList<>();
states.add(new SpacecraftState(initialOrbit));
states.add(new SpacecraftState(finalOrbit));
final Ephemeris ephemeris = new Ephemeris(states, 1);
// WHEN & THEN
// Error thrown when there is more than one state in ephemeris and interpolation points is 1
ephemeris.propagate(ephemeris.getMaxDate());
}
Edited by Evan Ward