Search in sources :

Example 11 with Attitude

use of org.orekit.attitudes.Attitude in project Orekit by CS-SI.

the class NumericalPropagatorBuilder method buildPropagator.

/**
 * {@inheritDoc}
 */
public NumericalPropagator buildPropagator(final double[] normalizedParameters) throws OrekitException {
    setParameters(normalizedParameters);
    final Orbit orbit = createInitialOrbit();
    final Attitude attitude = attProvider.getAttitude(orbit, orbit.getDate(), getFrame());
    final SpacecraftState state = new SpacecraftState(orbit, attitude, mass);
    final NumericalPropagator propagator = new NumericalPropagator(builder.buildIntegrator(orbit, getOrbitType()));
    propagator.setOrbitType(getOrbitType());
    propagator.setPositionAngleType(getPositionAngle());
    propagator.setAttitudeProvider(attProvider);
    for (ForceModel model : forceModels) {
        propagator.addForceModel(model);
    }
    propagator.resetInitialState(state);
    return propagator;
}
Also used : SpacecraftState(org.orekit.propagation.SpacecraftState) Orbit(org.orekit.orbits.Orbit) ForceModel(org.orekit.forces.ForceModel) Attitude(org.orekit.attitudes.Attitude) NumericalPropagator(org.orekit.propagation.numerical.NumericalPropagator)

Aggregations

Attitude (org.orekit.attitudes.Attitude)11 Orbit (org.orekit.orbits.Orbit)6 AttitudeProvider (org.orekit.attitudes.AttitudeProvider)5 SpacecraftState (org.orekit.propagation.SpacecraftState)5 AbsoluteDate (org.orekit.time.AbsoluteDate)5 Vector3D (org.hipparchus.geometry.euclidean.threed.Vector3D)4 Test (org.junit.Test)4 FieldAttitude (org.orekit.attitudes.FieldAttitude)4 OrekitException (org.orekit.errors.OrekitException)4 KeplerianOrbit (org.orekit.orbits.KeplerianOrbit)4 DummyLocalizable (org.hipparchus.exception.DummyLocalizable)2 FieldVector3D (org.hipparchus.geometry.euclidean.threed.FieldVector3D)2 Rotation (org.hipparchus.geometry.euclidean.threed.Rotation)2 InertialProvider (org.orekit.attitudes.InertialProvider)2 LofOffset (org.orekit.attitudes.LofOffset)2 Frame (org.orekit.frames.Frame)2 TopocentricFrame (org.orekit.frames.TopocentricFrame)2 CartesianOrbit (org.orekit.orbits.CartesianOrbit)2 DateDetector (org.orekit.propagation.events.DateDetector)2 NumericalPropagator (org.orekit.propagation.numerical.NumericalPropagator)2