Module gnss

Module gnss 

Source
Expand description

Codecs for the positioning properties (PROP_GNSS_*).

The receiver’s view of the world is one GnssSnapshot, but it reaches a host as five independent properties so that a host that only wants a position never pays for the rest. GnssSnapshot::encode and GnssSnapshot::absorb are the two halves of that split: a device encodes whichever property was asked for, and a host folds the properties it read back into one snapshot.

Two of the five always answer: PROP_GNSS_FIX and PROP_GNSS_SATELLITES read 0 when the receiver is off or searching, because “no fix” is a fact the device is sure of. The three that describe a position — location, altitude, precision — answer the empty value until there is a position to describe.

Structs§

GnssSnapshot
The receiver’s current view of position and constellation.

Enums§

FixKind
PROP_GNSS_FIX values.
GnssError
Encode or decode error.

Constants§

MAX_LOCATION_LEN
Maximum length of a PROP_GNSS_LOCATION value, and of any value this module encodes.
MAX_VALUE_LEN
Largest encoded property value produced here.

Functions§

is_positioning_property
Whether key is one of the positioning properties this module codes.