Class GroundFieldOfViewDetector

    • Constructor Detail

      • GroundFieldOfViewDetector

        public GroundFieldOfViewDetector​(Frame frame,
                                         FieldOfView fov)
        Build a new instance.

        The maximal interval between distance to FOV boundary checks should be smaller than the half duration of the minimal pass to handle, otherwise some short passes could be missed.

        Parameters:
        frame - the reference frame attached to the sensor.
        fov - Field Of View of the sensor.
    • Method Detail

      • create

        protected GroundFieldOfViewDetector create​(double newMaxCheck,
                                                   double newThreshold,
                                                   int newMaxIter,
                                                   EventHandler<? super GroundFieldOfViewDetector> newHandler)
        Build a new instance.
        Specified by:
        create in class AbstractDetector<GroundFieldOfViewDetector>
        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
      • getFrame

        public Frame getFrame()
        Get the sensor reference frame.
        Returns:
        the reference frame attached to the sensor.
      • getFieldOfView

        public FieldOfView getFieldOfView()
        Get the Field Of View.
        Returns:
        Field Of View
      • g

        public double g​(SpacecraftState s)
        Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.

        The g function value is the angular offset between the satellite and the Field Of View boundary. It is negative if the satellite is visible within the Field Of View and positive if it is outside of the Field Of View, including the margin.

        As per the previous definition, when the satellite enters the Field Of View, a decreasing event is generated, and when the satellite leaves the Field Of View, an increasing event is generated.

        Specified by:
        g in interface EventDetector
        Specified by:
        g in class AbstractDetector<GroundFieldOfViewDetector>
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function