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.
Dependencies: GPS MODSERIAL mbed-rtos mbed
Revision 14:5a33972c09e0, committed 2012-10-21
- Comitter:
- SamClarke
- Date:
- Sun Oct 21 09:30:17 2012 +0000
- Parent:
- 13:d8ee6b45bd0a
- Commit message:
- Added cardinal directions (N,NNE,ENE,E,ESE,SSE,S etc)
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 |
--- a/GPS.lib Sat Oct 13 04:28:51 2012 +0000 +++ b/GPS.lib Sun Oct 21 09:30:17 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/SamClarke/code/GPS/#dcc14e81f8be +http://mbed.org/users/SamClarke/code/GPS/#5cb504ce2793
--- a/main.cpp Sat Oct 13 04:28:51 2012 +0000
+++ b/main.cpp Sun Oct 21 09:30:17 2012 +0000
@@ -81,14 +81,8 @@
GPRS.printf("AT+CMGS=\"%s\"\r\n", NUMBER);
wait(1);
// Write out the GPS data in a message
- GPRS.printf("UTC Time: %d:%d:%2.2f \nAltitude: %3.2fm\nSpeed: %3.2f Kn\nHeading: %3.2f Deg\nGPS data grade: [%c]\nSatellites in use: [%d]\nSatFix code: [%d] \nFix type: ",
- gps.hours, gps.minutes, gps.seconds, gps.altitude, gps.speed, gps.heading, gps.validity, gps.satellites, gps.fixtype);
- if(gps.fixtype == 1) {
- GPRS.printf("Positive");
- }
- if(gps.fixtype == 2) {
- GPRS.printf("Differential");
- }
+ GPRS.printf("UTC Time: %d:%d:%2.2f \nAltitude: %3.2fm\nSpeed: %3.2f Kph\nHeading: %3.2f %s\nGPS data grade: [%c]\nSatellites in use: [%d]\nSatFix code: [%d] \nFix type: %s",
+ gps.hours, gps.minutes, gps.seconds, gps.altitude, gps.kph, gps.heading, gps.cardinal, gps.validity, gps.satellites, gps.fixtype, gps.fix);
wait(1);
// Send it...
GPRS.putc(0x1A);