Abe Takumi
/
GPS_test
test
Revision 0:296bb1e556f8, committed 2013-06-02
- Comitter:
- YSB
- Date:
- Sun Jun 02 10:02:31 2013 +0000
- Commit message:
- nmea0813?????????
Changed in this revision
--- /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()); + } +}
--- /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
--- /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