summaryrefslogtreecommitdiffstats
path: root/binding/afm-gps-binding.c
AgeCommit message (Collapse)AuthorFilesLines
2017-11-28binding: gps: add replay support for GPS tracesMatt Ranostay1-4/+78
Allow agl-service-gps to enter into demo mode using an previously recorded JSON GPS trace. This is entered by symlinking or copying a recorded trace log from the binding to ~/app-data/agl-service-gps/recording.log Bug-AGL: SPEC-1139 Change-Id: I5e1ac147000320035219b9183e4aeae1d9123429 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-28binding: gps: don't save null records in recordingMatt Ranostay1-3/+4
While waiting for GPS lock don't save 'null' entries. Bug-AGL: SPEC-1139 Change-Id: Iccac429c1ae024d2b26046558cb5ace9d4c85daf Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-22binding: gps: add tracking to event outputeel_4.99.3eel/4.99.34.99.3Matt Ranostay1-0/+5
Add tracking/heading value in degrees from true north for navigation applications Bug-AGL: SPEC-1068 Change-Id: I1798648bc1ea0076036f20f1312adef20b7ab1c1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-13binding: gps: add recording functionalityMatt Ranostay1-0/+104
Allow recording of gps position data from the binding to allow data for use in unit tests, and demonstrations. Bug-AGL: SPEC-1089 Change-Id: I58da8382835e5d3fc45193b6e552525835e034db Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-09-16binding: gps: add gpsd.socket race condition fixMatt Ranostay1-1/+6
Try up to 5 times with a 2500 ms interval to read data after a subscription to gpsd stream. This assures an initial connection to the gpsd.socket is in a known state. Bug-AGL: SPEC-832 Change-Id: Ice74c8372e2f592a353f1bd43ddde7d447ab0c8d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-09-13binding: gps: add timestamp to JSON responseMatt Ranostay1-0/+7
Return the timestamp from the gps fix in the JSON data response. Bug-AGL: SPEC-844 Change-Id: I6befdf3f02e523ad40ff73850b41d7a45730c0d8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-09-12binding: gps: check error flags for data structMatt Ranostay1-3/+5
Check to be sure no error flags are set to avoid having multiple partial events in a short span (under a second). This is will reduce processing from consumers of the gps binding, and assure all values are updated and valid at the same instant. Bug-AGL: SPEC-844 Change-Id: I8765481b7eef4c25087798e167b39680ad56e0cc Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-09-12binding: gps: use _exit instead of abort()Matt Ranostay1-1/+1
Use threadsafe _exit() instead of abort() to have more clean logs. This avoid a confusing and unused backtrace from the AGL framework. Bug-AGL: SPEC-844 Change-Id: Ia3fb3b5cb1e0a8afdfd69dad525fb279ea51ce2b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-31binding: gps: add dop reportingMatt Ranostay1-0/+33
Add dilution of precision report to JSON output to allow subscribers to judge if the 3D fix lock is good enough. If not user should fall back to the geoclue binding support. Bug-AGL: SPEC-844 Change-Id: If5a520d23c8b455583a022ab07a02dea03185705 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-28binding: gps: rewrite binding to use libgpsMatt Ranostay1-971/+95
Rewrite gps binding to use libgps native functionality to communicate with gps over SOCK_STREAM socket. Bug-AGL: SPEC-844 Change-Id: I78d2d14900d69b542e8bd456df577ee9ecdcb103 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-28binding: gps: move build to cmakeMatt Ranostay1-0/+1051
Enable cmake build system for building webpack wgt, and remove unnecessary files Change-Id: Ia00b1ba7a9d26e7f8933c0ccc97bf8b91dbfa012 Bug-AGL: SPEC-823 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>