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.
Dependents: example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more
Revision 9:cff83b9f5093, committed 2018-05-18
- Comitter:
- fahim.alavi@u-blox.com
- Date:
- Fri May 18 13:29:00 2018 +0500
- Parent:
- 8:720841961804
- Child:
- 10:bfa9081e1d14
- Commit message:
- Configuration for nav-pvt message corrected and renamed ACK-ACK message structure
Changed in this revision
| gnss.cpp | Show annotated file Show diff for this revision Revisions of this file |
| gnss.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/gnss.cpp Wed May 16 10:58:16 2018 +0500
+++ b/gnss.cpp Fri May 18 13:29:00 2018 +0500
@@ -296,7 +296,7 @@
}
}
- unsigned char enable_ubx_nav_pvt[]={0x01, 0x07, 0x02};
+ unsigned char enable_ubx_nav_pvt[]={0x01, 0x07, 0x01};
conf = RETRY;
while(conf)
{
@@ -409,8 +409,8 @@
return return_value;
}
-tUBX_CFG_ACK GnssParser::decode_ubx_cfg_ack_nak_msg(char *buf) {
- tUBX_CFG_ACK return_decoded_msg;
+tUBX_ACK_ACK GnssParser::decode_ubx_cfg_ack_nak_msg(char *buf) {
+ tUBX_ACK_ACK return_decoded_msg;
uint8_t index = UBX_PAYLOAD_INDEX;
return_decoded_msg.msg_class = buf[index++];
--- a/gnss.h Wed May 16 10:58:16 2018 +0500
+++ b/gnss.h Fri May 18 13:29:00 2018 +0500
@@ -52,11 +52,11 @@
enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, UNKNOWN_UBX};
-typedef struct UBX_CFG_ACK {
+typedef struct UBX_ACK_ACK {
uint8_t msg_class;
uint8_t msg_id;
-}tUBX_CFG_ACK;
+}tUBX_ACK_ACK;
typedef struct UBX_NAV_ODO {
uint8_t version;
@@ -216,11 +216,11 @@
*/
eUBX_MESSAGE get_ubx_message(char *);
- /** Method to parse contents of UBX CFG-ACK/NAK and return messageid amd class for which ACK is received
+ /** Method to parse contents of UBX ACK-ACK/NAK and return messageid amd class for which ACK is received
* @param buff the UXB message
- * @return tUBX_CFG_ACK
+ * @return tUBX_ACK_ACK
*/
- tUBX_CFG_ACK decode_ubx_cfg_ack_nak_msg(char *);
+ tUBX_ACK_ACK decode_ubx_cfg_ack_nak_msg(char *);
/** Method to parse contents of UBX_NAV_ODO and return decoded msg
* @param buff the UXB message