org.orekit.propagation.events
public class AlignmentDetector extends AbstractReconfigurableDetector<AlignmentDetector>
This class finds alignment events.
Alignment means the conjunction, with some threshold angle, between the satellite position and the projection in the orbital plane of some body position.
The default handler behavior is to stop
propagation when alignment is reached. This can be changed by calling
AbstractReconfigurableDetector.withHandler(EventHandler)
after construction.
Propagator.addEventDetector(EventDetector)
,
Serialized FormEventDetector.Action
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
AlignmentDetector(double threshold,
Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
Build a new alignment detector.
|
AlignmentDetector(Orbit orbit,
PVCoordinatesProvider body,
double alignAngle)
Build a new alignment detector.
|
Modifier and Type | Method and Description |
---|---|
protected AlignmentDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<AlignmentDetector> newHandler)
Build a new instance.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
double |
getAlignAngle()
Get the alignment angle (rad).
|
PVCoordinatesProvider |
getPVCoordinatesProvider()
Get the body to align.
|
convert, convert, eventOccurred, getHandler, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
getMaxCheckInterval, getMaxIterationCount, getThreshold, init
public AlignmentDetector(Orbit orbit, PVCoordinatesProvider body, double alignAngle)
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 orbitbody
- the body to alignalignAngle
- the alignment angle (rad)public AlignmentDetector(double threshold, Orbit orbit, PVCoordinatesProvider body, double alignAngle)
The orbit is used only to set an upper bound for the max check interval to period/3.
threshold
- convergence threshold (s)orbit
- initial orbitbody
- the body to alignalignAngle
- the alignment angle (rad)protected AlignmentDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<AlignmentDetector> newHandler)
create
in class AbstractReconfigurableDetector<AlignmentDetector>
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 PVCoordinatesProvider getPVCoordinatesProvider()
public double getAlignAngle()
public double g(SpacecraftState s) throws OrekitException
g
in interface EventDetector
g
in class AbstractDetector
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occursCopyright © 2002–2015 CS Syst?mes d'Information. All rights reserved.