diff options
Diffstat (limited to 'driver_tsip.c')
-rw-r--r-- | driver_tsip.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/driver_tsip.c b/driver_tsip.c index 01a11e33..368b0dc5 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -197,7 +197,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) session->context->valid |= LEAP_SECOND_VALID; session->newdata.time = gpsd_gpstime_resolve(session, (unsigned short)s1, (double)f1); - mask |= TIME_IS; + mask |= TIME_IS | PPSTIME_IS; } gpsd_report(LOG_INF, "GPS Time %f %d %f\n", f1, s1, f2); break; @@ -294,7 +294,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) gpsd_gpstime_resolve(session, (unsigned short)session->context->gps_week, (double)f2); - mask |= TIME_IS; + mask |= TIME_IS | PPSTIME_IS; } mask |= LATLON_IS | ALTITUDE_IS | CLEAR_IS | REPORT_IS; gpsd_report(LOG_DATA, "SPPLLA 0x4a " @@ -556,7 +556,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) gpsd_gpstime_resolve(session, (unsigned short)session->context->gps_week, (double)f1); - mask |= TIME_IS; + mask |= TIME_IS | PPSTIME_IS; } gpsd_report(LOG_INF, "GPS DP LLA %f %f %f %f\n", session->newdata.time, @@ -653,8 +653,9 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) (unsigned short)s4, (double)ul1 *1e-3); mask |= - TIME_IS | LATLON_IS | ALTITUDE_IS | SPEED_IS | TRACK_IS | - CLIMB_IS | STATUS_IS | MODE_IS | CLEAR_IS | REPORT_IS; + TIME_IS | PPSTIME_IS | LATLON_IS | ALTITUDE_IS | SPEED_IS | + TRACK_IS | CLIMB_IS | STATUS_IS | MODE_IS | CLEAR_IS | + REPORT_IS; gpsd_report(LOG_DATA, "SP-LFEI 0x20: time=%.2f lat=%.2f lon=%.2f alt=%.2f " "speed=%.2f track=%.2f climb=%.2f " @@ -723,8 +724,9 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) if ((session->newdata.track = atan2(d1, d2) * RAD_2_DEG) < 0) session->newdata.track += 360.0; mask |= - TIME_IS | LATLON_IS | ALTITUDE_IS | SPEED_IS | TRACK_IS | - CLIMB_IS | STATUS_IS | MODE_IS | CLEAR_IS | REPORT_IS; + TIME_IS | PPSTIME_IS | LATLON_IS | ALTITUDE_IS | SPEED_IS | + TRACK_IS |CLIMB_IS | STATUS_IS | MODE_IS | CLEAR_IS | + REPORT_IS; gpsd_report(LOG_DATA, "SP-CSP 0x23: time=%.2f lat=%.2f lon=%.2f alt=%.2f " "speed=%.2f track=%.2f climb=%.2f " @@ -751,7 +753,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) session->context->valid |= LEAP_SECOND_VALID; session->newdata.time = gpsd_gpstime_resolve(session, (unsigned short)s1, (double)ul1); - mask |= TIME_IS | CLEAR_IS; + mask |= TIME_IS | PPSTIME_IS | CLEAR_IS; gpsd_report(LOG_DATA, "SP-TTS 0xab time=%.2f mask={TIME}\n", session->newdata.time); } |