public class CircularFieldOfViewDetector extends AbstractDetector
This class handle fields of view with a circular boundary.
The default implementation behavior is to continue propagation at fov entry and
to stop propagation at fov exit. This can be changed by using the constructor
CircularFieldOfViewDetector.
Propagator.addEventDetector(EventDetector),
DihedralFieldOfViewDetector,
Serialized FormEventDetector.ActionDEFAULT_MAXCHECKDECREASING, INCREASING, INCREASING_DECREASING| Constructor and Description |
|---|
CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget,
Vector3D centerIn,
double halfApertureIn,
double maxCheckIn)
Build a new instance.
|
CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget,
Vector3D centerIn,
double halfApertureIn,
double maxCheck,
double threshold)
Build a new instance.
|
CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget,
Vector3D centerIn,
double halfApertureIn,
double maxCheck,
double threshold,
EventDetector.Action entry,
EventDetector.Action exit)
Build a new instance with defined actions at fov entry and exit.
|
CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget,
Vector3D centerIn,
double halfApertureIn,
double maxCheck,
double threshold,
EventDetector.Action entry,
EventDetector.Action exit,
boolean removeEntry,
boolean removeExit)
Build a new instance with defined actions at fov entry and exit.
|
| Modifier and Type | Method and Description |
|---|---|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle an fov event and choose what to do next.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
Vector3D |
getCenter()
Get the direction of fov center.
|
double |
getHalfAperture()
Get fov half aperture angle.
|
PVCoordinatesProvider |
getPVTarget()
Get the position/velocity provider of the target .
|
boolean |
shouldBeRemoved()
This method is called after
EventDetector.eventOccurred(fr.cnes.sirius.patrius.propagation.SpacecraftState, boolean, boolean) has been triggered. |
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, resetStatepublic CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget, Vector3D centerIn, double halfApertureIn, double maxCheckIn)
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.
The default implementation behavior is to continue propagation at fov entry
and to stop propagation at fov exit.
pvTarget - Position/velocity provider of the considered targetcenterIn - Direction of the fov center, in spacecraft framehalfApertureIn - Fov half aperture anglemaxCheckIn - maximal interval in secondspublic CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget, Vector3D centerIn, double halfApertureIn, double maxCheck, double threshold)
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.
The default implementation behavior is to continue propagation at fov entry
and to stop propagation at fov exit.
pvTarget - Position/velocity provider of the considered targetcenterIn - Direction of the fov center, in spacecraft framehalfApertureIn - Fov half aperture anglemaxCheck - maximal interval in secondsthreshold - threshold in seconds for events date computationpublic CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget, Vector3D centerIn, double halfApertureIn, double maxCheck, double threshold, EventDetector.Action entry, EventDetector.Action exit)
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.
pvTarget - Position/velocity provider of the considered targetcenterIn - Direction of the fov center, in spacecraft framehalfApertureIn - Fov half aperture anglemaxCheck - maximal interval in secondsthreshold - threshold in seconds for events date computationentry - action performed at fov entryexit - action performed at fov exitpublic CircularFieldOfViewDetector(PVCoordinatesProvider pvTarget, Vector3D centerIn, double halfApertureIn, double maxCheck, double threshold, EventDetector.Action entry, EventDetector.Action exit, boolean removeEntry, boolean removeExit)
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.
pvTarget - Position/velocity provider of the considered targetcenterIn - Direction of the fov center, in spacecraft framehalfApertureIn - Fov half aperture anglemaxCheck - maximal interval in secondsthreshold - threshold in seconds for events date computationentry - action performed at fov entryexit - action performed at fov exitremoveEntry - true if detector should be removed at fov entryremoveExit - true if detector should be removed at fov exitpublic PVCoordinatesProvider getPVTarget()
public Vector3D getCenter()
public double getHalfAperture()
public EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward) throws PatriusException
The default implementation behavior is to continue propagation at entry and
to stop propagation at exit. This can be changed by using the constructor
CircularFieldOfViewDetector
eventOccurred in interface EventDetectoreventOccurred in class AbstractDetectors - the current state information : date, kinematics, attitudeincreasing - if true, the value of the switching function increases when times increases around event, i.e. target
enters the fov (note that increase is measured with respect to physical time, not with respect to
propagation which may go backward in time)forward - if true, the integration variable (time) increases during integration.PatriusException - if some specific error occurspublic boolean shouldBeRemoved()
EventDetector.eventOccurred(fr.cnes.sirius.patrius.propagation.SpacecraftState, boolean, boolean) has been triggered.
It returns true if the current detector should be removed after first event detection.
WARNING: this method can be called only once a event has been triggered. Before,
the value is not available.shouldBeRemoved in interface EventDetectorshouldBeRemoved in class AbstractDetectorpublic double g(SpacecraftState s) throws PatriusException
g in interface EventDetectorg in class AbstractDetectors - the current state information: date, kinematics, attitude for forces
and events computation, mass provider, and additional statesPatriusException - if some specific error occursCopyright © 2017 CNES. All rights reserved.