|
@@ -63,7 +63,7 @@ void GpsTask(void *pvParameters)
|
|
|
}
|
|
|
void GpsDataDecode(uint8 *msg)
|
|
|
{
|
|
|
- //char temp[] = "$GNRMC,082626.000,A,2939.91801,N,10637.09500,E,0.543,30.254,261120,,,A,V*17";
|
|
|
+// char temp[] = "$GNRMC,082626.000,A,2939.91801,N,10637.09500,E,5.543,30.254,261120,,,A,V*17";
|
|
|
char *p = NULL;
|
|
|
char *p2 = NULL;
|
|
|
const char *delim = "\n";
|
|
@@ -78,7 +78,7 @@ void GpsDataDecode(uint8 *msg)
|
|
|
p = strtok(msg, delim); //将信息进行分割
|
|
|
p2 = strtok(NULL, delim);
|
|
|
p = strtok(p, ","); //只取第1行的信息RMC
|
|
|
- //p = strtok(temp,",");//模拟测试
|
|
|
+// p = strtok(temp,",");//模拟测试
|
|
|
if (strcmp(p, "$GNRMC") == 0)
|
|
|
{
|
|
|
index = 0;
|