Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update M8_cfg_gnss.c #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions M8_cfg_gnss.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
//****************************************************************************

uint8_t ubx_cfg_gnss[] = { // Full spectrum enabling GPS, GLONASS, SBAS, QZSS and GALILEO, disable BEIDOU/IMES
0xB5,0x62,0x06,0x3E,0x3C,0x00,
0x00,0x00,0x20,0x07,
0x00,0x08,0x10,0x00,0x01,0x00,0x01,0x01,
0x01,0x01,0x03,0x00,0x01,0x00,0x01,0x01,
0x02,0x04,0x08,0x00,0x01,0x00,0x01,0x01,
0x03,0x08,0x10,0x00,0x00,0x00,0x01,0x01,
0x04,0x00,0x08,0x00,0x00,0x00,0x01,0x01,
0x05,0x00,0x03,0x00,0x01,0x00,0x01,0x01,
0x06,0x08,0x0E,0x00,0x01,0x00,0x01,0x01,
0x30,0xAD };
0xB5,0x62,0x06,0x3E,0x3C,0x00, // header (SYNC1, SYNC2, MsgCls, Id, 2byte-len)
0x00,0x00,0x20,0x07, // msgVer, numTrkChHw(ro), numTrkChUse, numConfigBlocks)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove erroneous closing )

//Id,Tr ,MxTr,rsv , enb, rsv,chsh,rsv // actual field names: gnssId, resTrkCh, maxTrkCh, reserved1, flags(X4, little-endian)
0x00,0x08,0x10,0x00,0x01,0x00,0x01,0x01, // GPS
0x01,0x01,0x03,0x00,0x01,0x00,0x01,0x01, // SBAS
0x02,0x04,0x08,0x00,0x01,0x00,0x01,0x01, // Galileo
0x03,0x08,0x10,0x00,0x00,0x00,0x01,0x01, // BeiDou
0x04,0x00,0x08,0x00,0x00,0x00,0x01,0x01, // IMES
0x05,0x00,0x03,0x00,0x01,0x00,0x01,0x01, // QZSS
0x06,0x08,0x0E,0x00,0x01,0x00,0x01,0x01, // GLONASS
0x30,0xAD }; // check-sum, ANY changes to above values requires update

SendUBLOX(hUARTGPS, sizeof(ubx_cfg_gnss), ubx_cfg_gnss); // Use sizeof() for array, strlen() will catch the NULs

Expand Down