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.
Location Class Reference
#include <Location.h>
Public Member Functions | |
| Location (const RawSerial *pc) | |
| Default constructor. | |
| Location (const Location &location) | |
| Copy constructor. | |
| virtual | ~Location () |
| Destructor. | |
| virtual void | updateLocation ()=0 |
| Update the current location (pure virtual) | |
| virtual char * | getLatitude () |
| Get latest Latitude. | |
| virtual char * | getLongitude () |
| Get latest Longitude. | |
| char * | getMSLAltitude () |
| Get latest MSL Altitude (m) | |
| char * | getSpeed () |
| Get latest Speed (km/h) (pure virtual) | |
Protected Member Functions | |
| void | initBuffers () |
| Init buffers. | |
Detailed Description
Location class.
Definition at line 42 of file Location.h.
Constructor & Destructor Documentation
| Location | ( | const RawSerial * | pc ) |
Default constructor.
- Parameters:
-
pc input BufferedSerial instance for debugging (if NULL, no debugging output will occur in the library)
Definition at line 28 of file Location.cpp.
Copy constructor.
- Parameters:
-
logger input Location instance to deep copy
Definition at line 34 of file Location.cpp.
| ~Location | ( | ) | [virtual] |
Destructor.
Definition at line 43 of file Location.cpp.
Member Function Documentation
| char * getLatitude | ( | ) | [virtual] |
Get latest Latitude.
Definition at line 55 of file Location.cpp.
| char * getLongitude | ( | ) | [virtual] |
Get latest Longitude.
Definition at line 60 of file Location.cpp.
| char * getMSLAltitude | ( | ) |
Get latest MSL Altitude (m)
Definition at line 65 of file Location.cpp.
| char * getSpeed | ( | ) |
Get latest Speed (km/h) (pure virtual)
Definition at line 70 of file Location.cpp.
| void initBuffers | ( | ) | [protected] |
Init buffers.
Definition at line 47 of file Location.cpp.
| virtual void updateLocation | ( | ) | [pure virtual] |
Update the current location (pure virtual)
Generated on Wed Jul 13 2022 21:59:32 by
1.7.2