diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-15 12:46:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-15 12:46:03 +0000 |
commit | 4d45b159baa4bdb3a926cb23384c4c7a3d07a74b (patch) | |
tree | d0bde309baaebbffea5b90e2a5c2621c15f3ad67 /driver_superstar2.c | |
parent | 94733458bbefa8c7d799653c5b713d2c55bbe996 (diff) | |
download | gpsd-4d45b159baa4bdb3a926cb23384c4c7a3d07a74b.tar.gz |
Give DOPs their own structure...
...mainly because there will shortly be code to clear it as a unit.
Pure refactoring step; all regression tests pass, splint gives no
warnings.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index 4795a365..3397c6d9 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -116,8 +116,8 @@ superstar2_msg_navsol_lla(struct gps_device_t *session, mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET ; session->gpsdata.satellites_used = (int)getub(buf,71) & 0x0f; - session->gpsdata.hdop = getleuw(buf,66) * 0.1; - session->gpsdata.vdop = getleuw(buf,68) * 0.1; + session->gpsdata.dop.hdop = getleuw(buf,66) * 0.1; + session->gpsdata.dop.vdop = getleuw(buf,68) * 0.1; /* other DOP if available */ mask |= HDOP_SET | VDOP_SET | USED_SET; @@ -196,8 +196,8 @@ superstar2_msg_navsol_ecef(struct gps_device_t *session, mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET ; session->gpsdata.satellites_used = (int)getub(buf, 79) & 0x0f; - session->gpsdata.hdop = getleuw(buf, 74) * 0.1; - session->gpsdata.vdop = getleuw(buf, 76) * 0.1; + session->gpsdata.dop.hdop = getleuw(buf, 74) * 0.1; + session->gpsdata.dop.vdop = getleuw(buf, 76) * 0.1; /* other DOP if available */ mask |= HDOP_SET | VDOP_SET | USED_SET; |