Class FieldRelativeDistanceDetector<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldRelativeDistanceDetector

        public FieldRelativeDistanceDetector​(FieldPVCoordinatesProvider<T> secondaryPVProvider,
                                             T distanceThreshold)
        Constructor with default values.

        By default, the implemented behavior is to stop propagation at detection.

        Parameters:
        secondaryPVProvider - PVCoordinates provider of the other object defining relative distance.
        distanceThreshold - Relative distance threshold for event detection
      • FieldRelativeDistanceDetector

        protected FieldRelativeDistanceDetector​(FieldEventDetectionSettings<T> detectionSettings,
                                                FieldEventHandler<T> handler,
                                                FieldPVCoordinatesProvider<T> secondaryPVProvider,
                                                T distanceThreshold)
        Constructor.

        This constructor is to be used if the user wants to change the default behavior of the detector.

        Parameters:
        detectionSettings - Detection settings.
        handler - Event handler to call at event occurrences.
        secondaryPVProvider - PVCoordinates provider of the other object defining relative distance.
        distanceThreshold - Relative distance threshold for event detection
        Since:
        12.2
        See Also:
        FieldEventHandler
      • FieldRelativeDistanceDetector

        @Deprecated
        protected FieldRelativeDistanceDetector​(FieldAdaptableInterval<T> maxCheck,
                                                T threshold,
                                                int maxIter,
                                                FieldEventHandler<T> handler,
                                                FieldPVCoordinatesProvider<T> secondaryPVProvider,
                                                T distanceThreshold)
        Deprecated.
        as of 12.2
        Constructor.

        This constructor is to be used if the user wants to change the default behavior of the detector.

        Parameters:
        maxCheck - Maximum checking interval.
        threshold - Convergence threshold (s).
        maxIter - Maximum number of iterations in the event time search.
        handler - Event handler to call at event occurrences.
        secondaryPVProvider - PVCoordinates provider of the other object defining relative distance.
        distanceThreshold - Relative distance threshold for event detection
        See Also:
        FieldEventHandler
    • Method Detail

      • g

        public T g​(FieldSpacecraftState<T> s)
        The g is positive when the relative distance is larger or equal than the threshold, non-positive otherwise.
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • getSecondaryPVProvider

        public FieldPVCoordinatesProvider<T> getSecondaryPVProvider()
        Get the secondary position-velocity provider stored in this instance.
        Returns:
        the secondary position-velocity provider stored in this instance
      • getDistanceThreshold

        public T getDistanceThreshold()
        Get the relative distance threshold.
        Returns:
        threshold triggering detection