[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] count of satellites_used is incorrect
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-users] count of satellites_used is incorrect |
Date: |
Thu, 26 Apr 2018 12:13:53 -0700 |
Yo Ralph!
On Thu, 26 Apr 2018 16:31:04 +0200
Ralph Nemitz <address@hidden> wrote:
> fprintf ( stderr, "%s (%lu/%lu) fix: %d
> lat/lon/alt: %f/%f/%f status: %d deviations: %f/%f satellites: %d\n",
> __FILE__, outtimed, cycle,
> gpsdata.fix.mode,
> gpsdata.fix.latitude, gpsdata.fix.longitude, gpsdata.fix.altitude,
> gpsdata.status,
> gpsdata.dop.pdop, gpsdata.dop.hdop, gpsdata.satellites_used );
Not a good way to handle the data. Sometimes gpsd sends TPV data, in
a TPV JSON packet. Sometimes it sends skyview data in a SKY JSON packet.
You are not separating the packet types. You are printing TPV data
when you get SKY data, and view versa.
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
pgprYJ8RhU5BA.pgp
Description: OpenPGP digital signature
- Re: [gpsd-users] count of satellites_used is incorrect, (continued)
- Re: [gpsd-users] count of satellites_used is incorrect, David J Taylor, 2018/04/26
- Re: [gpsd-users] count of satellites_used is incorrect, Gary E. Miller, 2018/04/26
- Re: [gpsd-users] count of satellites_used is incorrect, David J Taylor, 2018/04/27
- Re: [gpsd-users] count of satellites_used is incorrect, Gary E. Miller, 2018/04/27
- Re: [gpsd-users] count of satellites_used is incorrect, David J Taylor, 2018/04/28
- Re: [gpsd-users] count of satellites_used is incorrect, Gary E. Miller, 2018/04/28
- Message not available
- Message not available
- Re: [gpsd-users] count of satellites_used is incorrect, David J Taylor, 2018/04/30
- Re: [gpsd-users] count of satellites_used is incorrect, Gary E. Miller, 2018/04/30
- Re: [gpsd-users] count of satellites_used is incorrect, David J Taylor, 2018/04/30
- Re: [gpsd-users] count of satellites_used is incorrect, Gary E. Miller, 2018/04/30
Re: [gpsd-users] count of satellites_used is incorrect,
Gary E. Miller <=