SlashDevin / NeoGPS

NMEA and ublox GPS parser for Arduino, configurable to use as few as 10 bytes of RAM
GNU General Public License v3.0
702 stars 194 forks source link

Cannot access 'fix.hdop' parameter! #149

Open saadi-tech opened 3 years ago

saadi-tech commented 3 years ago

When I try to access, fix.hdop using: hdop = fix.hdop;

(Screenshot attached) Screenshot (29)

I get the following error: 'class gps_fix' has no member named 'hdop'

(While I can easily access all other parameters like fix.latitude etc.

Please check into this issue and help me out.

Thanks!

clavisound commented 3 years ago
  1. Project is abandoned.
  2. The documentation is top-of-the-top: read it. https://github.com/SlashDevin/NeoGPS/blob/master/extras/doc/Configurations.md
  3. This is not a bug / issue.
danalvarez commented 2 years ago

Do you have #define GPS_FIX_HDOP enabled in GPSfix_cfg.h? I think that must be enabled to be accessible via the fix structure, as the GPSfix_cfg.h states:

 * Disabling a member prevents it from being parsed from a received message.
 * The disabled member cannot be accessed or stored, and its validity flag 
 * would not be available.  It will not be declared, and code that uses that
 * member will not compile.