Forked para SNOCC

Dependents:   RA8875

Fork of GPS by SNOCC

Files at this revision

API Documentation at this revision

Comitter:
gstedile
Date:
Tue Apr 04 06:16:56 2017 +0000
Parent:
3:f9327dc1cc11
Commit message:
Compilado y corrido sin errores. Hasta aqui carga los datos en un objeto NAVDATA y los rota. Falta cargar un objeto VCODATA con la matriz y calcular la VCO.

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
GPS.h Show annotated file Show diff for this revision Revisions of this file
diff -r f9327dc1cc11 -r a0760d64f0f8 GPS.cpp
--- a/GPS.cpp	Sun Apr 02 19:26:39 2017 +0000
+++ b/GPS.cpp	Tue Apr 04 06:16:56 2017 +0000
@@ -31,7 +31,7 @@
 
 
 int GPS::sample() {
-    float time;
+    //float time;
     char ns, ew, signal;  // Agrego signal para parsear el campo NMEA que indica es estado de señal.
     int lock;
     
@@ -100,6 +100,7 @@
                 longitude = 0.0;
                 latitude = 0.0;    
                 speed = 0.0;    // 
+                time=0.0;
                 return 0;
             } 
           
diff -r f9327dc1cc11 -r a0760d64f0f8 GPS.h
--- a/GPS.h	Sun Apr 02 19:26:39 2017 +0000
+++ b/GPS.h	Tue Apr 04 06:16:56 2017 +0000
@@ -47,7 +47,10 @@
     float latitude;
     
     /** The speed in knots (call sample() to set) */   // Esta variable la agrego para disponer de la velocidad.
-    float speed;            
+    float speed;     
+    
+    /** The time in NMEA format (call sample() to set)*/ //  Esta variable la agrego para disponer del timestamp.
+    float time;