diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-25 19:34:03 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-25 19:34:03 -0700 |
commit | 3973e8d1b49a6f1f119f4ab4bf603068b31e0882 (patch) | |
tree | 77584962d4a359550c4c977bf6ee0ba507e8484a /driver_zodiac.c | |
parent | c700827479321d5a5ddf4275d390b3ad7ca53842 (diff) | |
download | gpsd-3973e8d1b49a6f1f119f4ab4bf603068b31e0882.tar.gz |
driver_zodia: Decopde map datum.
Shows in regression.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r-- | driver_zodiac.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c index 41a5565a..e393b5a2 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -147,6 +147,8 @@ static gps_mask_t handle1000(struct gps_device_t *session) gps_mask_t mask; double subseconds; struct tm unpacked_date; + int datum; + /* ticks = getzlong(6); */ /* sequence = getzword(8); */ /* measurement_sequence = getzword(9); */ @@ -185,7 +187,9 @@ static gps_mask_t handle1000(struct gps_device_t *session) session->newdata.track = (int)getzword(36) * RAD_2_DEG * 1e-3; session->mag_var = ((short)getzword(37)) * RAD_2_DEG * 1e-4; session->newdata.climb = ((short)getzword(38)) * 1e-2; - /* map_datum = getzword(39); */ + datum = getzword(39); + datum_code_string(datum, session->newdata.datum, + sizeof(session->newdata.datum)); /* * The manual says these are 1-sigma. Device reports only eph, circular * error; no harm in assigning it to both x and y components. |