![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Dependencies: mbed
Fork of test_GPS_15_mai by
Revision 1:5531e0a69c91, committed 2018-05-28
- Comitter:
- the420team
- Date:
- Mon May 28 13:34:18 2018 +0000
- Parent:
- 0:a75b3f56d863
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a75b3f56d863 -r 5531e0a69c91 main.cpp --- a/main.cpp Tue May 22 12:07:34 2018 +0000 +++ b/main.cpp Mon May 28 13:34:18 2018 +0000 @@ -23,6 +23,7 @@ float lat_dec; int lon_deg = 0; float lon_dec; +char GPS [25]; char rx ; int e ; @@ -91,7 +92,8 @@ { lat_cnv = lat_cnv*(-1); } - pc.printf("%f, %c, %f, %c \n\r", lat_cnv, lat_NS, lon_cnv, lon_EW); + sprintf(GPS, "POS: %f,%f", lat_cnv, lon_cnv); + pc.printf("%s \n\r", GPS); } } } \ No newline at end of file