public class GroundFieldOfViewDetector extends AbstractDetector<GroundFieldOfViewDetector>
Field Of View attached to an arbitrary frame.
If you only want to compute access times then you should probably use
ElevationDetector.
The default implementation behavior is to continue propagation at FOV entry and to stop propagation at FOV exit. This can be changed by calling AbstractDetector.withHandler(EventHandler) after construction.
Propagator.addEventDetector(EventDetector),
FieldOfViewDetector,
ElevationDetectorDEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD| Modifier | Constructor and Description |
|---|---|
protected |
GroundFieldOfViewDetector(AdaptableInterval maxCheck,
double threshold,
int maxIter,
EventHandler handler,
Frame frame,
FieldOfView fov)
Protected constructor with full parameters.
|
|
GroundFieldOfViewDetector(Frame frame,
FieldOfView fov)
Build a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected GroundFieldOfViewDetector |
create(AdaptableInterval newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler newHandler)
Build a new instance.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
FieldOfView |
getFOV()
Get the Field Of View.
|
Frame |
getFrame()
Get the sensor reference frame.
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdpublic GroundFieldOfViewDetector(Frame frame, FieldOfView fov)
The maximal interval between distance to FOV boundary checks should be smaller than the half duration of the minimal pass to handle, otherwise some short passes could be missed.
frame - the reference frame attached to the sensor.fov - Field Of View of the sensor.protected GroundFieldOfViewDetector(AdaptableInterval maxCheck, double threshold, int maxIter, EventHandler handler, Frame frame, FieldOfView fov)
This constructor is not public as users are expected to use the builder
API with the various withXxx() methods to set up the instance in
a readable manner without using a huge amount of parameters.
maxCheck - maximum checking intervalthreshold - convergence threshold (s)maxIter - maximum number of iterations in the event time searchhandler - event handler to call at event occurrencesframe - the reference frame attached to the sensor.fov - Field Of View of the sensor.protected GroundFieldOfViewDetector create(AdaptableInterval newMaxCheck, double newThreshold, int newMaxIter, EventHandler newHandler)
create in class AbstractDetector<GroundFieldOfViewDetector>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 Frame getFrame()
public FieldOfView getFOV()
public double g(SpacecraftState s)
The g function value is the angular offset between the satellite and
the Field Of View boundary. It is negative if the satellite is visible within
the Field Of View and positive if it is outside of the Field Of View,
including the margin.
As per the previous definition, when the satellite enters the Field Of View, a decreasing event is generated, and when the satellite leaves the Field Of View, an increasing event is generated.
g in interface EventDetectorg in class AbstractDetector<GroundFieldOfViewDetector>s - the current state information: date, kinematics, attitudeCopyright © 2002-2023 CS GROUP. All rights reserved.