Skip to content

Commit

Permalink
GPS Extended Fix Not Populating under RTK (#74)
Browse files Browse the repository at this point in the history
* fixing bug where extended fix doesn't populate in rtk fi

* removing pycache

* Update client.cpp

Making fix for all GPSD versions.

---------

Co-authored-by: Logan Elliott <lelliott@swri.org>
Co-authored-by: David Anthony <djanthony@gmail.com>
  • Loading branch information
3 people authored May 9, 2024
1 parent 68e8398 commit 6f5963e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gpsd_client/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ class GPSDClient {
}

#if GPSD_API_MAJOR_VERSION >= 12
if ((p->fix.status & STATUS_GPS) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
if ((p->fix.status != STATUS_NO_FIX) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
#elif GPSD_API_MAJOR_VERSION >= 10
if ((p->fix.status & STATUS_FIX) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
if ((p->fix.status != STATUS_NO_FIX) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
#else
if ((p->status & STATUS_FIX) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
if ((p->status != STATUS_NO_FIX) && !(check_fix_by_variance && std::isnan(p->fix.epx))) {
#endif

status.status = 0; // FIXME: gpsmm puts its constants in the global
Expand Down

0 comments on commit 6f5963e

Please sign in to comment.