Commit 0fb4f8cd authored by Ondřej Kučera's avatar Ondřej Kučera
Browse files

add code for enabling the GPS module's DC/DC converter

parent 981da7e2
......@@ -287,7 +287,11 @@ void setup()
resetGPS();
setupGPS();
// enable the DC/DC converter on the GPS module
// it's a one time command, so you can comment it out later
enableGPSdcdc();
// Initialize the Si5351
// Change the 2nd parameter in init if using a ref osc other
// than 25 MHz - 0
......@@ -476,7 +480,12 @@ void setupGPSpower() {
sendUBX(setPSM, sizeof(setPSM)/sizeof(uint8_t));
}
void enableGPSdcdc() {
//enable GPS DC/DC converter
uint8_t setDC[] = {0xB5, 0x62, 0x06, 0x41, 0x0C, 0x00, 0x00, 0x00, 0x03, 0x1F, 0xC5, 0x90, 0xE1, 0x9F, 0xFF, 0xFF, 0xFE, 0xFF, 0x45, 0x79}; //B5 62 06 41 0C 00 00 00 03 1F C5 90 E1 9F FF FF FE FF 45 79
sendUBX(setDC, sizeof(setDC)/sizeof(uint8_t));
}
void setGPS_GSVoff()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment