[Top][All Lists]

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

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

From: ldimauro
Subject: Re: [gpsd-dev] Problems with C++ gpsd client
Date: Mon, 22 Jan 2018 10:23:11 +0000
User-agent: Internet Messaging Program (IMP) H5 (6.1.7)

Hi Gary!

Did you try running this as root?

yes, I have run test program as root but it doesn't work.

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.

I'e modified the loop body into:
cout << "Status: " << data->status << ", mode: " << data->fix.mode
<< ", latitude: " << data->fix.latitude << ", longitude: " << data->fix.latitude << ", speed: " << data->fix.speed << ", timestamp: " << data->fix.time << endl;

and it print always this line:

Status: 1, mode: 1, latitude: nan, longitude: nan, speed: nan, timestamp: nan

You can find the data structure content returned by calling "read()" method at this link: (it is too big to past it here).

Thank you for your support.


reply via email to

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