public class FieldApsideDetector<T extends RealFieldElement<T>> extends FieldAbstractDetector<FieldApsideDetector<T>,T>
This class finds apside crossing events (i.e. apogee or perigee crossing).
The default implementation behavior is to continue
propagation at apogee crossing and to stop
propagation
at perigee crossing. This can be changed by calling
FieldAbstractDetector.withHandler(FieldEventHandler)
after construction.
Beware that apside detection will fail for almost circular orbits. If
for example an apside detector is used to trigger an ImpulseManeuver
and the maneuver
change the orbit shape to circular, then the detector may completely fail just
after the maneuver has been performed!
FieldPropagator.addEventDetector(FieldEventDetector)
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
FieldApsideDetector(FieldOrbit<T> orbit)
Build a new instance.
|
FieldApsideDetector(T threshold,
FieldOrbit<T> orbit)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected FieldApsideDetector<T> |
create(T newMaxCheck,
T newThreshold,
int newMaxIter,
FieldEventHandler<? super FieldApsideDetector<T>,T> newHandler)
Build a new instance.
|
T |
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public FieldApsideDetector(FieldOrbit<T> orbit)
The orbit is used only to set an upper bound for the max check interval to period/3 and to set the convergence threshold according to orbit size
orbit
- initial orbitpublic FieldApsideDetector(T threshold, FieldOrbit<T> orbit)
The orbit is used only to set an upper bound for the max check interval to period/3
threshold
- convergence threshold (s)orbit
- initial orbitprotected FieldApsideDetector<T> create(T newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<? super FieldApsideDetector<T>,T> newHandler)
create
in class FieldAbstractDetector<FieldApsideDetector<T extends RealFieldElement<T>>,T extends RealFieldElement<T>>
newMaxCheck
- maximum checking interval (s)newThreshold
- convergence threshold (s)newMaxIter
- maximum number of iterations in the event time searchnewHandler
- event handler to call at event occurrencespublic T g(FieldSpacecraftState<T> s) throws OrekitException
g
in interface FieldEventDetector<T extends RealFieldElement<T>>
g
in class FieldAbstractDetector<FieldApsideDetector<T extends RealFieldElement<T>>,T extends RealFieldElement<T>>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occursCopyright © 2002-2017 CS Systèmes d'information. All rights reserved.