Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Crunchtrack_GPS_GSM Battlehack_tracker_1_NO
Fork of GPS_CanSat by
Revision 1:a38751ecc25c, committed 2015-08-17
- 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 |
--- 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);
