~ubuntu-branches/debian/stretch/gpsd/stretch

« back to all changes in this revision

Viewing changes to driver_zodiac.c

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2010-07-15 14:46:02 UTC
  • mto: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: james.westby@ubuntu.com-20100715144602-v68en708flyrtgcm
Tags: upstream-2.95
ImportĀ upstreamĀ versionĀ 2.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
    /* solution_type                 = getzword(11); */
153
153
    session->gpsdata.satellites_used = (int)getzword(12);
154
154
    /* polar_navigation              = getzword(13); */
155
 
    session->context->gps_week       = (unsigned short)getzword(14);
 
155
    session->context->gps_week = (unsigned short)getzword(14);
156
156
    /* gps_seconds                   = getzlong(15); */
157
157
    /* gps_nanoseconds               = getzlong(17); */
158
158
    unpacked_date.tm_mday = (int)getzword(19);
241
241
        }
242
242
    }
243
243
    session->context->gps_week = (unsigned short)gps_week;
244
 
    session->context->gps_tow = (double) gps_seconds;
 
244
    session->context->gps_tow = (double)gps_seconds;
245
245
    session->gpsdata.skyview_time =
246
246
        gpstime_to_unix(gps_week, session->context->gps_tow);
247
247
    gpsd_report(LOG_DATA, "1002: visible=%d used=%d mask={SATELLITE|USED}\n",
262
262
    if ((n < 0) || (n > 12))
263
263
        return 0;
264
264
 
 
265
    gpsd_zero_satellites(&session->gpsdata);
 
266
 
265
267
    /* ticks              = getzlong(6); */
266
268
    /* sequence           = getzword(8); */
267
 
    clear_dop(&session->gpsdata.dop);
268
269
    session->gpsdata.dop.gdop = (unsigned int)getzword(9) * 1e-2;
269
270
    session->gpsdata.dop.pdop = (unsigned int)getzword(10) * 1e-2;
270
271
    session->gpsdata.dop.hdop = (unsigned int)getzword(11) * 1e-2;