gpsd-users
[Top][All Lists]
Advanced

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

Re: Gpsd information showing as nan in application


From: raaj lokanathan
Subject: Re: Gpsd information showing as nan in application
Date: Thu, 26 Mar 2020 14:59:33 +0800

Hi Luke,

Yes exactly one each per second I can see the nan values.

On Thu, 26 Mar 2020 at 2:23 PM, Luke Hutchison <address@hidden> wrote:
Do the values alternate between NaN and a non-NaN value, once each per second?


On Wed, Mar 25, 2020 at 11:59 PM raaj lokanathan <address@hidden> wrote:
I just checked my nmea sentence to see whether are there any problem with my heading information which shows NAN sometimes. By looking at it I can confirm that the all the nmea sentence such as gprmc gpvtg are having the same heading values.

Then in which case it shows NAN? From where the NAN values are coming from?

On Thu, 26 Mar 2020 at 1:37 PM, raaj lokanathan <address@hidden> wrote:
Just curious, why the gpsd is not handling the NAN values itself?

Which means each time I develop a application I have to check for the NAN is it?

On Thu, 26 Mar 2020 at 1:38 AM, Gary E. Miller <address@hidden> wrote:
Yo raaj!

On Wed, 25 Mar 2020 17:24:50 +0800
raaj lokanathan <address@hidden> wrote:

> Just would like to know the NAN is it something expected from gpsd?

Yes.  Very intentional.

> Why is it getting NAN values?

NAN is the simplest way to mark a floating point value as invalid.  It
save having to create a valid flag for each and every floating point
value.

Read up on IEEE 754.

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
--
Thanks and regards,

Raaj Lokanathan
--
Thanks and regards,

Raaj Lokanathan
--
Thanks and regards,

Raaj Lokanathan

reply via email to

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