f

Dependencies:   GPS mbed

Fork of rastreador_satelital_2 by Gustavo Ramirez

Files at this revision

API Documentation at this revision

Comitter:
jclondonol
Date:
Tue Jun 05 17:15:10 2018 +0000
Parent:
1:e72724565122
Commit message:
listo

Changed in this revision

GPS.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e72724565122 -r 20facdf67dcf GPS.lib
--- a/GPS.lib	Tue Jun 05 03:22:27 2018 +0000
+++ b/GPS.lib	Tue Jun 05 17:15:10 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/jclondonol/code/GPS/#cefda8b10525
+http://mbed.org/users/tony63/code/GPS/#653fe36ca211
diff -r e72724565122 -r 20facdf67dcf main.cpp
--- a/main.cpp	Tue Jun 05 03:22:27 2018 +0000
+++ b/main.cpp	Tue Jun 05 17:15:10 2018 +0000
@@ -67,7 +67,7 @@
     gsm.printf("CBST=0,0,1\r\n");                                                                           // en espera de mensajes entrantes
 
     if(gps.sample()) {
-        pc.printf("Estamos en %f, %f\r\n", gps.latitude, gps.longitude);                                 // muestro la ubicacion actual, para saber si el GPS esta recibiendo
+        pc.printf("Estamos en %f, %f\r\n", gps.latitude, gps.longitude+50);                                 // muestro la ubicacion actual, para saber si el GPS esta recibiendo
     } else {
         pc.printf("no se donde!:(\r\n");
     }
@@ -231,7 +231,7 @@
                 if(gps.sample() && i == 0) {
                     pc.printf("\r\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Leyendo GPS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\n");
                     //Toma de datos del gps y concatenacion para armar los datos.
-                    lon = gps.longitude;
+                    lon = gps.longitude+50;
                     lat = gps.latitude;
                     sprintf(vector1, "%f", lat);
                     strcat(link,vector1);