View Single Post
Old Jan 30, 2013, 04:39 PM
Legot is offline
Find More Posts by Legot
Build to Fly? FLY to BUILD!
Legot's Avatar
United States, AZ, Gilbert
Joined Nov 2009
1,104 Posts
A better option would be to replace this part of the code:
Quote:
// Used to set the GPS update-rate to 5 hz, and GPGGA and GPRMC gps-strings (Only for MKT-GPS).

  Serial.print("$PMTK220,100*2F\r\n");
  Serial.write(13);
  Serial.write(10);

  Serial.print("$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28 ");
  Serial.write(13);
  Serial.write(10);
with this:
Quote:
// Used to set the GPS update-rate to 5 hz, and GPGGA and GPRMC gps-strings, as well as setting a baudrate of 57600 (O nly for MKT-GPS).

  Serial.print("$PMTK251,57600*2C\r\n") //to change go to http://www.hhhh.org/wiml/proj/nmeaxor.html and create a valid checksum.
  Serial.write(13);
  Serial.write(10); //57600 baud
  
  Serial.print("$PMTK220,200*2C\r\n");
  Serial.write(13);
  Serial.write(10); //5Hz refresh rate

  Serial.print("$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28 ");
  Serial.write(13);
  Serial.write(10); //Sets GPGGA and GPRMC to update once every fix
It sets the baudrate 57600, which should always work (as opposed to using the gps' stock 115200 baud, which can be flaky with this OSD).

It would be a good improvement to put this into the shipping version of the code, just to remove some of the issues with the occasional stock GPS incompatibility.

It sets the baudrate 57600, which should always work (as opposed to using the gps' stock 115200 baud, which can be flaky with this OSD).

It would be a good improvement to put this into the shipping version of the code, just to remove some of the issues with the occasional stock GPS incompatibility.
Legot is offline Find More Posts by Legot
Reply With Quote