gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Problems with C++ gpsd client


From: Gary E. Miller
Subject: Re: [gpsd-dev] Problems with C++ gpsd client
Date: Fri, 19 Jan 2018 10:23:50 -0800

Yo ldimauro!

On Fri, 19 Jan 2018 08:13:34 +0000
ldimauro <address@hidden> wrote:

> I have a gps transceiver and I'm trying to read its coordinates with  
> this C++ program using "libgpsmm" library:

I've not used the C++ library myself.

>              if ((data->status == STATUS_FIX) && (data->fix.mode ==  
> MODE_2D || data->fix.mode == MODE_3D))
>                  cout << "latitude: " << data->fix.latitude << ",  
> longitude: " <<  data->fix.latitude << ", speed: " <<
> data->fix.speed << ", timestamp: " << data->fix.time;
>              else
>                  printf("no GPS data available\n");

Just because you do not have a 2D or 3D fix does not mean you have
no data available.  Open up that test and at least report the fix
status every time you get it.  Better yet, report reception of
all messages, at least during testing.

> How can I fix this problem? I'm using debian 8 OS and the user
> belong to group "tty".

Did you try running this as root?

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: pgpcllI2YxQKf.pgp
Description: OpenPGP digital signature


reply via email to

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