Skip to content

Instantly share code, notes, and snippets.

@dmiddlecamp
Created August 2, 2019 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmiddlecamp/3e94918eef9c8e2c8900139587f8df34 to your computer and use it in GitHub Desktop.
Save dmiddlecamp/3e94918eef9c8e2c8900139587f8df34 to your computer and use it in GitHub Desktop.
#define STARTING_LATITUDE_LONGITUDE_ALTITUDE NULL
uint8_t internalANT[]={0xB5,0x62,0x06,0x13,0x04,0x00,0x00,0x00,0xF0,0x7D,0x8A,0x2A};
uint8_t externalANT[]={0xB5,0x62,0x06,0x13,0x04,0x00,0x01,0x00,0xF0,0x7D,0x8B,0x2E};
...
setup() {
// select internal antenna
//antennaSelect(internalANT);
antennaSelect(externalANT);
}
void antennaSelect(uint8_t *buf){
for(uint8_t i=0;i<12;i++)
{
Serial1.write(buf[i]); //send the command to gps module
Serial.print(buf[i],HEX);
Serial.print(",");
}
Serial.println("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment