From 8f78ad87d477f8b46be8fc510d9b91d958450c56 Mon Sep 17 00:00:00 2001 From: Guylaine Prat <guylaine.prat@c-s.fr> Date: Thu, 11 Jan 2018 18:11:03 +0100 Subject: [PATCH] Remove useless method --- .../refiningPleiades/models/OrbitModel.java | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/tutorials/java/fr/cs/examples/refiningPleiades/models/OrbitModel.java b/src/tutorials/java/fr/cs/examples/refiningPleiades/models/OrbitModel.java index 1ab3b9fc..b207555c 100644 --- a/src/tutorials/java/fr/cs/examples/refiningPleiades/models/OrbitModel.java +++ b/src/tutorials/java/fr/cs/examples/refiningPleiades/models/OrbitModel.java @@ -250,40 +250,6 @@ public class OrbitModel { } } - /** Create the orbit propagator. - */ - public Propagator createPropagator(final BodyShape earth, - final NormalizedSphericalHarmonicsProvider gravityField, - final Orbit orbit) - throws OrekitException { - - final AttitudeProvider attitudeProvider = createAttitudeProvider(earth, orbit); - - final SpacecraftState state = - new SpacecraftState(orbit, - attitudeProvider.getAttitude(orbit, orbit.getDate(), orbit.getFrame()), 1180.0); - - // numerical model for improving orbit - final OrbitType type = OrbitType.CIRCULAR; - final double[][] tolerances = NumericalPropagator.tolerances(0.1, orbit, type); - final DormandPrince853Integrator integrator = - new DormandPrince853Integrator(1.0e-4 * orbit.getKeplerianPeriod(), - 1.0e-1 * orbit.getKeplerianPeriod(), - tolerances[0], - tolerances[1]); - integrator.setInitialStepSize(1.0e-2 * orbit.getKeplerianPeriod()); - - final NumericalPropagator numericalPropagator = new NumericalPropagator(integrator); - numericalPropagator.addForceModel(new HolmesFeatherstoneAttractionModel(earth.getBodyFrame(), gravityField)); - numericalPropagator .addForceModel(new ThirdBodyAttraction(CelestialBodyFactory.getSun())); - numericalPropagator .addForceModel(new ThirdBodyAttraction(CelestialBodyFactory.getMoon())); - numericalPropagator.setOrbitType(type); - numericalPropagator.setInitialState(state); - numericalPropagator.setAttitudeProvider(attitudeProvider); - - return numericalPropagator; - } - /** Generate the orbit. */ public List<TimeStampedPVCoordinates> orbitToPV(final Orbit orbit, final BodyShape earth, -- GitLab