Class AngularSeparationFromSatelliteDetector
- All Implemented Interfaces:
EventDetector
The main use case for this detector is when the primary object is in fact a ground
station, modeled as a TopocentricFrame and when the secondary
is the Sun, for computing
optical reflections.
The default handler behavior is to stop
propagation when objects enter the proximity zone. This can be changed by calling
AbstractDetector.withHandler(EventHandler) after construction.
- Since:
- 11.0
- Author:
- Luc Maisonobe, Thomas Paulet
- See Also:
-
Field Summary
Fields inherited from class org.orekit.propagation.events.AbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAngularSeparationFromSatelliteDetector(EventDetectionSettings detectionSettings, EventHandler handler, PVCoordinatesProvider primaryObject, PVCoordinatesProvider secondaryObject, double proximityAngle) Protected constructor with full parameters.AngularSeparationFromSatelliteDetector(PVCoordinatesProvider primaryObject, PVCoordinatesProvider secondaryObject, double proximityAngle) Build a new angular detachment detector. -
Method Summary
Modifier and TypeMethodDescriptionprotected AngularSeparationFromSatelliteDetectorcreate(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.doubleg(SpacecraftState s) Compute the value of the switching function.Get the primaryObject, at the center of the proximity zone.doubleGet the proximity angle (rad).Get the secondaryObject.Methods inherited from class org.orekit.propagation.events.AbstractDetector
checkIfForward, getDetectionSettings, getEventFunction, getHandler, init, isForward, withDetectionSettings, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.EventDetector
finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, reset
-
Constructor Details
-
AngularSeparationFromSatelliteDetector
public AngularSeparationFromSatelliteDetector(PVCoordinatesProvider primaryObject, PVCoordinatesProvider secondaryObject, double proximityAngle) Build a new angular detachment detector.- Parameters:
primaryObject- primaryObject, at the center of the proximity zonesecondaryObject- secondaryObject, that may come close to the primaryObject as seen from the spacecraftproximityAngle- proximity angle as seen from spacecraft, at which events are triggered (rad)
-
AngularSeparationFromSatelliteDetector
protected AngularSeparationFromSatelliteDetector(EventDetectionSettings detectionSettings, EventHandler handler, PVCoordinatesProvider primaryObject, PVCoordinatesProvider secondaryObject, double proximityAngle) Protected constructor with full parameters.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.- Parameters:
detectionSettings- detection Settingshandler- event handler to call at event occurrencesprimaryObject- primaryObject at the center of the proximity zonesecondaryObject- secondaryObject, that may come close to the primaryObject as seen from the spacecraftproximityAngle- proximity angle as seen from secondaryObject, at which events are triggered (rad)- Since:
- 13.0
-
-
Method Details
-
create
protected AngularSeparationFromSatelliteDetector create(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.- Specified by:
createin classAbstractDetector<AngularSeparationFromSatelliteDetector>- Parameters:
detectionSettings- detection settingsnewHandler- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
getPrimaryObject
Get the primaryObject, at the center of the proximity zone.- Returns:
- primaryObject
-
getSecondaryObject
Get the secondaryObject.- Returns:
- secondaryObject
-
getProximityAngle
public double getProximityAngle()Get the proximity angle (rad).- Returns:
- the proximity angle
-
g
Compute the value of the switching function.This function measures the angular separation between primary and secondary objects as seen from the spacecraft minus the proximity angle. It therefore triggers decreasing events when the secondary object enters the proximity zone and increasing events when it leaves the proximity zone.
No shadowing effect is taken into account, so this method is computed and may trigger events even when the secondary object is behind the primary. If such effects must be taken into account the detector must be associated with a
predicate filterwhere thepredicate functionis based on eclipse conditions.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-