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:
- 28:54fd002f2376
- Parent:
- 27:8852ebda4e8f
- Child:
- 29:de9fcdbc4d06
diff -r 8852ebda4e8f -r 54fd002f2376 gnss.h --- a/gnss.h Wed Dec 12 18:42:54 2018 +0500 +++ b/gnss.h Mon Dec 17 12:11:07 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, NAV_STATUS, UNKNOWN_UBX}; +enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, UBX_NAV_STATUS, UBX_NAV_SAT, UNKNOWN_UBX}; typedef struct UBX_ACK_ACK { uint8_t msg_class; @@ -110,6 +110,11 @@ }tUBX_NAV_STATUS; +typedef struct UBX_NAV_SAT{ + bool status; + +}tUBX_NAV_SAT; + /** Basic GNSS parser class. */ class GnssParser @@ -272,6 +277,12 @@ */ tUBX_NAV_STATUS decode_ubx_nav_status_msg(char *); + /** Method to parse contents of UBX_NAV_SAT and return decoded msg + * @param buff the UXB message, int length + * @return tUBX_NAV_SAT + */ + tUBX_NAV_SAT decode_ubx_nav_sat_msg(char *, int); + /** Method to send UBX LOG-RETRIEVEBATCH msg. This message is used to request batched data. * @param bool * @return int