Driver for Sparkfun GP-20U7 GPS module
Dependents: GP20U7_HelloWorld gpsmpu60500 BaseStation healt_monitor_ECE4180
Revision 8:720966cb4824, committed 2016-03-17
- Comitter:
- wschon
- Date:
- Thu Mar 17 19:26:14 2016 +0000
- Parent:
- 7:120983998da2
- Commit message:
- took out printf statements;
Changed in this revision
| GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPS.cpp Wed Mar 16 19:18:00 2016 +0000
+++ b/GPS.cpp Thu Mar 17 19:26:14 2016 +0000
@@ -44,11 +44,11 @@
getline();
// Check if it is a GPGGA msg (matches both locked and non-locked msg)
//pc1.printf(msg);
- pc1.printf("\n");
+ //pc1.printf("\n");
wait(5);
- pc1.printf("display msg\r\n");
- pc1.printf(msg);
- pc1.printf("\n");
+ //pc1.printf("display msg\r\n");
+ //pc1.printf(msg);
+ //pc1.printf("\n");
if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c,%f,%c", &time, &latitude, &ns, &longitude, &ew, &lock, &num_sat, &hori_dilute, &alt, &hu, &geoid, &gu/*, &age_diff, &diff_ID*/) >= 1) {
if(!lock) {
longitude = 0.0;
@@ -67,11 +67,11 @@
// minutes = longitude - (degrees * 100.0f);
// longitude = degrees + minutes / 60.0f;
// pc1.printf(msg);
- pc1.printf("\n\rlongitude is %f\n\r", longitude);
- pc1.printf("\n\rtime is %f\n\r", time);
- pc1.printf("ns is %c\n\r", ns);
- pc1.printf("ew is %c\n\r", ew);
- pc1.printf("alt is %f\n\r", alt);
+ //pc1.printf("\n\rlongitude is %f\n\r", longitude);
+ //pc1.printf("\n\rtime is %f\n\r", time);
+ //pc1.printf("ns is %c\n\r", ns);
+ //pc1.printf("ew is %c\n\r", ew);
+ //pc1.printf("alt is %f\n\r", alt);
latitude /= 100;
longitude /= 100;