source: ntrip/trunk/BNS/tst_glo.cpp@ 4720

Last change on this file since 4720 was 911, checked in by mervart, 17 years ago

* empty log message *

File size: 1.0 KB
Line 
1
2#include <QtCore>
3
4#include <newmatio.h>
5
6#include "bnseph.h"
7#include "bnsutils.h"
8
9using namespace std;
10
11// Main Program
12/////////////////////////////////////////////////////////////////////////////
13int main(int /* argc */, char** /* argv */) {
14
15 QStringList lines;
16
17 lines << " 4 08 5 9 0 15 0.0 0.512236729264E-04 0.909494701773E-12 0.780000000000E+03"
18 << " -0.540624853516E+04 0.384947776794E+00-0.186264514923E-08 0.000000000000E+00"
19 << " -0.231976684570E+05 0.119731616974E+01 0.000000000000E+00 0.600000000000E+01"
20 << " -0.928076904297E+04-0.325608444214E+01 0.279396772385E-08 0.100000000000E+01";
21
22 t_ephGlo eph;
23
24 eph.read(lines);
25
26 ColumnVector xc(4);
27 ColumnVector vv(3);
28
29 int GPSWeek;
30 double GPSWeeks;
31 QDateTime dateTime(QDate(2008, 5, 9), QTime(0, 0, 0, 0), Qt::UTC);
32 GPSweekFromDateAndTime(dateTime, GPSWeek, GPSWeeks);
33
34 eph.position(GPSWeek, GPSWeeks, xc, vv);
35
36 cout << setprecision(3) << xc.Rows(1,3);
37 cout << setprecision(9) << xc(4) * 1e6 << endl;
38
39 return 0;
40}
41
Note: See TracBrowser for help on using the repository browser.