[Top][All Lists]

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

Re: [gpsd-users] Correct way to handle 5 Hz on an application

From: Lisandro Damián Nicanor Pérez Meyer
Subject: Re: [gpsd-users] Correct way to handle 5 Hz on an application
Date: Tue, 23 Oct 2018 12:03:29 -0300

El lunes, 22 de octubre de 2018 15:29:57 -03 Gary E. Miller escribió:
> Yo Lisandro!

Yo Gary!

First of all thanks for the answers! Looking at them I understand I need to 
rephrase them in, hopefully, a more ordered nature.

Before starting: the whole stack is working: I can run xgps, gpsmon and my own 
app using libgps trough a socket and everything "just works".

My *main* issue here is to know which would be the (possibly) best way to 
handle my case (cited below) on a Qt 5-based application. Read it: ideally 
every time a new fix [1] is achieved a "signal" (callback, if you want) would 
be called to consume it.

[1] I might be using the wrong word here, maybe "new data arrives" should be 
used. Any insights on the correct terms here are highly appreciated.

Currently I'm using gps_waiting, which, as you say, checks the input queue and 
returns either when a timeout is reached or there is available data. Once 
either of them happens I need to call it again for gain more data. This, in my 
eyes, it's a kind of polling.

So if I could libgps to "signal" me that there is data ready and then fetch it 
as possible it would be just cool.

Now there might be good reasons to not do this, in this case I would really 
like to know.

Again, thanks for your time and replies. I'll check the code you mentioned in 
the other mail too.

I wish to be cremated. One tenth of my ashes shall be given
to my agent, as written in our contract.
 -- Groucho Marx

Lisandro Damián Nicanor Pérez Meyer

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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