Library for ublox neo 6m
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 Mon Jul 18 2022 06:23:02 by
1.7.2