test

Dependencies:   mbed nmea0813

Files at this revision

API Documentation at this revision

Comitter:
YSB
Date:
Sun Jun 02 10:02:31 2013 +0000
Commit message:
nmea0813?????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
nmea0813.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 296bb1e556f8 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 02 10:02:31 2013 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "nmea0813.h"
+
+GPS gps(p13,p14);
+Serial pc(USBTX,USBRX);
+
+int main() {
+    wait(2.0);
+    while(1){
+        wait(1.0);
+        pc.printf("latitude:%f,longitude:%f,status:%c,satelite:%c,speed:%f\n",gps.get_latitude(),gps.get_longitude(),gps.get_status(),gps.get_satelite_number(),gps.get_speed());
+    }
+}
diff -r 000000000000 -r 296bb1e556f8 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jun 02 10:02:31 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b
\ No newline at end of file
diff -r 000000000000 -r 296bb1e556f8 nmea0813.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nmea0813.lib	Sun Jun 02 10:02:31 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/YSB/code/nmea0813/#f4d3c59a4917