Basis for uBlox-7 driver derived from GPS_CanSat

Dependents:   Crunchtrack_GPS_GSM Battlehack_tracker_1_NO

Fork of GPS_CanSat by JST 2011

Files at this revision

API Documentation at this revision

Comitter:
gipmad
Date:
Mon Aug 17 18:17:26 2015 +0000
Parent:
0:94c22ada3c5a
Commit message:
Modified for basic 9600bps GPS

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 94c22ada3c5a -r a38751ecc25c GPS.cpp
--- a/GPS.cpp	Sun Jul 01 15:14:45 2012 +0000
+++ b/GPS.cpp	Mon Aug 17 18:17:26 2015 +0000
@@ -1,10 +1,12 @@
 #include "GPS.h"
 
 GPS::GPS(PinName tx, PinName rx) : _gps(tx, rx) {
-    _gps.baud(4800);
-    _gps.printf("$PSRF103,2,0,0,1*26\r\n");
-    _gps.printf("$PSRF103,3,0,0,1*27\r\n");
-    _gps.printf("$PSRF103,4,0,0,1*20\r\n");
+    //_gps.baud(38400);
+    _gps.baud(9600);
+    //_gps.baud(4800);
+    //_gps.printf("$PSRF103,2,0,0,1*26\r\n");
+    //_gps.printf("$PSRF103,3,0,0,1*27\r\n");
+    //_gps.printf("$PSRF103,4,0,0,1*20\r\n");
     flag_gps_get = 0;
     flag_gps_getend = 0;
     _gps.attach(this,&GPS::sample,Serial::RxIrq);