gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Where should I start from?


From: Gary E. Miller
Subject: Re: [gpsd-users] Where should I start from?
Date: Fri, 14 Jun 2019 10:37:47 -0700

Yo raaj!

On Fri, 14 Jun 2019 16:20:06 +0800
raaj lokanathan <address@hidden> wrote:

> If that’s the case, driver.c

driver.c is a bit old, and intended as an example, not to compile, but
the basics are correct.

> how it sends the decoded data to the gpsd
> client?

The magic of gpsd is that the driver does not know or care about that.
That is common to all the drivers and does not need touching.

The driver fills in structures with the data.  gps_fix_t for the PVT
data.  gps_data_t for most of the rest of the data.

Set some flags to tell gpsd what got set, and the driver is done.

> Which file is handling this?

Save that for later, you don't need to touch those files.  But if you
must: gps_json.c formats the data into JSON for output.  libgpsd_core.c
takes the data from structures like gpsd_fix_t and decides how and
when to send.



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgp1jzpatKHr0.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]