Skip to content

LAST_SENTENCE_IN_INTERVAL is not properly defined in NMEAGPS_cfg.h although I think it is? #158

Description

@tmargot

Error encountered whilst trying to configure/run ubloxRate.ino,. I ran the NMEAorder.ino and determined that GLL was the last sentence, but I keep getting an error running ubloxRate.ino

Error in console:

21:52:13.859 -> LAST_SENTENCE_IN_INTERVAL is not properly defined in NMEAGPS_cfg.h!
21:52:13.905 ->    See Prerequisite 4 above

I did print out the expected/current values:

21:52:13.766 -> Current Last Sentence = 255
21:52:13.812 -> Last Sentence Configured = 6

My NMEAGPS_cfg.h:

//#define LAST_SENTENCE_IN_INTERVAL NMEAGPS::NMEA_RMC
#define LAST_SENTENCE_IN_INTERVAL NMEAGPS::NMEA_GLL

Not quite sure what the following means?

//     4) LAST_SENTENCE_IN_INTERVAL is defined to be
//          the following in NMEAGPS_cfg.h:
//
//          #include <stdint.h>
//          extern uint8_t LastSentenceInInterval; // a variable!
//          #define LAST_SENTENCE_IN_INTERVAL \
//                      ((NMEAGPS::nmea_msg_t) LastSentenceInInterval)
//
//        This is a replacement for the typical
//
//          #define LAST_SENTENCE_IN_INTERVAL NMEAGPS::NMEA_GLL
//
//        This allows the sketch to choose the last sentence *at run time*, not
//        compile time.  This is necessary because this sketch can send 
//        configuration commands that change which sentences are enabled.
//        The storage for the "externed" variable is below.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions