Add check for GPS Frame Errors message

This commit is contained in:
Jonathan Bennett
2023-09-02 04:25:18 -05:00
parent 5d6f0ea6c4
commit 1a178c7d33
2 changed files with 48 additions and 25 deletions

View File

@@ -18,6 +18,13 @@ typedef enum {
GNSS_MODEL_UNKNOWN,
} GnssModel_t;
typedef enum {
GNSS_RESPONSE_NONE,
GNSS_RESPONSE_NAK,
GNSS_RESPONSE_FRAME_ERRORS,
GNSS_RESPONSE_OK,
} GPS_RESPONSE;
// Generate a string representation of DOP
const char *getDOPString(uint32_t dop);
@@ -173,8 +180,8 @@ class GPS : private concurrency::OSThread
GnssModel_t probe(int serialSpeed);
int getACK(uint8_t *buffer, uint16_t size, uint8_t requestedClass, uint8_t requestedID, int waitMillis);
bool getACK(uint8_t c, uint8_t i, int waitMillis);
bool getACK(const char *message, int waitMillis);
GPS_RESPONSE getACK(uint8_t c, uint8_t i, int waitMillis);
GPS_RESPONSE getACK(const char *message, int waitMillis);
// delay counter to allow more sats before fixed position stops GPS thread
uint8_t fixeddelayCtr = 0;