From 9e020f0ffaab9ddea6f9129ebb98833c070ebb03 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 5 Oct 2011 01:02:35 -0400 Subject: Emit a count of used satellites in the extra timing attributes. We'll use this to check Gary's Miller's suspicion that time to compute a fix varies significantly with the number of sats in the skyview. --- gpsd_json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpsd_json.c') diff --git a/gpsd_json.c b/gpsd_json.c index 217d5de7..17ed36c9 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -214,9 +214,10 @@ void json_tpv_dump(const struct gps_data_t *gpsdata, if (policy->timing) (void)snprintf(reply + strlen(reply), replylen - strlen(reply), - "\"cycle_start\":%f,\"cycle_count\":%lu,\"xmit_time\":%f,", + "\"cycle_start\":%f,\"cycle_count\":%lu,\"sats\":%2d,\"xmit_time\":%f,", gpsdata->cycle_start, gpsdata->cycle_count, + gpsdata->satellites_used, xmit_time); #endif /* TIMING_ENABLE */ } -- cgit v1.2.1