source: Sophya/trunk/Poubelle/archTOI.old/gpsparser.h@ 342

Last change on this file since 342 was 342, checked in by ansari, 26 years ago

archtoi 2 aout 99

File size: 1.1 KB
RevLine 
[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
7extern "C" {
8#include "archeops.h"
9}
10#endif
11
12class GPSParser {
13public:
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
31protected:
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.