public class CentralBodyMaskCircularFOVDetector extends AbstractDetector
This class handles fields of view with a circular boundary.
This class handles central body as a ellipsoid.
The default implementation behaviour is to
stop propagation when the target is in
the field of view outside of eclipse. This can be changed by using one of the provided constructors.
Propagator.addEventDetector(fr.cnes.sirius.patrius.propagation.events.EventDetector),
GeometricBodyShape,
IEllipsoid,
EclipseDetector,
CircularFieldOfViewDetector,
Serialized FormEventDetector.ActionDEFAULT_MAXCHECK, DEFAULT_THRESHOLDDECREASING, INCREASING, INCREASING_DECREASING| Constructor and Description |
|---|
CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody,
double occultedBodyRadius,
GeometricBodyShape occultingBody,
boolean totalEclipseFlag,
Vector3D center,
double halfAperture)
Constructor with default maxcheck and default threshold,
creating a circularFOVDetector and an EllipsoidEclipseDetector
|
CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody,
double occultedBodyRadius,
GeometricBodyShape occultingBody,
boolean totalEclipseFlag,
Vector3D center,
double halfAperture,
double maxCheck,
double threshold)
Constructor with user maxcheck and threshold
creating a circularFOVDetector and an EllipsoidEclipseDetector
|
CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody,
double occultedBodyRadius,
GeometricBodyShape occultingBody,
boolean totalEclipseFlag,
Vector3D center,
double halfAperture,
double maxCheck,
double threshold,
EventDetector.Action action)
Constructor with user maxcheck and threshold
creating a circularFOVDetector and an EllipsoidEclipseDetector
|
CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody,
double occultedBodyRadius,
GeometricBodyShape occultingBody,
boolean totalEclipseFlag,
Vector3D center,
double halfAperture,
double maxCheck,
double threshold,
EventDetector.Action action,
boolean remove)
Constructor with user maxcheck and threshold
creating a circularFOVDetector and an EllipsoidEclipseDetector
|
| Modifier and Type | Method and Description |
|---|---|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle a target in field of view outside eclipse reaching event and choose what to do next.
|
double |
g(SpacecraftState s)
The switching function is the minimum value between the eclipse detector g function and the circularFOVDetector
|
CircularFieldOfViewDetector |
getCircularFOVDetector()
Get the circular FOV detector.
|
EclipseDetector |
getEclipseDetector()
Get the eclipse detector.
|
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 CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody, double occultedBodyRadius, GeometricBodyShape occultingBody, boolean totalEclipseFlag, Vector3D center, double halfAperture, double maxCheck, double threshold)
The default implementation behaviour is to
stop propagation when the target is
visible.
occultedBody - the target to detect in field of view outside of eclipseoccultedBodyRadius - the radius of this targetoccultingBody - the ellipsoid body shape of the central body potentially occulting the targettotalEclipseFlag - true to detect only when the target is fully visible, false to detect also when the target is
partially visiblecenter - the sight axis direction of the field of view in satellite framehalfAperture - the half aperture of the field of viewmaxCheck - maximum check (see AbstractDetector)threshold - threshold (see AbstractDetector)EclipseDetector,
CircularFieldOfViewDetectorpublic CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody, double occultedBodyRadius, GeometricBodyShape occultingBody, boolean totalEclipseFlag, Vector3D center, double halfAperture, double maxCheck, double threshold, EventDetector.Action action)
occultedBody - the target to detect in field of view outside of eclipseoccultedBodyRadius - the radius of this targetoccultingBody - the ellipsoid body shape of the central body potentially occulting the targettotalEclipseFlag - true to detect only when the target is fully visible, false to detect also when the target is
partially visiblecenter - the sight axis direction of the field of view in satellite framehalfAperture - the half aperture of the field of viewmaxCheck - maximum check (see AbstractDetector)threshold - threshold (see AbstractDetector)action - action performed at circularFOV detectionEclipseDetector,
CircularFieldOfViewDetectorpublic CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody, double occultedBodyRadius, GeometricBodyShape occultingBody, boolean totalEclipseFlag, Vector3D center, double halfAperture, double maxCheck, double threshold, EventDetector.Action action, boolean remove)
occultedBody - the target to detect in field of view outside of eclipseoccultedBodyRadius - the radius of this targetoccultingBody - the ellipsoid body shape of the central body potentially occulting the targettotalEclipseFlag - true to detect only when the target is fully visible, false to detect also when the target is
partially visiblecenter - the sight axis direction of the field of view in satellite framehalfAperture - the half aperture of the field of viewmaxCheck - maximum check (see AbstractDetector)threshold - threshold (see AbstractDetector)action - action performed at circularFOV detectionremove - if detector should be removedEclipseDetector,
CircularFieldOfViewDetectorpublic CentralBodyMaskCircularFOVDetector(PVCoordinatesProvider occultedBody, double occultedBodyRadius, GeometricBodyShape occultingBody, boolean totalEclipseFlag, Vector3D center, double halfAperture)
occultedBody - the target to detect in field of view outside of eclipseoccultedBodyRadius - the radius of this targetoccultingBody - the ellipsoid body shape of the central body potentially occulting the targettotalEclipseFlag - true to detect only when the target is fully visible, false to detect also when the target is
partially visiblecenter - the sight axis direction of the field of view in satellite framehalfAperture - the half aperture of the field of viewEclipseDetector,
CircularFieldOfViewDetectorpublic 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 EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward) throws PatriusException
eventOccurred in interface EventDetectoreventOccurred in class AbstractDetectors - the current state of propagationincreasing - if true, the value of the switching function increases
when times increases around eventforward - if true, the integration variable (time) increases during integration.PatriusException - if some specific error occurspublic double g(SpacecraftState s) throws PatriusException
g in interface EventDetectorg in class AbstractDetectors - the current state of propagationPatriusException - if some specific error occurspublic EclipseDetector getEclipseDetector()
public CircularFieldOfViewDetector getCircularFOVDetector()
Copyright © 2017 CNES. All rights reserved.