Adam Wronski
/
GPSfinal
Code du GPS (Adam Wronski et Nassim Deleau)
Revision 1:b619e1d3af6e, committed 2019-04-14
- Comitter:
- Adam06
- Date:
- Sun Apr 14 16:03:06 2019 +0000
- Parent:
- 0:6b7345059afe
- Commit message:
- gps complet;
Changed in this revision
diff -r 6b7345059afe -r b619e1d3af6e GPS.lib --- a/GPS.lib Tue Jun 08 14:12:30 2010 +0000 +++ b/GPS.lib Sun Apr 14 16:03:06 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/simon/code/GPS/#15611c7938a3 +https://os.mbed.com/users/Adam06/code/GPS/#ef53ddcd89c0
diff -r 6b7345059afe -r b619e1d3af6e main.cpp --- a/main.cpp Tue Jun 08 14:12:30 2010 +0000 +++ b/main.cpp Sun Apr 14 16:03:06 2019 +0000 @@ -1,13 +1,13 @@ #include "mbed.h" -#include "GPS.h" +#include "GPSl.h" Serial pc(USBTX, USBRX); -GPS gps(p9, p10); +GPS gps(PA_9, PA_10); int main() { while(1) { if(gps.sample()) { - pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude); + pc.printf("I'm at %f, %f, %f\n", gps.longitude, gps.latitude, gps.altitude); } else { pc.printf("Oh Dear! No lock :(\n"); }
diff -r 6b7345059afe -r b619e1d3af6e mbed.bld --- a/mbed.bld Tue Jun 08 14:12:30 2010 +0000 +++ b/mbed.bld Sun Apr 14 16:03:06 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323 +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file