Rev | Line | |
---|
[342] | 1 | #ifndef GPSPARSER_H
|
---|
| 2 | #define GPSPARSER_H
|
---|
| 3 |
|
---|
| 4 | #ifndef nb_max_bolo
|
---|
| 5 | #define _archeops // Acquisition Archeops (avec transputer)
|
---|
| 6 | #define programme
|
---|
| 7 | extern "C" {
|
---|
| 8 | #include "archeops.h"
|
---|
| 9 | }
|
---|
| 10 | #endif
|
---|
| 11 |
|
---|
| 12 | class GPSParser {
|
---|
| 13 | public:
|
---|
| 14 | GPSParser();
|
---|
| 15 | //GPSParser(GPSParser const&);
|
---|
| 16 | //GPSParser& operator = (GPSParser const&);
|
---|
| 17 | virtual ~GPSParser();
|
---|
| 18 |
|
---|
| 19 | void ProcessBlock(block_type_gps*);
|
---|
| 20 |
|
---|
| 21 | bool hasTime(); // Can be internal clock
|
---|
| 22 | bool hasGPSTime(); // New GPS time
|
---|
| 23 | bool hasPosition();
|
---|
| 24 | bool hasAltitude();
|
---|
| 25 |
|
---|
| 26 | double getUTC();
|
---|
| 27 | double getLatitude();
|
---|
| 28 | double getLongitude();
|
---|
| 29 | double getAltitude();
|
---|
| 30 |
|
---|
| 31 | protected:
|
---|
| 32 |
|
---|
| 33 | char gpsString[100];
|
---|
| 34 | bool stringOk;
|
---|
| 35 | double gpsutc; // secondes depuis minuit
|
---|
| 36 | double gpslat; // degres, + = NORD
|
---|
| 37 | double gpslong; // degres, + = EST
|
---|
| 38 | int quality; // 0 = NO FIX, 1 = GPS FIX, 2 = DGPS FIX
|
---|
| 39 | int nsat; // nombre de satellites utilises
|
---|
| 40 | double hdop; // horizontal dilution of precision
|
---|
| 41 | double alt; // altitude en metres
|
---|
| 42 | double gsep; // separation geoide en metres
|
---|
| 43 | };
|
---|
| 44 |
|
---|
| 45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.