copica / i2c-gps-nav

Automatically exported from code.google.com/p/i2c-gps-nav
0 stars 0 forks source link

3D fix never reached if INIT_MTK_GPS enabled #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure the sketch to use NMEA and INIT_MTK_GPS
2. Wait for the GPS 3D fix

What is the expected output? What do you see instead?
It is expected that 3D fix will be achieved (3 blinks) after the GPS sees 
enough satellites, but 3D fix state is never reached.

What version of the product are you using? On what operating system?
I2C_GPS_NAV_v2.2Beta1-r62.rar

Please provide any additional information below.
Looks like the problem is caused by the fact that the GPGGA sentences are 
disabled when INIT_MTK_GPS autoconfiguration is used. Given the 3D fix state 
changes only as a result of parsing the GPGSA sentence this will never happen.

I believe the solution for that is changing the MTK init command
#define MTK_SET_NMEA_SENTENCES  
"$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28\r\n"

to 

#define MTK_SET_NMEA_SENTENCES  
"$PMTK314,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n"

Original issue reported on code.google.com by pawelsky on 4 Jun 2013 at 11:48