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