Example Program for the sIRFstarIII Library

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
p3p
Date:
Tue Apr 03 12:16:09 2012 +0000
Parent:
0:999ed846ba1e
Commit message:
new baud interface disabled dma

Changed in this revision

MODDMA.lib Show diff for this revision Revisions of this file
SimpleSerialProtocol.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
sIRFstarIII.lib Show annotated file Show diff for this revision Revisions of this file
--- a/MODDMA.lib	Sun Apr 01 22:28:45 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/p3p/code/MODDMA/#558d6dacfb89
--- a/SimpleSerialProtocol.lib	Sun Apr 01 22:28:45 2012 +0000
+++ b/SimpleSerialProtocol.lib	Tue Apr 03 12:16:09 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/p3p/code/SimpleSerialProtocol/#2f9e6303479f
+http://mbed.org/users/p3p/code/SimpleSerialProtocol/#bfb164b5d829
--- a/main.cpp	Sun Apr 01 22:28:45 2012 +0000
+++ b/main.cpp	Tue Apr 03 12:16:09 2012 +0000
@@ -1,23 +1,19 @@
 #include "mbed.h"
 #include "GpsInterface.h"
 
-MODDMA dma;
 Serial debug(USBTX, USBRX);
 Timer timer;
 
 SirfStarIII::GpsInterface gps(p13,p14);
 
-bool toggle = false;
-
 int main() {
     debug.baud(115200);
     debug.printf("GPS TEST FIRMWARE\r\n");
 
-    gps.initialise();
-    gps.MODDMA(&dma);
-
+    gps.initialise(SirfStarIII::NMEA, 4800);
+    
     timer.start();
-
+    
     while (1) {
         gps.update();
 
@@ -25,5 +21,6 @@
             timer.reset();
             debug.printf("%02d/%02d/%d %02d:%02d:%02d - %f, %f\r\n", gps._time.day,  gps._time.month, gps._time.year, gps._time.hours, gps._time.minutes, gps._time.seconds, gps._position.latitude._dec_degrees, gps._position.longitude._dec_degrees);
         }
+        
     }
 }
--- a/sIRFstarIII.lib	Sun Apr 01 22:28:45 2012 +0000
+++ b/sIRFstarIII.lib	Tue Apr 03 12:16:09 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/p3p/code/sIRFstarIII/#4431766eb741
+http://mbed.org/users/p3p/code/sIRFstarIII/#397a059fd141