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§
- Gnss
Snapshot - The receiver’s current view of position and constellation.
Enums§
Constants§
- MAX_
LOCATION_ LEN - Maximum length of a
PROP_GNSS_LOCATIONvalue, and of any value this module encodes. - MAX_
VALUE_ LEN - Largest encoded property value produced here.
Functions§
- is_
positioning_ property - Whether
keyis one of the positioning properties this module codes.