Class FieldApsideDetector<T extends org.hipparchus.RealFieldElement<T>>

    • Constructor Detail

      • FieldApsideDetector

        public FieldApsideDetector​(FieldOrbit<T> orbit)
        Build a new instance.

        The orbit is used only to set an upper bound for the max check interval to period/3 and to set the convergence threshold according to orbit size

        Parameters:
        orbit - initial orbit
      • FieldApsideDetector

        public FieldApsideDetector​(T threshold,
                                   FieldOrbit<T> orbit)
        Build a new instance.

        The orbit is used only to set an upper bound for the max check interval to period/3

        Parameters:
        threshold - convergence threshold (s)
        orbit - initial orbit
    • Method Detail

      • create

        protected FieldApsideDetector<T> create​(T newMaxCheck,
                                                T newThreshold,
                                                int newMaxIter,
                                                FieldEventHandler<? super FieldApsideDetector<T>,​T> newHandler)
        Build a new instance.
        Specified by:
        create in class FieldAbstractDetector<FieldApsideDetector<T extends org.hipparchus.RealFieldElement<T>>,​T extends org.hipparchus.RealFieldElement<T>>
        Parameters:
        newMaxCheck - maximum checking interval (s)
        newThreshold - convergence threshold (s)
        newMaxIter - maximum number of iterations in the event time search
        newHandler - event handler to call at event occurrences
        Returns:
        a new instance of the appropriate sub-type
      • g

        public T g​(FieldSpacecraftState<T> s)
        Compute the value of the switching function. This function computes the dot product of the 2 vectors : position.velocity.
        Specified by:
        g in interface FieldEventDetector<T extends org.hipparchus.RealFieldElement<T>>
        Specified by:
        g in class FieldAbstractDetector<FieldApsideDetector<T extends org.hipparchus.RealFieldElement<T>>,​T extends org.hipparchus.RealFieldElement<T>>
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function