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 Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
udomsak
Date:
Fri Sep 27 09:39:07 2013 +0000
Parent:
0:6b7345059afe
Commit message:
Test

Changed in this revision

GPS.lib Show annotated file Show diff for this revision Revisions of this file
PowerControl.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6b7345059afe -r 39b2575a0211 GPS.lib
--- a/GPS.lib	Tue Jun 08 14:12:30 2010 +0000
+++ b/GPS.lib	Fri Sep 27 09:39:07 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/simon/code/GPS/#15611c7938a3
+http://mbed.org/users/udomsak/code/GPS/#077fd91e98f5
diff -r 6b7345059afe -r 39b2575a0211 PowerControl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerControl.lib	Fri Sep 27 09:39:07 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/JST2011/code/PowerControl/#8599d485662f
diff -r 6b7345059afe -r 39b2575a0211 main.cpp
--- 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");
         }