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 NEO-6m-GPS by
GPS Class Reference
A GPS interface for reading from a serial GPS module. More...
#include <GPS.h>
Public Member Functions | |
| GPS (PinName tx, PinName rx, int Baud) | |
| Create the GPS interface, connected to the specified serial port and speed. | |
| int | sample () |
| Sample the incoming GPS data, returning whether there is a lock. | |
Data Fields | |
| int | hour |
| Beijig time format(shi,fen,miao) | |
| float | longitude |
| The longitude (call sample() to set) | |
| char | ns |
| display north/south, east/west unit | |
| float | latitude |
| The latitude (call sample() to set) | |
| float | time |
| The time (call sample() to set) | |
| int | sats |
| Number of satellites received (call sample() to set) | |
| float | hdop |
| Horizontal dilusion of precision (call sample() to set) | |
| float | alt |
| The altitude (call sample() to set) Note that the accurate altitude is corrected by the geoid See http://homepages.slingshot.co.nz/~geoff36/datum.htm. | |
| float | geoid |
| The geoid (call sample() to set) | |
| char | msg [256] |
| The NMEA sentence. | |
Detailed Description
A GPS interface for reading from a serial GPS module.
Definition at line 30 of file GPS.h.
Constructor & Destructor Documentation
| GPS | ( | PinName | tx, |
| PinName | rx, | ||
| int | Baud | ||
| ) |
Member Function Documentation
| int sample | ( | ) |
Field Documentation
| float alt |
The altitude (call sample() to set) Note that the accurate altitude is corrected by the geoid See http://homepages.slingshot.co.nz/~geoff36/datum.htm.
| float hdop |
Generated on Thu Jul 28 2022 06:58:29 by
1.7.2
