Class CircularFieldOfViewDetector

    • Constructor Detail

      • CircularFieldOfViewDetector

        public CircularFieldOfViewDetector​(double maxCheck,
                                           PVCoordinatesProvider pvTarget,
                                           org.hipparchus.geometry.euclidean.threed.Vector3D center,
                                           double halfAperture)
        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:
        maxCheck - maximal interval in seconds
        pvTarget - Position/velocity provider of the considered target
        center - Direction of the FOV center, in spacecraft frame
        halfAperture - FOV half aperture angle
    • Method Detail

      • getPVTarget

        public PVCoordinatesProvider getPVTarget()
        Get the position/velocity provider of the target .
        Returns:
        the position/velocity provider of the target
      • getCenter

        public org.hipparchus.geometry.euclidean.threed.Vector3D getCenter()
        Get the direction of FOV center.
        Returns:
        the direction of FOV center
      • getHalfAperture

        public double getHalfAperture()
        Get FOV half aperture angle.
        Returns:
        the FOV half aperture angle
      • 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 difference between FOV half aperture and the absolute value of the angle between target direction and field of view center. It is positive inside the FOV and negative outside.

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