1 | #include <iostream>
|
---|
2 | #include <iomanip>
|
---|
3 | #include <sstream>
|
---|
4 |
|
---|
5 | #include "satObs.h"
|
---|
6 |
|
---|
7 | using namespace std;
|
---|
8 |
|
---|
9 | //
|
---|
10 | ////////////////////////////////////////////////////////////////////////////
|
---|
11 | t_clkCorr::t_clkCorr() {
|
---|
12 | _iod = 0;
|
---|
13 | _dClk = 0.0;
|
---|
14 | _dotDClk = 0.0;
|
---|
15 | _dotDotDClk = 0.0;
|
---|
16 | _clkPartial = 0.0;
|
---|
17 | }
|
---|
18 |
|
---|
19 | //
|
---|
20 | ////////////////////////////////////////////////////////////////////////////
|
---|
21 | t_clkCorr::t_clkCorr(const string& line) {
|
---|
22 | istringstream in(line);
|
---|
23 | }
|
---|
24 |
|
---|
25 | //
|
---|
26 | ////////////////////////////////////////////////////////////////////////////
|
---|
27 | string t_clkCorr::toLine() const {
|
---|
28 | ostringstream str;
|
---|
29 | str.setf(ios::showpoint | ios::fixed);
|
---|
30 | str << "C " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
|
---|
31 | << _prn.toString() << ' ' << setw(2) << _iod << ' '
|
---|
32 | << setw(10) << setprecision(4) << _dClk * t_CST::c << ' '
|
---|
33 | << setw(10) << setprecision(4) << _dotDClk * t_CST::c << ' '
|
---|
34 | << setw(10) << setprecision(4) << _dotDotDClk * t_CST::c << endl;
|
---|
35 | return str.str();
|
---|
36 | }
|
---|
37 |
|
---|
38 | //
|
---|
39 | ////////////////////////////////////////////////////////////////////////////
|
---|
40 | t_orbCorr::t_orbCorr() {
|
---|
41 | _xr.ReSize(3); _xr = 0.0;
|
---|
42 | _dotXr.ReSize(3); _dotXr = 0.0;
|
---|
43 | _iod = 0;
|
---|
44 | _system = 'R';
|
---|
45 | }
|
---|
46 |
|
---|
47 | //
|
---|
48 | ////////////////////////////////////////////////////////////////////////////
|
---|
49 | t_orbCorr::t_orbCorr(const string& line) {
|
---|
50 | istringstream in(line);
|
---|
51 | }
|
---|
52 |
|
---|
53 | //
|
---|
54 | ////////////////////////////////////////////////////////////////////////////
|
---|
55 | string t_orbCorr::toLine() const {
|
---|
56 | ostringstream str;
|
---|
57 | str.setf(ios::showpoint | ios::fixed);
|
---|
58 | str << "O " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
|
---|
59 | << _prn.toString() << ' ' << setw(2) << _iod << ' '
|
---|
60 | << setw(10) << setprecision(4) << _xr[0] << ' '
|
---|
61 | << setw(10) << setprecision(4) << _xr[1] << ' '
|
---|
62 | << setw(10) << setprecision(4) << _xr[2] << " "
|
---|
63 | << setw(10) << setprecision(4) << _dotXr[0] << ' '
|
---|
64 | << setw(10) << setprecision(4) << _dotXr[1] << ' '
|
---|
65 | << setw(10) << setprecision(4) << _dotXr[2] << endl;
|
---|
66 |
|
---|
67 | return str.str();
|
---|
68 | }
|
---|
69 |
|
---|