public class LatitudeExtremumDetector extends AbstractDetector<LatitudeExtremumDetector>
This detector identifies when a spacecraft reaches its extremum latitudes with respect to a central body.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
LatitudeExtremumDetector(double maxCheck,
double threshold,
OneAxisEllipsoid body)
Build a detector.
|
LatitudeExtremumDetector(OneAxisEllipsoid body)
Build a new detector.
|
Modifier and Type | Method and Description |
---|---|
protected LatitudeExtremumDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<? super LatitudeExtremumDetector> newHandler)
Build a new instance.
|
double |
g(SpacecraftState s)
Compute the value of the detection function.
|
BodyShape |
getBody()
Get the body on which the geographic zone is defined.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public LatitudeExtremumDetector(OneAxisEllipsoid body)
The new instance uses default values for maximal checking interval
(AbstractDetector.DEFAULT_MAXCHECK
) and convergence threshold (AbstractDetector.DEFAULT_THRESHOLD
).
body
- body on which the latitude is definedpublic LatitudeExtremumDetector(double maxCheck, double threshold, OneAxisEllipsoid body)
maxCheck
- maximal checking interval (s)threshold
- convergence threshold (s)body
- body on which the latitude is definedprotected LatitudeExtremumDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<? super LatitudeExtremumDetector> newHandler)
create
in class AbstractDetector<LatitudeExtremumDetector>
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 BodyShape getBody()
public double g(SpacecraftState s)
The value is the spacecraft latitude time derivative.
g
in interface EventDetector
g
in class AbstractDetector<LatitudeExtremumDetector>
s
- the current state information: date, kinematics, attitudeCopyright © 2002-2020 CS Group. All rights reserved.