View Single Post
Old Aug 01, 2012, 03:59 AM
Baggus is offline
Find More Posts by Baggus
Registered User
Joined Jun 2010
83 Posts
I still see ppl soldering EEPROM to their ublox gps receivers, but there is no need for it!

I wrote this Arduino code to send the correct settings to the GPS receiver every time the flight controller (or i2c gps board) boots:

//rctimer CN-06 gps receiver
  delay(1000); //give the GPS receiver time to boot
  byte gps10hz[] = {0xB5,0x62,0x06,0x08,0x06,0x00,0x64,0x00,0x01,0x00,0x01,0x00,0x7A,0x12,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};
  delay(500); //give the GPS receiver time to process
  byte baudrate57600[] = {0xB5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xD0,0x08,0x00,0x00,0x00,0xE1,0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0xE2,0xE1,0xB5,0x62,0x06,0x00,0x01,0x00,0x01,0x08,0x22};
It will set the refresh to 10Hz, message type to NMEA and the baudrate to 57600 by sending UBX CFG messages to the ublox gps receiver.

I had already posted it here:
But doubt anyone has seen it.

ps. Q: Why no higher baudrate? A: 57600 is more than high enough, higher baudrate = more errors.
Baggus is offline Find More Posts by Baggus
Reply With Quote