NeoGPS icon indicating copy to clipboard operation
NeoGPS copied to clipboard

Cannot access 'fix.hdop' parameter!

Open saadi-tech opened this issue 4 years ago • 2 comments

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!

saadi-tech avatar May 29 '21 18:05 saadi-tech

  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.

clavisound avatar May 31 '21 05:05 clavisound

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.

danalvarez avatar Aug 14 '21 02:08 danalvarez