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.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
GPS Class Reference
GPS "interface" class. More...
#include <GPS.h>
Inherited by Sirf3, and Ublox6.
Public Member Functions | |
| virtual void | init (void)=0 |
| create a new instance of GPS | |
| virtual Serial * | getSerial (void)=0 |
| Return serial object. | |
| virtual void | setBaud (int baud)=0 |
| Set baud rate. | |
| virtual void | disable (void)=0 |
| Disable serial data collection. | |
| virtual void | enable (void)=0 |
| Enable serial data collection. | |
| virtual void | enableVerbose (void)=0 |
| Enable verbose messages for debugging. | |
| virtual void | disableVerbose (void)=0 |
| Disable verbose messages for debugging. | |
| virtual double | latitude (void)=0 |
| get latitude | |
| virtual double | longitude (void)=0 |
| get longitude | |
| virtual float | hdop (void)=0 |
| Get Horizontal Dilution of Precision. | |
| virtual int | sat_count (void)=0 |
| get count of active satellites | |
| virtual float | speed_mps (void)=0 |
| get speed in m/s | |
| virtual float | heading_deg (void)=0 |
| get heading in degrees | |
| virtual bool | available (void)=0 |
| determine if data is available to be used | |
| virtual void | reset_available (void)=0 |
| reset the data available flag | |
Detailed Description
GPS "interface" class.
Definition at line 12 of file GPS.h.
Member Function Documentation
| virtual bool available | ( | void | ) | [pure virtual] |
determine if data is available to be used
| virtual void disable | ( | void | ) | [pure virtual] |
Disable serial data collection.
| virtual void disableVerbose | ( | void | ) | [pure virtual] |
Disable verbose messages for debugging.
| virtual void enable | ( | void | ) | [pure virtual] |
Enable serial data collection.
| virtual void enableVerbose | ( | void | ) | [pure virtual] |
Enable verbose messages for debugging.
| virtual Serial* getSerial | ( | void | ) | [pure virtual] |
Return serial object.
| virtual float hdop | ( | void | ) | [pure virtual] |
Get Horizontal Dilution of Precision.
- Returns:
- float horizontal dilution of precision
| virtual float heading_deg | ( | void | ) | [pure virtual] |
get heading in degrees
| virtual void init | ( | void | ) | [pure virtual] |
| virtual double latitude | ( | void | ) | [pure virtual] |
get latitude
| virtual double longitude | ( | void | ) | [pure virtual] |
get longitude
| virtual void reset_available | ( | void | ) | [pure virtual] |
reset the data available flag
| virtual int sat_count | ( | void | ) | [pure virtual] |
get count of active satellites
| virtual void setBaud | ( | int | baud ) | [pure virtual] |
Set baud rate.
| virtual float speed_mps | ( | void | ) | [pure virtual] |
get speed in m/s
Generated on Tue Jul 12 2022 21:36:19 by
1.7.2