copilot-verifier-4.3: System for verifying the correctness of generated Copilot programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Copilot.Verifier.Examples.ShouldPass.WCV

Description

This example shows an implementation of the Well-Clear Violation algorithm, it follows the implementation described in 'Analysis of Well-Clear Bounday Models for the Integration of UAS in the NAS', https://ntrs.nasa.gov/citations/20140010078.

Synopsis

Documentation

dthr :: Stream Double Source #

dthr is the horizontal distance threshold.

tthr :: Stream Double Source #

tthr is the horizontal time threshold.

zthr :: Stream Double Source #

zthr is the vertical distance / altitude threshold.

tcoathr :: Stream Double Source #

tcoathr is the vertical time threshold.

(|*|) :: Vect2 -> Vect2 -> Stream Double Source #

Multiply two Vectors.

sq :: Vect2 -> Stream Double Source #

Calculate the square of a vector.

norm :: Vect2 -> Stream Double Source #

Calculate the length of a vector.

det :: Vect2 -> Vect2 -> Stream Double Source #

Calculate the determinant of two vectors.

(~=) :: Stream Double -> Stream Double -> Stream Bool Source #

Compare two vectors, taking into account the small error that is introduced by the usage of Types.

neg :: Vect2 -> Vect2 Source #

Negate a vector.

wcv :: (Vect2 -> Vect2 -> Stream Double) -> Vect2 -> Stream Double -> Vect2 -> Stream Double -> Stream Bool Source #

Determines if the well clear property is violated or not.