Class FieldElevationDetector<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldElevationDetector

        protected FieldElevationDetector​(FieldEventDetectionSettings<T> detectionSettings,
                                         FieldEventHandler<T> handler,
                                         double minElevation,
                                         ElevationMask mask,
                                         AtmosphericRefractionModel refractionModel,
                                         TopocentricFrame topo)
        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 settings
        handler - event handler to call at event occurrences
        minElevation - minimum elevation in radians (rad)
        mask - reference to elevation mask
        refractionModel - reference to refraction model
        topo - reference to a topocentric model
        Since:
        12.2
      • FieldElevationDetector

        @Deprecated
        protected FieldElevationDetector​(FieldAdaptableInterval<T> maxCheck,
                                         T threshold,
                                         int maxIter,
                                         FieldEventHandler<T> handler,
                                         double minElevation,
                                         ElevationMask mask,
                                         AtmosphericRefractionModel refractionModel,
                                         TopocentricFrame topo)
        Deprecated.
        as of 12.2
        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:
        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
        minElevation - minimum elevation in radians (rad)
        mask - reference to elevation mask
        refractionModel - reference to refraction model
        topo - reference to a topocentric model
    • Method Detail

      • getTopocentricFrame

        public TopocentricFrame getTopocentricFrame()
        Returns the currently configured topocentric frame definitions.
        Returns:
        topocentric frame definition
      • g

        public T g​(FieldSpacecraftState<T> s)
        Compute the value of the switching function. This function measures the difference between the current elevation (and azimuth if necessary) and the reference mask or minimum value.
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • withConstantElevation

        public FieldElevationDetector<T> withConstantElevation​(double newMinElevation)
        Setup the minimum elevation for detection.

        This will override an elevation mask if it has been configured as such previously.

        Parameters:
        newMinElevation - minimum elevation for visibility in radians (rad)
        Returns:
        a new detector with updated configuration (the instance is not changed)
        Since:
        6.1
        See Also:
        getMinElevation()
      • withElevationMask

        public FieldElevationDetector<T> withElevationMask​(ElevationMask newElevationMask)
        Setup the elevation mask for detection using the passed in mask object.
        Parameters:
        newElevationMask - elevation mask to use for the computation
        Returns:
        a new detector with updated configuration (the instance is not changed)
        Since:
        6.1
        See Also:
        getElevationMask()
      • withRefraction

        public FieldElevationDetector<T> withRefraction​(AtmosphericRefractionModel newRefractionModel)
        Setup the elevation detector to use an atmospheric refraction model in its calculations.

        To disable the refraction when copying an existing elevation detector, call this method with a null argument.

        Parameters:
        newRefractionModel - refraction model to use for the computation
        Returns:
        a new detector with updated configuration (the instance is not changed)
        Since:
        6.1
        See Also:
        getRefractionModel()