Per-instrument GPS receiver state.
GPS receiver fix.
Enumerator |
---|
unified_status_gps_fix_powered_off |
GPS receiver is powered off by the digitiser.
|
unified_status_gps_fix_no_comms |
GPS receiver is powered on, but there is no serial data from it.
|
unified_status_gps_fix_none |
GPS receiver has lost its fix.
|
unified_status_gps_fix_2D |
GPS receiver has a 2D fix.
|
unified_status_gps_fix_3D |
GPS receiver has a 3D fix.
|
Interpret a GPS receiver status tag.
- Parameters
-
| st | Pointer to status data (must coincide with start of tag). |
[out] | out | GPS receiver status written here. |
- Return values
-
Interprets GPS receiver status tag at st, storing the result in out.
Compose a GPS receiver status tag.
- Parameters
-
buf | Buffer to write result into. |
in | GPS receiver status. |
Encodes the GPS receiver status in in, appending the result onto buf.
int soh_store_get_gps_status |
( |
const struct soh_store_t * |
store, |
|
|
struct iso8601_date * |
timestamp, |
|
|
struct unified_status_gps_t * |
gps |
|
) |
| |
Retrieve GPS receiver status from persistent store object.
- Parameters
-
| store | Persistent storage object. |
[out] | timestamp | Timestamp of last update. May be 0. |
[out] | gps | GPS receiver information structure. May be 0. |
- Return values
-
0 | on success. |
-1 | on error (no status information seen). |