Engee documentation

Flat Earth to LLA

Conversion of local tangent plane coordinates to geodesic coordinates.

blockType: SubSystem

Path in the library:

/Aerospace/Axes Transformations/Flat Earth to LLA

Description

The Flat Earth to LLA block converts the coordinates of the local tangent plane ( ) into latitude ( ), longitude ( ) and altitude ( ).

Algorithms

The coordinate system of the local tangent plane assumes a positive downward direction of the axis. The transformation starts by converting the plane coordinates and to north and east coordinates. This transformation is of the form:

where is the angle (in degrees) clockwise between the axis and the north direction.

To convert north and east coordinates to geodetic latitude and longitude, the algorithm uses:

where

  • - is the equatorial radius of the planet;

  • - the compression of the planet.

Small changes of latitude and longitude are approximated through small changes of north and east coordinates by the formulas:

The output latitude and longitude values are calculated as the sum of the initial latitude/longitude values and their small increments:

The height is calculated as the negative value of the coordinate of the local tangent plane minus the reference height ( ):

Ports

Input

# Xe (m) — position in the coordinate system of the local tangent plane
`vector 3 by 1

Details

The position in the coordinate system of the local tangent plane, returned as a vector.

Data types

Float64.

Complex numbers support

No

# href (m) — reference height
scalar

Details

The reference height from the Earth’s surface to the coordinate system of the local tangent plane.

Data types

Float64.

Complex numbers support

No

Output

# μ l (deg) — geodetic latitude and longitude
`vector 2 by 1

Details

Geodetic latitude and longitude given as a vector in degrees.

Data types

Float64.

Complex numbers support

No

# h (m) — altitude above sea level
scalar

Details

The height above the input reference height given by a scalar quantity.

Data types

Float64.

Complex numbers support

No

Parameters

Parameters

# Planet model — planet
Earth (WGS84) | Custom

Details

The planet model used.

Values

Earth (WGS84) | Custom

Default value

Earth (WGS84)

Program usage name

planet_model

Tunable

No

Evaluatable

Yes

# Flattening — planetary contraction

Details

The compression of a planet, given as a scalar.

Dependencies

To use this parameter, set the parameter Planet model to Custom.

Default value

0.0033528106647474805

Program usage name

flat

Tunable

No

Evaluatable

Yes

# Equatorial radius of planet — equatorial radius of the planet

Details

The equatorial radius of the planet, given as a scalar.

Dependencies

To use this parameter, set the parameter Planet model to Custom.

Default value

6378137

Program usage name

radius

Tunable

No

Evaluatable

Yes

# Reference geodetic latitude and longitude [deg] — initial geodetic latitude and longitude (deg)

Details

Initial geodetic latitude and longitude (in degrees) given as a vector.

Default value

[0, 10]

Program usage name

ref_pos

Tunable

No

Evaluatable

Yes

# Direction of flat Earth x-axis (degrees clockwise from north — direction of the local tangent plane along the x-axis (in degrees clockwise from north)

Details

Angle to convert the local tangent plane coordinates and to north and east (geodetic) coordinates, specified as a scalar, in degrees.

Default value

0.0

Program usage name

ref_rot

Tunable

No

Evaluatable

Yes

Literature

  1. Stevens, B. L., and F. L. Lewis. Aircraft Control and Simulation, Hoboken, NJ: John Wiley & Sons, 2003.

  2. Etkin, B. Dynamics of Atmospheric Flight, Hoboken, NJ: John Wiley & Sons, 1972.