Engee documentation

Calculate Range

Calculating the distance between two aircraft.

calculate range

Description

The Calculate Range block calculates the distance between two aircraft using the formula:

Ports

Input

x1 - position of the first aircraft
`vector 3 to 1

Coordinates of the first aircraft .

Data types: Float64.

x2 - position of the second aircraft
`vector 3 to 1

Coordinates of the second aircraft .

Data types: Float64.

Output

R2-1 - distance
scalar

The distance between two aircraft. The value is always positive or equal to zero.

Data types: Float64.

Additional options

C code generation: Yes