| 1 |
|
|---|
| 2 | #include <iostream>
|
|---|
| 3 | #include <iomanip>
|
|---|
| 4 | #include <string.h>
|
|---|
| 5 |
|
|---|
| 6 | #include "pppThread.h"
|
|---|
| 7 | #include "bnccore.h"
|
|---|
| 8 | #include "bncsettings.h"
|
|---|
| 9 | #include "bnctime.h"
|
|---|
| 10 |
|
|---|
| 11 | using namespace std;
|
|---|
| 12 |
|
|---|
| 13 | // Constructor
|
|---|
| 14 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 15 | t_pppThread::t_pppThread() : QThread(0) {
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | // Destructor
|
|---|
| 19 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 20 | t_pppThread::~t_pppThread() {
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | // Run (virtual)
|
|---|
| 24 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 25 | void t_pppThread::run() {
|
|---|
| 26 |
|
|---|
| 27 | bncSettings settings;
|
|---|
| 28 |
|
|---|
| 29 | // Connect to BNC Signals
|
|---|
| 30 | // ----------------------
|
|---|
| 31 | connect(BNC_CORE, SIGNAL(newCorrections(QList<QString>)),
|
|---|
| 32 | this, SLOT(slotNewCorrections(QList<QString>)));
|
|---|
| 33 |
|
|---|
| 34 | connect(BNC_CORE, SIGNAL(newEphGPS(gpsephemeris)),
|
|---|
| 35 | this, SLOT(slotNewEphGPS(gpsephemeris)));
|
|---|
| 36 |
|
|---|
| 37 | connect(BNC_CORE, SIGNAL(newEphGlonass(glonassephemeris)),
|
|---|
| 38 | this, SLOT(slotNewEphGlonass(glonassephemeris)));
|
|---|
| 39 |
|
|---|
| 40 | connect(BNC_CORE, SIGNAL(newEphGalileo(galileoephemeris)),
|
|---|
| 41 | this, SLOT(slotNewEphGalileo(galileoephemeris)));
|
|---|
| 42 |
|
|---|
| 43 | // Start processing loop
|
|---|
| 44 | // ---------------------
|
|---|
| 45 | QThread::exec();
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | //
|
|---|
| 49 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 50 | void t_pppThread::slotNewEphGPS(gpsephemeris gpseph) {
|
|---|
| 51 | QMutexLocker locker(&_mutex);
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | //
|
|---|
| 55 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 56 | void t_pppThread::slotNewEphGlonass(glonassephemeris gloeph) {
|
|---|
| 57 | QMutexLocker locker(&_mutex);
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | //
|
|---|
| 61 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 62 | void t_pppThread::slotNewEphGalileo(galileoephemeris /* galeph */) {
|
|---|
| 63 | QMutexLocker locker(&_mutex);
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | //
|
|---|
| 67 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 68 | void t_pppThread::slotNewCorrections(QList<QString> corrList) {
|
|---|
| 69 | QMutexLocker locker(&_mutex);
|
|---|
| 70 | }
|
|---|
| 71 | //
|
|---|
| 72 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 73 | void t_pppThread::slotNewObs(QByteArray staID, QList<t_obs> obsList) {
|
|---|
| 74 | QMutexLocker locker(&_mutex);
|
|---|
| 75 | }
|
|---|
| 76 |
|
|---|
| 77 | //
|
|---|
| 78 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 79 | void t_pppThread::processFrontEpoch() {
|
|---|
| 80 | }
|
|---|