source: ntrip/trunk/BNC/RTCM/GPSDecoder.h@ 247

Last change on this file since 247 was 246, checked in by mervart, 18 years ago

* empty log message *

File size: 1.1 KB
Line 
1
2#ifndef GPSDECODER_H
3#define GPSDECODER_H
4
5#include <QMutexLocker>
6
7#include <list>
8
9class Observation {
10 public:
11 Observation() {
12 flags = 0;
13 StatID[0] = '\0';
14 SVPRN = 0;
15 GPSWeek = 0;
16 GPSWeeks = 0.0;
17 C1 = 0.0;
18 P1 = 0.0;
19 P2 = 0.0;
20 L1 = 0.0;
21 L2 = 0.0;
22 SNR1 = 0;
23 SNR2 = 0;
24 }
25 int flags;
26 char StatID[5+1]; // Station ID
27 int SVPRN; // Satellite PRN
28 int GPSWeek; // Week of GPS-Time
29 double GPSWeeks; // Second of Week (GPS-Time)
30 double C1; // CA-code pseudorange (meters)
31 double P1; // P1-code pseudorange (meters)
32 double P2; // P2-code pseudorange (meters)
33 double L1; // L1 carrier phase (cycles)
34 double L2; // L2 carrier phase (cycles)
35 int SNR1; // L1 signal-to noise ratio (0.1 dB)
36 int SNR2; // L2 signal-to noise ratio (0.1 dB)
37};
38
39class GPSDecoder {
40 public:
41 virtual void Decode(char* buffer, int bufLen) = 0;
42 virtual ~GPSDecoder() {}
43 std::list<Observation*> _obsList;
44 protected:
45 QMutex _mutex;
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.