public class FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>> extends FieldAbstractDetector<FieldElevationDetector<T>,T>
The default implementation behavior is to continue
propagation at raising and to stop
propagation
at setting. This can be changed by calling
FieldAbstractDetector.withHandler(FieldEventHandler)
after construction.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
FieldElevationDetector(org.hipparchus.Field<T> field,
TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame
and the minimum elevation angle.
|
FieldElevationDetector(T maxCheck,
T threshold,
TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame
and overrides of default maximal checking interval and convergence threshold values.
|
Modifier and Type | Method and Description |
---|---|
protected FieldElevationDetector<T> |
create(T newMaxCheck,
T newThreshold,
int newMaxIter,
FieldEventHandler<? super FieldElevationDetector<T>,T> newHandler)
Build a new instance.
|
T |
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.
|
ElevationMask |
getElevationMask()
Returns the currently configured elevation mask.
|
double |
getMinElevation()
Returns the currently configured minimum valid elevation value.
|
AtmosphericRefractionModel |
getRefractionModel()
Returns the currently configured refraction model.
|
TopocentricFrame |
getTopocentricFrame()
Returns the currently configured topocentric frame definitions.
|
FieldElevationDetector<T> |
withConstantElevation(double newMinElevation)
Setup the minimum elevation for detection.
|
FieldElevationDetector<T> |
withElevationMask(ElevationMask newElevationMask)
Setup the elevation mask for detection using the passed in mask object.
|
FieldElevationDetector<T> |
withRefraction(AtmosphericRefractionModel newRefractionModel)
Setup the elevation detector to use an atmospheric refraction model in its
calculations.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public FieldElevationDetector(org.hipparchus.Field<T> field, TopocentricFrame topo)
uses default values for maximal checking interval (FieldAbstractDetector.DEFAULT_MAXCHECK
)
and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD
).
field
- type of the elementstopo
- reference to a topocentric modelwithConstantElevation(double)
,
withElevationMask(ElevationMask)
,
withRefraction(AtmosphericRefractionModel)
public FieldElevationDetector(T maxCheck, T threshold, TopocentricFrame topo)
maxCheck
- maximum checking interval (s)threshold
- maximum divergence threshold (s)topo
- reference to a topocentric modelwithConstantElevation(double)
,
withElevationMask(ElevationMask)
,
withRefraction(AtmosphericRefractionModel)
protected FieldElevationDetector<T> create(T newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<? super FieldElevationDetector<T>,T> newHandler)
create
in class FieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>>,T extends org.hipparchus.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 ElevationMask getElevationMask()
withConstantElevation(double)
withElevationMask(ElevationMask)
public double getMinElevation()
Double.NaN
if instance has been configured with withElevationMask(ElevationMask)
withConstantElevation(double)
public AtmosphericRefractionModel getRefractionModel()
withRefraction(AtmosphericRefractionModel)
public TopocentricFrame getTopocentricFrame()
public T g(FieldSpacecraftState<T> s) throws OrekitException
g
in interface FieldEventDetector<T extends org.hipparchus.RealFieldElement<T>>
g
in class FieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>>,T extends org.hipparchus.RealFieldElement<T>>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occurspublic FieldElevationDetector<T> withConstantElevation(double newMinElevation)
This will override an elevation mask if it has been configured as such previously.
newMinElevation
- minimum elevation for visibility in radians (rad)getMinElevation()
public FieldElevationDetector<T> withElevationMask(ElevationMask newElevationMask)
newElevationMask
- elevation mask to use for the computationgetElevationMask()
public FieldElevationDetector<T> withRefraction(AtmosphericRefractionModel newRefractionModel)
To disable the refraction when copying an existing elevation detector, call this method with a null argument.
newRefractionModel
- refraction model to use for the computationgetRefractionModel()
Copyright © 2002-2017 CS Systèmes d'information. All rights reserved.