This example's program for communication with Locosys GPS module model 1590R-A. Reference: https://sites.google.com/site/domediy/gpstest
Dependencies: GPS PowerControl mbed
Fork of GPS_HelloWorld by
Diff: main.cpp
- Revision:
- 1:39b2575a0211
- Parent:
- 0:6b7345059afe
--- a/main.cpp Tue Jun 08 14:12:30 2010 +0000 +++ b/main.cpp Fri Sep 27 09:39:07 2013 +0000 @@ -1,13 +1,15 @@ #include "mbed.h" #include "GPS.h" +#include "PowerControl/EthernetPowerControl.h" Serial pc(USBTX, USBRX); GPS gps(p9, p10); int main() { + PHY_PowerDown(); while(1) { if(gps.sample()) { - pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude); + pc.printf("I'm at %f, %f\n\r", gps.longitude, gps.latitude); } else { pc.printf("Oh Dear! No lock :(\n"); }