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