summaryrefslogtreecommitdiff
path: root/libgps_json.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-02-16 14:58:23 -0800
committerGary E. Miller <gem@rellim.com>2018-02-16 14:58:23 -0800
commit89251b800ff837233fca9318854380c2cf7a2138 (patch)
tree6a922ac8a4496608bb682eae0aa11d65c947c9af /libgps_json.c
parent7e0e8f02ff960e0f00ec3b1843334c594be8a963 (diff)
downloadgpsd-89251b800ff837233fca9318854380c2cf7a2138.tar.gz
ECEF: jiggle the ECEF data structure, add missing accuracies to client.
Diffstat (limited to 'libgps_json.c')
-rw-r--r--libgps_json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgps_json.c b/libgps_json.c
index ee3a5ded..9ca02293 100644
--- a/libgps_json.c
+++ b/libgps_json.c
@@ -14,10 +14,6 @@ PERMISSIONS
***************************************************************************/
-/* Ubuntu isfinite() needs _XOPEN_SOURCE, 600 means X/Open 2004 */
-/* Ubuntu man page says _POSIX_C_SOURCE 200112L should work, it fails */
-#define _XOPEN_SOURCE 600
-
#include <stdbool.h>
#include <math.h>
#include <string.h>
@@ -78,6 +74,10 @@ static int json_tpv_read(const char *buf, struct gps_data_t *gpsdata,
.dflt.real = NAN},
{"ecefvz", t_real, .addr.real = &gpsdata->fix.ecef.vz,
.dflt.real = NAN},
+ {"ecefpAcc", t_real, .addr.real = &gpsdata->fix.ecef.vAcc,
+ .dflt.real = NAN},
+ {"ecefvAcc", t_real, .addr.real = &gpsdata->fix.ecef.pAcc,
+ .dflt.real = NAN},
{"mode", t_integer, .addr.integer = &gpsdata->fix.mode,
.dflt.integer = MODE_NOT_SEEN},
{"status", t_integer, .addr.integer = &gpsdata->status,