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.
Fork of GPSINT by
Revision 1:c266b90b4c74, committed 2014-11-05
- Comitter:
- jebradshaw
- Date:
- Wed Nov 05 16:43:55 2014 +0000
- Parent:
- 0:f3a7d716faea
- Commit message:
- Uses serial receive interrupt to extract, checksum validate, and parse gps nmea messages at 4800 baud
Changed in this revision
GPSINT.cpp | Show annotated file Show diff for this revision Revisions of this file |
GPSINT.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r f3a7d716faea -r c266b90b4c74 GPSINT.cpp --- a/GPSINT.cpp Sat Nov 01 13:27:11 2014 +0000 +++ b/GPSINT.cpp Wed Nov 05 16:43:55 2014 +0000 @@ -1,5 +1,7 @@ /* GPSINT.cpp - * Copyright (c) 2014, jbradshaw (20141101) + * jbradshaw (20141101) + * GPS functions are work of Tyler Weavers mbed gps library page + * (http://mbed.org/users/tylerjw/code/GPS/file/39d75e44b214/GPS.cpp) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal
diff -r f3a7d716faea -r c266b90b4c74 GPSINT.h --- a/GPSINT.h Sat Nov 01 13:27:11 2014 +0000 +++ b/GPSINT.h Wed Nov 05 16:43:55 2014 +0000 @@ -1,5 +1,7 @@ -/* GPSINT.h - * Copyright (c) 2014, jbradshaw (20141101) +/* GPSINT.cpp + * jbradshaw (20141101) + * GPS functions are work of Tyler Weavers mbed gps library page + * (http://mbed.org/users/tylerjw/code/GPS/file/39d75e44b214/GPS.cpp) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -46,10 +48,10 @@ * @param gps - Serial port pins attached to the gps */ GPSINT(PinName tx, PinName rx); - int nmea_validate(char *nmeastr); - void parseGPSString(char *GPSstrParse); - void GPSSerialRecvInterrupt(void); - float nmea_to_dec(float deg_coord, char nsew); + int nmea_validate(char *nmeastr); //runs the checksum calculation on the GPS NMEA string + void parseGPSString(char *GPSstrParse); //uses scanf to parse NMEA string into variables + void GPSSerialRecvInterrupt(void); //fills temprpary buffer for processing + float nmea_to_dec(float deg_coord, char nsew); //convert nmea format to decimal format float calc_course_to(float pointLat, float pontLong); double calc_dist_to_mi(float pointLat, float pontLong); double calc_dist_to_ft(float pointLat, float pontLong);