With UBlox messages
Dependents: Xadow_MPU9150AHRS Hexi_GPSIMU_Hotshoe
Fork of MBed_Adafruit-GPS-Library by
Revision 1:857102793de1, committed 2015-05-25
- Comitter:
- whatnick
- Date:
- Mon May 25 02:50:26 2015 +0000
- Parent:
- 0:a23e3099bb0a
- Commit message:
- Added UBlox messages
Changed in this revision
MBed_Adafruit_GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
MBed_Adafruit_GPS.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r a23e3099bb0a -r 857102793de1 MBed_Adafruit_GPS.cpp --- a/MBed_Adafruit_GPS.cpp Sat Mar 22 05:00:47 2014 +0000 +++ b/MBed_Adafruit_GPS.cpp Mon May 25 02:50:26 2015 +0000 @@ -226,7 +226,7 @@ } void Adafruit_GPS::sendCommand(char *str) { - gpsSerial->printf("%s",str); + gpsSerial->printf("%s\r\n",str); } bool Adafruit_GPS::newNMEAreceived(void) {
diff -r a23e3099bb0a -r 857102793de1 MBed_Adafruit_GPS.h --- a/MBed_Adafruit_GPS.h Sat Mar 22 05:00:47 2014 +0000 +++ b/MBed_Adafruit_GPS.h Mon May 25 02:50:26 2015 +0000 @@ -65,6 +65,17 @@ #define PGCMD_ANTENNA "$PGCMD,33,1*6C" #define PGCMD_NOANTENNA "$PGCMD,33,0*6D" +/**************************************** +Predefined UBLOX Messages +*****************************************/ +#define UBX_DISABLE_ZDA "$PUBX,40,ZDA,0,0,0,0*44" +#define UBX_DISABLE_GLL "$PUBX,40,GLL,0,0,0,0*5C" +#define UBX_DISABLE_VTG "$PUBX,40,VTG,0,0,0,0*5E" +#define UBX_DISABLE_GSV "$PUBX,40,GSV,0,0,0,0*59" +#define UBX_DISABLE_GSA "$PUBX,40,GSA,0,0,0,0*4E" +#define UBX_DISABLE_GGA "$PUBX,40,GGA,0,0,0,0*5A" +#define UBX_DISABLE_RMC "$PUBX,40,RMC,0,0,0,0*47" + // how long to wait when we're looking for a response #define MAXWAITSENTENCE 5