Commit 8c3daff6 authored by Bryan Cazabonne's avatar Bryan Cazabonne

Update tutorial after a change in Orekit.

parent d57a7577
......@@ -28,9 +28,11 @@ import org.orekit.bodies.CelestialBody;
import org.orekit.bodies.OneAxisEllipsoid;
import org.orekit.errors.OrekitException;
import org.orekit.forces.ForceModel;
import org.orekit.forces.PolynomialParametricAcceleration;
import org.orekit.forces.drag.DragForce;
import org.orekit.forces.drag.DragSensitive;
import org.orekit.forces.empirical.AccelerationModel;
import org.orekit.forces.empirical.ParametricAcceleration;
import org.orekit.forces.empirical.PolynomialAccelerationModel;
import org.orekit.forces.gravity.HolmesFeatherstoneAttractionModel;
import org.orekit.forces.gravity.OceanTides;
import org.orekit.forces.gravity.Relativity;
......@@ -191,8 +193,8 @@ public class KalmanNumericalOrbitDetermination extends AbstractOrbitDeterminatio
@Override
protected ParameterDriver[] setPolynomialAcceleration(final NumericalPropagatorBuilder propagatorBuilder,
final String name, final Vector3D direction, final int degree) {
final ForceModel polynomialModel = new PolynomialParametricAcceleration(direction, true, name, null, degree);
propagatorBuilder.addForceModel(polynomialModel);
final AccelerationModel accModel = new PolynomialAccelerationModel(name, null, degree);
final ForceModel polynomialModel = new ParametricAcceleration(direction, true, accModel); propagatorBuilder.addForceModel(polynomialModel);
return polynomialModel.getParametersDrivers();
}
......
......@@ -29,9 +29,11 @@ import org.orekit.bodies.CelestialBody;
import org.orekit.bodies.OneAxisEllipsoid;
import org.orekit.errors.OrekitException;
import org.orekit.forces.ForceModel;
import org.orekit.forces.PolynomialParametricAcceleration;
import org.orekit.forces.drag.DragForce;
import org.orekit.forces.drag.DragSensitive;
import org.orekit.forces.empirical.AccelerationModel;
import org.orekit.forces.empirical.ParametricAcceleration;
import org.orekit.forces.empirical.PolynomialAccelerationModel;
import org.orekit.forces.gravity.HolmesFeatherstoneAttractionModel;
import org.orekit.forces.gravity.OceanTides;
import org.orekit.forces.gravity.Relativity;
......@@ -187,8 +189,8 @@ public class NumericalOrbitDetermination extends AbstractOrbitDetermination<Nume
@Override
protected ParameterDriver[] setPolynomialAcceleration(final NumericalPropagatorBuilder propagatorBuilder,
final String name, final Vector3D direction, final int degree) {
final ForceModel polynomialModel = new PolynomialParametricAcceleration(direction, true, name, null, degree);
propagatorBuilder.addForceModel(polynomialModel);
final AccelerationModel accModel = new PolynomialAccelerationModel(name, null, degree);
final ForceModel polynomialModel = new ParametricAcceleration(direction, true, accModel); propagatorBuilder.addForceModel(polynomialModel);
return polynomialModel.getParametersDrivers();
}
......
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