Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GPS by
Revision 4:a0760d64f0f8, committed 2017-04-04
- 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 |
--- 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; }
--- 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;