Commit b4548382 authored by Bryan Cazabonne's avatar Bryan Cazabonne

Changed default attitude law for orbit determination tests.

parent 8c0fdf68
Pipeline #874 passed with stages
in 36 minutes and 48 seconds
......@@ -1068,7 +1068,7 @@ public abstract class AbstractOrbitDetermination<T extends IntegratedPropagatorB
if (parser.containsKey(ParameterKey.ATTITUDE_MODE)) {
mode = AttitudeMode.valueOf(parser.getString(ParameterKey.ATTITUDE_MODE));
} else {
mode = AttitudeMode.NADIR_POINTING_WITH_YAW_COMPENSATION;
mode = AttitudeMode.DEFAULT_LAW;
}
setAttitudeProvider(propagatorBuilder, mode.getProvider(orbit.getFrame(), body));
......
......@@ -28,12 +28,23 @@ import org.orekit.bodies.CelestialBodyFactory;
import org.orekit.bodies.OneAxisEllipsoid;
import org.orekit.frames.Frame;
import org.orekit.frames.LOFType;
import org.orekit.propagation.Propagator;
/** Attitude modes.
* @author Luc Maisonobe
*/
enum AttitudeMode {
/** Default law. */
DEFAULT_LAW() {
/** {@inheritDoc} */
@Override
public AttitudeProvider getProvider(Frame inertialFrame,
OneAxisEllipsoid body) {
return Propagator.DEFAULT_LAW;
}
},
/** Nadir pointing with yaw compensation. */
NADIR_POINTING_WITH_YAW_COMPENSATION() {
/** {@inheritDoc} */
......
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