Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gnss by
Diff: gnss.h
- Revision:
- 20:f91c0334d017
- Parent:
- 16:6c226e3e9d61
- Child:
- 26:405a5e611635
--- a/gnss.h Fri Oct 05 18:46:48 2018 +0500 +++ b/gnss.h Mon Oct 08 14:22:33 2018 +0500 @@ -50,7 +50,7 @@ enum eUBX_MSG_CLASS {NAV = 0x01, ACK = 0x05, LOG = 0x21}; -enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, UNKNOWN_UBX}; +enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, NAV_STATUS, UNKNOWN_UBX}; typedef struct UBX_ACK_ACK { uint8_t msg_class; @@ -101,6 +101,15 @@ }tUBX_CFG_BATCH; +typedef struct UBX_NAV_STATUS{ + uint32_t itow; + uint8_t fix; + uint8_t flags; + uint32_t ttff; + uint32_t msss; + +}tUBX_NAV_STATUS; + /** Basic GNSS parser class. */ class GnssParser @@ -257,6 +266,12 @@ */ tUBX_LOG_BATCH decode_ubx_log_batch_msg(char *); + /** Method to parse contents of UBX_NAV_STATUS and return decoded msg + * @param buff the UXB message + * @return tUBX_NAV_STATUS + */ + tUBX_NAV_STATUS decode_ubx_nav_status_msg(char *); + /** Method to send UBX LOG-RETRIEVEBATCH msg. This message is used to request batched data. * @param bool * @return int