Struct sbp::messages::ssr::MsgSsrTileDefinition[][src]

pub struct MsgSsrTileDefinition {
    pub sender_id: Option<u16>,
    pub tile_set_id: u16,
    pub tile_id: u16,
    pub corner_nw_lat: i16,
    pub corner_nw_lon: i16,
    pub spacing_lat: u16,
    pub spacing_lon: u16,
    pub rows: u16,
    pub cols: u16,
    pub bitmask: u64,
}
Expand description

Definition of a SSR atmospheric correction tile.

Provides the correction point coordinates for the atmospheric correction values in the MSG_SSR_STEC_CORRECTION and MSG_SSR_GRIDDED_CORRECTION messages.

Based on ETSI TS 137 355 V16.1.0 (LTE Positioning Protocol) information element GNSS-SSR-CorrectionPoints. SBP only supports gridded arrays of correction points, not lists of points.

Fields

sender_id: Option<u16>

The message sender_id

tile_set_id: u16

Unique identifier of the tile set this tile belongs to.

tile_id: u16

Unique identifier of this tile in the tile set. See GNSS-SSR-ArrayOfCorrectionPoints field correctionPointSetID.

corner_nw_lat: i16

North-West corner correction point latitude.

The relation between the latitude X in the range [-90, 90] and the coded number N is:

N = floor((X / 90) * 2^14)

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude.

corner_nw_lon: i16

North-West corner correction point longitude.

The relation between the longitude X in the range [-180, 180] and the coded number N is:

N = floor((X / 180) * 2^15)

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude.

spacing_lat: u16

Spacing of the correction points in the latitude direction.

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude.

spacing_lon: u16

Spacing of the correction points in the longitude direction.

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude.

rows: u16

Number of steps in the latitude direction.

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude.

cols: u16

Number of steps in the longitude direction.

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude.

bitmask: u64

Specifies the availability of correction data at the correction points in the array.

If a specific bit is enabled (set to 1), the correction is not available. Only the first rows * cols bits are used, the remainder are set to 0. If there are more then 64 correction points the remaining corrections are always available.

Starting with the northwest corner of the array (top left on a north oriented map) the correction points are enumerated with row precedence - first row west to east, second row west to east, until last row west to east - ending with the southeast corner of the array.

See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the definition of the bits is inverted.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The message type.

The message name.

Formats the value using the given formatter. Read more

Performs the conversion.

Get the message name.

Get the message type.

Get the sender_id if it is set.

Set the sender id.

Number of bytes this message will take on the wire.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.