Bibliothèque pur gps, trame NMEA, conversion des coordonnées au format WSG84
Dependencies: mbed
Fork of GPSINT by
Diff: GPSINT.h
- Revision:
- 1:c266b90b4c74
- Parent:
- 0:f3a7d716faea
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);