Giter VIP home page Giter VIP logo

Comments (5)

shr-project avatar shr-project commented on July 17, 2024 1

The remaining issue to support 3.20 is the timespec_t support from gpsd commit:
https://gitlab.com/gpsd/gpsd/-/commit/1d4a09541a18c453c5586e6f57d3eb5fec9526ed#fbec23e759c01a5d296e7d1e3a17e9b131df6ae4

from gps_umd.

lukehutch avatar lukehutch commented on July 17, 2024

I'm running into this too. The epe field was removed even in gpsd 3.19. From /usr/include/gps.h:

 * 8.0 - Change shape of rawdata_t.
 *       Remove epe from gps_data_t, it duplicates gps_fix_t eph
 *       Added sep (estimated spherical error, 3D)
 *       Note: Some GPS call eph as epe, others call sep as epe
 *       Add gps_fix_t datum string, and qErr

from gps_umd.

lukehutch avatar lukehutch commented on July 17, 2024

See #26 for a patch for the epe issue so that gps_umd builds against gpsd-3.19, based purely on the documentation in /usr/include/gps.h.

The other two issues must occur between 3.19 and 3.20. I haven't tried getting this working with 3.20 yet.

from gps_umd.

lights0123 avatar lights0123 commented on July 17, 2024

I'm working on a proprietary fork and don't have the time to merge our changes with this, but I can contribute my fix to this specific issue.

#if GPSD_API_MAJOR_VERSION >= 9
      if (!p->online.tv_sec && !p->online.tv_nsec) {
#else
      if (!p->online) {
#endif
          return;        
      }
#if GPSD_API_MAJOR_VERSION >= 9
        fix.time = (double)(p->fix.time.tv_sec) + (double)(p->fix.time.tv_nsec) / 1000000.;
#else
        fix.time = p->fix.time;
#endif
#if GPSD_API_MAJOR_VERSION >= 9
      if (use_gps_time && (p->online.tv_sec || p->online.tv_nsec))
        fix->header.stamp = ros::Time(p->fix.time.tv_sec, p->fix.time.tv_nsec);
#else
      if (use_gps_time && !std::isnan(p->fix.time))
        fix->header.stamp = ros::Time(p->fix.time);
#endif
      else
        fix->header.stamp = ros::Time::now();

from gps_umd.

pjreed avatar pjreed commented on July 17, 2024

Thanks, that looks good to me!

from gps_umd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.