1. solder 13&14 pin to enable 38400 >> connect cn06 to ftdi tested with u-center. got gps fix and able to locate
2. download fw "I2c gps nav v2.1 rc2 (Wire lib issue fixed)"
Code: Select all
uint8_t i;
delay(3000); //lets some time to GPS module to init
Serial.begin(38400);
delay(1000);
//set GPS dynamic platform to "pedestrian" seems to be best for copter
PROGMEM prog_uchar conf2[]={0xB5, 0x62, 0x06, 0x24, 0x24, 0x00, 0xFF, 0xFF, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x27, 0x00, 0x00, 0x05, 0x00, 0xFA, 0x00, 0xFA, 0x00, 0x64, 0x00, 0x2C, 0x01, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4F, 0x82};
Serial.write (conf2,sizeof(conf2));
delay(300);
//disable all default NMEA messages
PROGMEM prog_uchar conf3[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x05, 0x00, 0xFF, 0x19};
Serial.write (conf3,sizeof(conf3));
delay(100);
PROGMEM prog_uchar conf5[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x03, 0x00, 0xFD, 0x15};
Serial.write (conf5,sizeof(conf5));
delay(100);
PROGMEM prog_uchar conf6[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x01, 0x00, 0xFB, 0x11};
Serial.write (conf6,sizeof(conf6));
delay(100);
PROGMEM prog_uchar conf7[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x00, 0x00, 0xFA, 0x0F};
Serial.write (conf7,sizeof(conf7));
delay(100);
PROGMEM prog_uchar conf8[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x02, 0x00, 0xFC, 0x13};
Serial.write (conf8,sizeof(conf8));
delay(100);
PROGMEM prog_uchar conf9[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x04, 0x00, 0xFE, 0x17};
Serial.write (conf9,sizeof(conf9));
delay(100);
//enable UBX messages POSLLH, SOL, STATUS and VELNED as is in EOSBandi's config file
PROGMEM prog_uchar conf10[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x02, 0x01, 0x0E, 0x47};
Serial.write (conf10,sizeof(conf10));
delay(100);
PROGMEM prog_uchar conf11[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x03, 0x01, 0x0F, 0x49};
Serial.write (conf11,sizeof(conf11));
delay(100);
PROGMEM prog_uchar conf12[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x06, 0x01, 0x12, 0x4F};
Serial.write (conf12,sizeof(conf12));
delay(100);
PROGMEM prog_uchar conf13[]={0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x12, 0x01, 0x1E, 0x67};
Serial.write (conf13,sizeof(conf13));
delay(100);
//set rate to 5Hz
PROGMEM prog_uchar conf15[]={0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0xC8, 0x00, 0x01, 0x00, 0x01, 0x00, 0xDE, 0x6A};
Serial.write (conf15,sizeof(conf15));
//Init i2c_dataset
3. define i2c_gps in mwc2.1 and comment gps_serial options
i probably have done something wrong in i2c_nav board part.. since gps is tested working in step1 @baud 38400... and literally mw2.1 file uncomment/comment gps options cant be wrong
can someone verify what is going wrong here? the battery on gps chip is dropped( the clip totally broken off the board when i tried to take the battery off)..
also, i found with mega 2560, it is possible to use default baud rate 9600 and make the change to 115.2k for 5hz refresh rate(
).. is it possible to do this for i2c_nav board?