Positions blocks

Position blocks allow to operate with position variables.

Note

In 1x PDI Builder, position variables are also refered to as Features. These features variables are composed as follows:


Type Name Content Range
Float64 latitude Latitude component scaled as 10-7 degrees (centimeter-level precision on the surface of the Earth) [–90, 90] * 10-7 scaled degrees
Float64 longitude Longitude component scaled as 10-7 degrees (centimeter-level precision on the surface of the Earth) [–180, 180] * 10-7 scaled degrees
Float64 height Height above the WGS84 ellipsoid in millimeters –

Constant Position

Constant Position block defines a position on Earth using Latitude, Longitude and WGS84 Height.

Constant Position block
  • Output

    Pin 0: Output of the configured position.

  • Configuration menu:

    Constant Position block configuration

    The following parameters must be configured to define the desired absolute position:

    • The coordinates can be set in UTM, MGRS (Military Grid Reference System), Decimal Degrees or Degress º ' ".
    • They are indicated through the latitude, longitude and altitude.
    • WGS84: The first time, the altitude must be defined with respect to the ellipsoid, WGS84. After this, MSL and AGL values will be calculated automatically and the user will also be able to define the altitude with respecto to the sea level, MSL.

LLH to position

LLH to position block is used to cast three high-precision (64-bit) variables—longitude, latitude, and WGS84 height—into a single position data structure.

LLH to position block

This block consolidates individual geographic coordinates into a unified position format used by other navigation and guidance components within the autopilot.

  • Inputs

    lon: Longitude in radians.

    lat: Latitude in radians.

    height: WGS84 height in meters.

  • Output

    Pin 0: Position.

Move

Move block outputs the position which is the result of moving the input position with the displacement of the input vector.

Move block
  • Inputs

    Pin 0: Input position.

    Pin 1: Input displacement vector in NED frame. It must be a vector of 3 elements, i.e. a 3x1 vector.

  • Output

    Pin 0: Output position.

Position to LLH

Position to LLH block is designed to deconstruct a unified position data structure into its three constituent high-precision (64-bit) variables: longitude, latitude, and WGS84 height.

Position to LLH block
  • Input

    Pin 0: Position.

  • Outputs

    lon: Longitude in radians.

    lat: Latitude in radians.

    height: WGS84 height expressed in meters.

Read Feature

Read Feature block reads a position from a FID (feature) variable.

Read Feature block
  • Outputs

    Pin 0: Position to read.

    Pin 1: Enabled/disabled status: true for non operation features, falsa in operation features if they are not set to any value.

  • Configuration menu:

    Read Feature block configuration

    Users must select the feature variable where the position is stored.

Read Mission Point List

Read Mission Point List block functions as a position reader within an operation group. It is designed to return the position from a selected operation feature group that is closest to a given reference point.

Read Mission Point List block
  • Inputs

    Origin: Reference position to compute distance.

    Default: Default position (optional).

  • Outputs

    Pin 0: Closest position to the reference (3D distance).

    Pin 1: Validity flag, it is set to false when the output position is not valid, for example when the group is empty or has no valid features if there is no default position connected.

Relative Vector

Relative Vector block calculates the relative vector in NED frame from the two input positions.

Relative Vector block
  • Inputs

    From: First position.

    To: Second position.

  • Output

    Vector: Distance vector from the first position to the second position.

Read Waypoint

Read Waypoint block returns the information of a waypoint of the mission given its index.

Read Waypoint block
  • Input

    Pin 0: Index of the waypoint to read. It can be obtained, for example, from the Read Waypoint List block.

  • Outputs

    Valid: True when the input index corresponds to an existing and enabled waypoint, false otherwise.

    Next: Index of the next waypoint in the route. It is 65535 when the waypoint has no next waypoint.

    Position: Position of the waypoint.

    Speed type: Type of speed configured in the waypoint:

             - 0: IAS (Indicated Airspeed)

             - 1: TAS (True Airspeed)

             - 2: Ground speed

             - 3: Arrival time

    Reach mode: Reach mode configured in the waypoint:

             - 0: Fixed speed

             - 1: Reach speed (speed at which the waypoint is reached)

             - 2: Fly-by (the vehicle advances to the next waypoint when the distance to this one is lower than the fly-by distance)

    Vlink: Speed between waypoints (m/s).

    Vpoint: Speed when reaching the waypoint (m/s). If the reach mode is not Reach speed, it is equal to Vlink.

    Fly-by distance: Distance to the waypoint at which the vehicle advances to the next one (m). It is 0 if the reach mode is not Fly-by.

    Arrival time: Time at which the waypoint must be reached. It is only given when the speed type is Arrival time; otherwise it is 0.

    Note

    • When the speed type is Arrival time, Vlink, Vpoint and Fly-by distance are 0.
    • When Valid is false, all the outputs are set to 0, except Next, which is set to 65535.

Read Waypoint List

Read Waypoint List block returns the index of the waypoint stored at a given position of a waypoint group. Its output is typically connected to the input of the Read Waypoint block.

Read Waypoint List block
  • Input

    Index: Position inside the selected waypoint group to read (the first waypoint of the group is 0).

  • Output

    Waypoint: Index of the waypoint stored at that position of the group. It is 65535 (invalid waypoint) when the group is not enabled or the input index is greater than or equal to the number of waypoints in the group.

  • Configuration: Users must select the waypoint group to read from (Waypoint Group 0 in the figure above). The selected group must be one of the configured waypoint groups, otherwise a PDI error will occur.

Write Feature

Write Feature block writes a position to a FID variable.

Write Feature block
  • Input

    Pin 0: Position to write.

  • Configuration menu:

    Write Feature block configuration

    Users must select the feature variable where the position is to be stored.


© 2026 Embention. All rights reserved.