@@ -0,0 +1,80 | |||||
|
1 | #include "arbitrarytime.h" | |||
|
2 | ||||
|
3 | ArbitraryTime::ArbitraryTime(char option, QWidget *parent) : | |||
|
4 | QWidget(parent) | |||
|
5 | { | |||
|
6 | QRegExp timeToSendRegExp("[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]"); | |||
|
7 | validator = new QRegExpValidator(timeToSendRegExp); | |||
|
8 | ||||
|
9 | packetToSend = new TCPacketToSend(); | |||
|
10 | ||||
|
11 | timeToSend = new QLineEdit(); | |||
|
12 | main_HLAYOUT = new QHBoxLayout; | |||
|
13 | main_VLAYOUT = new QVBoxLayout; | |||
|
14 | ||||
|
15 | timeToSend_LABEL = new QLabel("Arbitrary Time: 0x"); | |||
|
16 | timeToSend_LABEL->setAlignment(Qt::AlignRight); | |||
|
17 | ||||
|
18 | timeToSend->setMaxLength(8); | |||
|
19 | timeToSend->setValidator(validator); | |||
|
20 | timeToSend->setText("80000000"); | |||
|
21 | currentTimeToSend = 0x80000000; | |||
|
22 | ||||
|
23 | if (option == 1) | |||
|
24 | { | |||
|
25 | main_HLAYOUT->addWidget(timeToSend_LABEL); | |||
|
26 | main_HLAYOUT->addWidget(timeToSend); | |||
|
27 | main_HLAYOUT->addStretch(); | |||
|
28 | this->setLayout(main_HLAYOUT); | |||
|
29 | } | |||
|
30 | else | |||
|
31 | { | |||
|
32 | main_VLAYOUT->addWidget(timeToSend_LABEL); | |||
|
33 | main_VLAYOUT->addWidget(timeToSend); | |||
|
34 | main_VLAYOUT->addStretch(); | |||
|
35 | this->setLayout(main_VLAYOUT); | |||
|
36 | } | |||
|
37 | ||||
|
38 | connect(this->timeToSend, SIGNAL(editingFinished()), | |||
|
39 | this, SLOT(editingFinishedSLOT())); | |||
|
40 | } | |||
|
41 | ||||
|
42 | void ArbitraryTime::editingFinishedSLOT() | |||
|
43 | { | |||
|
44 | currentTimeToSend = timeToSend->text().toLong(0, 16); | |||
|
45 | emit ( | |||
|
46 | timeToSendChanged( currentTimeToSend) | |||
|
47 | ); | |||
|
48 | } | |||
|
49 | ||||
|
50 | void ArbitraryTime::sendCurrentTimeToSend() | |||
|
51 | { | |||
|
52 | Packet_TC_LFR_UPDATE_TIME_t packet; | |||
|
53 | unsigned char crcAsTwoBytes[2]; | |||
|
54 | ||||
|
55 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
56 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
57 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
58 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
59 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_TIME >> 8); | |||
|
60 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_TIME ); | |||
|
61 | ||||
|
62 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
63 | packet.serviceType = TC_TYPE_LFR_UPDATE_TIME; | |||
|
64 | packet.serviceSubType = TC_SUBTYPE_UPDATE_TIME; | |||
|
65 | packet.sourceID = SID_DEFAULT; | |||
|
66 | packet.cp_rpw_time[0] = (unsigned char) (currentTimeToSend >> 24); | |||
|
67 | packet.cp_rpw_time[1] = (unsigned char) (currentTimeToSend >> 16); | |||
|
68 | packet.cp_rpw_time[2] = (unsigned char) (currentTimeToSend >> 8); | |||
|
69 | packet.cp_rpw_time[3] = (unsigned char) (currentTimeToSend); | |||
|
70 | packet.cp_rpw_time[4] = 0; // fine time MSB | |||
|
71 | packet.cp_rpw_time[5] = 0; // fine time LSB | |||
|
72 | ||||
|
73 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
74 | PACKET_LENGTH_TC_LFR_UPDATE_TIME + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
75 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
76 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
77 | ||||
|
78 | emit WriteSPW((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_TIME + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
79 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
80 | } |
@@ -0,0 +1,43 | |||||
|
1 | #ifndef ARBITRARYTIME_H | |||
|
2 | #define ARBITRARYTIME_H | |||
|
3 | ||||
|
4 | #include "paulcommon_global.h" | |||
|
5 | ||||
|
6 | #include <QWidget> | |||
|
7 | #include <QLabel> | |||
|
8 | #include <QHBoxLayout> | |||
|
9 | #include <QVBoxLayout> | |||
|
10 | #include <QLineEdit> | |||
|
11 | #include <QRegExpValidator> | |||
|
12 | #include <tcpackettosend.h> | |||
|
13 | ||||
|
14 | class PAULCOMMONSHARED_EXPORT ArbitraryTime : public QWidget | |||
|
15 | { | |||
|
16 | Q_OBJECT | |||
|
17 | public: | |||
|
18 | explicit ArbitraryTime(char option, QWidget *parent = 0); | |||
|
19 | ||||
|
20 | long currentTimeToSend; | |||
|
21 | ||||
|
22 | TCPacketToSend *packetToSend; | |||
|
23 | ||||
|
24 | QLabel *timeToSend_LABEL; | |||
|
25 | ||||
|
26 | QHBoxLayout *main_HLAYOUT; | |||
|
27 | QVBoxLayout *main_VLAYOUT; | |||
|
28 | ||||
|
29 | QLineEdit *timeToSend; | |||
|
30 | ||||
|
31 | QRegExpValidator *validator; | |||
|
32 | ||||
|
33 | signals: | |||
|
34 | void timeToSendChanged(long timeToSend); | |||
|
35 | unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | |||
|
36 | ||||
|
37 | public slots: | |||
|
38 | void editingFinishedSLOT(); | |||
|
39 | void sendCurrentTimeToSend(); | |||
|
40 | ||||
|
41 | }; | |||
|
42 | ||||
|
43 | #endif // ARBITRARYTIME_H |
@@ -0,0 +1,38 | |||||
|
1 | #------------------------------------------------- | |||
|
2 | # | |||
|
3 | # Project created by QtCreator 2013-09-20T14:01:20 | |||
|
4 | # | |||
|
5 | #------------------------------------------------- | |||
|
6 | ||||
|
7 | TARGET = paulcommon | |||
|
8 | TEMPLATE = lib | |||
|
9 | ||||
|
10 | INCLUDEPATH += \ | |||
|
11 | $${PWD} \ | |||
|
12 | $$[QT_INSTALL_HEADERS]/lppmon/parameterdump \ | |||
|
13 | ../../DEV_PLE/header | |||
|
14 | ||||
|
15 | DEFINES += PAULCOMMON_LIBRARY | |||
|
16 | ||||
|
17 | SOURCES += systemtime.cpp \ | |||
|
18 | arbitrarytime.cpp | |||
|
19 | ||||
|
20 | HEADERS += systemtime.h\ | |||
|
21 | paulcommon_global.h \ | |||
|
22 | arbitrarytime.h \ | |||
|
23 | ../../DEV_PLE/header/TC_types.h | |||
|
24 | ||||
|
25 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/paulcommon | |||
|
26 | header.files = \ | |||
|
27 | systemtime.h\ | |||
|
28 | paulcommon_global.h \ | |||
|
29 | arbitrarytime.h | |||
|
30 | ||||
|
31 | target.path = $$[QT_INSTALL_LIBS] | |||
|
32 | isEmpty(target.path) { | |||
|
33 | target.path = $(QTDIR)/lib | |||
|
34 | } | |||
|
35 | ||||
|
36 | LIBS += -lparameterdump | |||
|
37 | ||||
|
38 | INSTALLS += header target |
@@ -0,0 +1,12 | |||||
|
1 | #ifndef PAULCOMMON_GLOBAL_H | |||
|
2 | #define PAULCOMMON_GLOBAL_H | |||
|
3 | ||||
|
4 | #include <QtCore/qglobal.h> | |||
|
5 | ||||
|
6 | #if defined(PAULCOMMON_LIBRARY) | |||
|
7 | # define PAULCOMMONSHARED_EXPORT Q_DECL_EXPORT | |||
|
8 | #else | |||
|
9 | # define PAULCOMMONSHARED_EXPORT Q_DECL_IMPORT | |||
|
10 | #endif | |||
|
11 | ||||
|
12 | #endif // PAULCOMMON_GLOBAL_H |
@@ -0,0 +1,40 | |||||
|
1 | #include "systemtime.h" | |||
|
2 | ||||
|
3 | SystemTime::SystemTime(QWidget *parent) : | |||
|
4 | QWidget(parent) | |||
|
5 | { | |||
|
6 | main_LAYOUT = new QGridLayout; | |||
|
7 | ||||
|
8 | arbitraryTime = new ArbitraryTime(1); | |||
|
9 | ||||
|
10 | currentTimePrefix_LABEL = new QLabel(tr("Current System Time: 0x")); | |||
|
11 | currentTime_LABEL = new QLabel(tr("-")); | |||
|
12 | ||||
|
13 | currentTimePrefix_LABEL->setAlignment(Qt::AlignRight); | |||
|
14 | currentTime = 0x80000000; | |||
|
15 | currentTime_LABEL->setText(QString::number(currentTime, 16)); | |||
|
16 | ||||
|
17 | main_LAYOUT->addWidget(currentTimePrefix_LABEL, 0, 0, 1, 1); | |||
|
18 | main_LAYOUT->addWidget(currentTime_LABEL, 0, 1, 1, 1); | |||
|
19 | main_LAYOUT->addWidget(arbitraryTime, 1, 0, 1, 2); | |||
|
20 | main_LAYOUT->setColumnStretch(2, 1); | |||
|
21 | main_LAYOUT->setRowStretch(2, 1); | |||
|
22 | ||||
|
23 | this->setLayout(main_LAYOUT); | |||
|
24 | ||||
|
25 | connect(this->arbitraryTime, SIGNAL(timeToSendChanged(long)), | |||
|
26 | this, SLOT(editingFinishedSLOT(long))); | |||
|
27 | } | |||
|
28 | ||||
|
29 | void SystemTime::editingFinishedSLOT(long time) | |||
|
30 | { | |||
|
31 | emit ( | |||
|
32 | timeToSendChanged(time) | |||
|
33 | ); | |||
|
34 | } | |||
|
35 | ||||
|
36 | void SystemTime::systemTimeHasChanged(long time) | |||
|
37 | { | |||
|
38 | currentTime = time; | |||
|
39 | currentTime_LABEL->setText(QString::number(currentTime, 16)); | |||
|
40 | } |
@@ -0,0 +1,37 | |||||
|
1 | #ifndef SYSTEMTIME_H | |||
|
2 | #define SYSTEMTIME_H | |||
|
3 | ||||
|
4 | #include "paulcommon_global.h" | |||
|
5 | ||||
|
6 | #include <QLabel> | |||
|
7 | #include <QGridLayout> | |||
|
8 | #include <QLineEdit> | |||
|
9 | #include <QRegExpValidator> | |||
|
10 | ||||
|
11 | #include "arbitrarytime.h" | |||
|
12 | ||||
|
13 | class PAULCOMMONSHARED_EXPORT SystemTime : public QWidget | |||
|
14 | { | |||
|
15 | Q_OBJECT | |||
|
16 | public: | |||
|
17 | explicit SystemTime(QWidget *parent = 0); | |||
|
18 | ||||
|
19 | signals: | |||
|
20 | void timeToSendChanged(long timeToSend); | |||
|
21 | ||||
|
22 | public slots: | |||
|
23 | void editingFinishedSLOT(long time); | |||
|
24 | void systemTimeHasChanged(long time); | |||
|
25 | ||||
|
26 | private: | |||
|
27 | long currentTime; | |||
|
28 | ||||
|
29 | QLabel *currentTimePrefix_LABEL; | |||
|
30 | QLabel *currentTime_LABEL; | |||
|
31 | ||||
|
32 | QGridLayout *main_LAYOUT; | |||
|
33 | ||||
|
34 | ArbitraryTime *arbitraryTime; | |||
|
35 | }; | |||
|
36 | ||||
|
37 | #endif // SYSTEMTIME_H |
@@ -0,0 +1,48 | |||||
|
1 | #include "systemtime.h" | |||
|
2 | ||||
|
3 | SystemTime::SystemTime(QWidget *parent) : | |||
|
4 | QWidget(parent) | |||
|
5 | { | |||
|
6 | QRegExp timeToSendRegExp("[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]"); | |||
|
7 | validator = new QRegExpValidator(timeToSendRegExp); | |||
|
8 | ||||
|
9 | timeToSend = new QLineEdit(); | |||
|
10 | main_LAYOUT = new QGridLayout; | |||
|
11 | ||||
|
12 | currentTimePrefix_LABEL = new QLabel(tr("Current System Time: 0x")); | |||
|
13 | currentTime_LABEL = new QLabel(tr("-")); | |||
|
14 | timeToSend_LABEL = new QLabel("Arbitrary Time: 0x"); | |||
|
15 | ||||
|
16 | timeToSend_LABEL->setAlignment(Qt::AlignRight); | |||
|
17 | currentTimePrefix_LABEL->setAlignment(Qt::AlignRight); | |||
|
18 | currentTime = 0x80000000; | |||
|
19 | currentTime_LABEL->setText(QString::number(currentTime, 16)); | |||
|
20 | timeToSend->setMaxLength(8); | |||
|
21 | timeToSend->setValidator(validator); | |||
|
22 | timeToSend->setText("80000000"); | |||
|
23 | ||||
|
24 | main_LAYOUT->addWidget(currentTimePrefix_LABEL, 0, 0, 1, 1); | |||
|
25 | main_LAYOUT->addWidget(currentTime_LABEL, 0, 1, 1, 1); | |||
|
26 | main_LAYOUT->addWidget(timeToSend_LABEL, 1, 0, 1, 1); | |||
|
27 | main_LAYOUT->addWidget(timeToSend, 1, 1, 1, 1); | |||
|
28 | main_LAYOUT->setColumnStretch(3, 1); | |||
|
29 | main_LAYOUT->setRowStretch(2, 1); | |||
|
30 | ||||
|
31 | this->setLayout(main_LAYOUT); | |||
|
32 | ||||
|
33 | connect(this->timeToSend, SIGNAL(editingFinished()), | |||
|
34 | this, SLOT(editingFinishedSLOT())); | |||
|
35 | } | |||
|
36 | ||||
|
37 | void SystemTime::editingFinishedSLOT() | |||
|
38 | { | |||
|
39 | emit ( | |||
|
40 | timeToSendChanged(timeToSend->text().toLong(0, 16)) | |||
|
41 | ); | |||
|
42 | } | |||
|
43 | ||||
|
44 | void SystemTime::systemTimeHasChanged(long time) | |||
|
45 | { | |||
|
46 | currentTime = time; | |||
|
47 | currentTime_LABEL->setText(QString::number(currentTime, 16)); | |||
|
48 | } |
@@ -0,0 +1,37 | |||||
|
1 | #ifndef SYSTEMTIME_H | |||
|
2 | #define SYSTEMTIME_H | |||
|
3 | ||||
|
4 | #include <QWidget> | |||
|
5 | #include <QLabel> | |||
|
6 | #include <QGridLayout> | |||
|
7 | #include <QLineEdit> | |||
|
8 | #include <QRegExpValidator> | |||
|
9 | ||||
|
10 | class SystemTime : public QWidget | |||
|
11 | { | |||
|
12 | Q_OBJECT | |||
|
13 | public: | |||
|
14 | explicit SystemTime(QWidget *parent = 0); | |||
|
15 | ||||
|
16 | signals: | |||
|
17 | void timeToSendChanged(long timeToSend); | |||
|
18 | ||||
|
19 | public slots: | |||
|
20 | void editingFinishedSLOT(); | |||
|
21 | void systemTimeHasChanged(long time); | |||
|
22 | ||||
|
23 | private: | |||
|
24 | long currentTime; | |||
|
25 | ||||
|
26 | QLabel *currentTimePrefix_LABEL; | |||
|
27 | QLabel *currentTime_LABEL; | |||
|
28 | QLabel *timeToSend_LABEL; | |||
|
29 | ||||
|
30 | QGridLayout *main_LAYOUT; | |||
|
31 | ||||
|
32 | QLineEdit *timeToSend; | |||
|
33 | ||||
|
34 | QRegExpValidator *validator; | |||
|
35 | }; | |||
|
36 | ||||
|
37 | #endif // SYSTEMTIME_H |
@@ -1,142 +1,144 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: PAULs_LPPMON_PLUGINS |
|
2 | # Makefile for building: PAULs_LPPMON_PLUGINS | |
3 |
# Generated by qmake (2.01a) (Qt 4.8. |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.5) on: Fri Sep 27 14:11:49 2013 | |
4 | # Project: PAULs_LPPMON_PLUGINS.pro |
|
4 | # Project: PAULs_LPPMON_PLUGINS.pro | |
5 | # Template: subdirs |
|
5 | # Template: subdirs | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | first: make_default |
|
9 | first: make_default | |
10 | MAKEFILE = Makefile |
|
10 | MAKEFILE = Makefile | |
11 | QMAKE = /usr/bin/qmake-qt4 |
|
11 | QMAKE = /usr/bin/qmake-qt4 | |
12 | DEL_FILE = rm -f |
|
12 | DEL_FILE = rm -f | |
13 | CHK_DIR_EXISTS= test -d |
|
13 | CHK_DIR_EXISTS= test -d | |
14 | MKDIR = mkdir -p |
|
14 | MKDIR = mkdir -p | |
15 | COPY = cp -f |
|
15 | COPY = cp -f | |
16 | COPY_FILE = $(COPY) |
|
16 | COPY_FILE = $(COPY) | |
17 | COPY_DIR = $(COPY) -r |
|
17 | COPY_DIR = $(COPY) -r | |
18 | INSTALL_FILE = install -m 644 -p |
|
18 | INSTALL_FILE = install -m 644 -p | |
19 | INSTALL_PROGRAM = install -m 755 -p |
|
19 | INSTALL_PROGRAM = install -m 755 -p | |
20 | INSTALL_DIR = $(COPY_DIR) |
|
20 | INSTALL_DIR = $(COPY_DIR) | |
21 | DEL_FILE = rm -f |
|
21 | DEL_FILE = rm -f | |
22 | SYMLINK = ln -f -s |
|
22 | SYMLINK = ln -f -s | |
23 | DEL_DIR = rmdir |
|
23 | DEL_DIR = rmdir | |
24 | MOVE = mv -f |
|
24 | MOVE = mv -f | |
25 | CHK_DIR_EXISTS= test -d |
|
25 | CHK_DIR_EXISTS= test -d | |
26 | MKDIR = mkdir -p |
|
26 | MKDIR = mkdir -p | |
27 | SUBTARGETS = \ |
|
27 | SUBTARGETS = \ | |
28 | sub-rmapplugin |
|
28 | sub-rmapplugin | |
29 |
|
29 | |||
30 | rmapplugin/$(MAKEFILE): |
|
30 | rmapplugin/$(MAKEFILE): | |
31 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
31 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ | |
32 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) |
|
32 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
33 | sub-rmapplugin-qmake_all: FORCE |
|
33 | sub-rmapplugin-qmake_all: FORCE | |
34 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
34 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ | |
35 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) |
|
35 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
36 | sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE |
|
36 | sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE | |
37 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
37 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
38 | sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
38 | sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE | |
39 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
39 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
40 | sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE |
|
40 | sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE | |
41 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
41 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
42 | sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
42 | sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE | |
43 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first |
|
43 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first | |
44 | sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE |
|
44 | sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE | |
45 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first |
|
45 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first | |
46 | sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
46 | sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE | |
47 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all |
|
47 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all | |
48 | sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE |
|
48 | sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE | |
49 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all |
|
49 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all | |
50 | sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
50 | sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE | |
51 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean |
|
51 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean | |
52 | sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE |
|
52 | sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE | |
53 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean |
|
53 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean | |
54 | sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
54 | sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE | |
55 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean |
|
55 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean | |
56 | sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE |
|
56 | sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE | |
57 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean |
|
57 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean | |
58 | sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
58 | sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE | |
59 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install |
|
59 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install | |
60 | sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE |
|
60 | sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE | |
61 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install |
|
61 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install | |
62 | sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
62 | sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE | |
63 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall |
|
63 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall | |
64 | sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE |
|
64 | sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE | |
65 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall |
|
65 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall | |
66 |
|
66 | |||
67 | Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
67 | Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
68 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
68 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
69 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
69 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
70 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
70 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
71 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
71 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
72 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
72 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
73 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
73 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
74 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
74 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
75 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
75 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
76 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
76 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
77 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
77 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
78 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
78 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
79 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
79 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
|
81 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |||
81 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
82 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
82 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
83 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
83 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
84 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
84 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
85 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
85 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
86 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
86 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
87 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
87 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
88 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
88 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
89 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
89 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
90 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
90 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf |
|
91 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf | |
91 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
92 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
92 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
93 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
93 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
94 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
94 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
95 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
95 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
96 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
96 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
97 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
97 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
98 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
98 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
99 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
99 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
100 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
100 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
101 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
101 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
102 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
102 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
103 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
103 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
104 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
104 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
105 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
105 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
106 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
|
107 | /usr/lib64/qt4/mkspecs/features/shared.prf: | |||
106 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
108 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
107 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
109 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
108 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
110 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
109 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
111 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
110 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
112 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
111 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
113 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
112 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
114 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
113 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
115 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
114 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
116 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
115 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
117 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
116 | qmake: qmake_all FORCE |
|
118 | qmake: qmake_all FORCE | |
117 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
119 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
118 |
|
120 | |||
119 | qmake_all: sub-rmapplugin-qmake_all FORCE |
|
121 | qmake_all: sub-rmapplugin-qmake_all FORCE | |
120 |
|
122 | |||
121 | make_default: sub-rmapplugin-make_default-ordered FORCE |
|
123 | make_default: sub-rmapplugin-make_default-ordered FORCE | |
122 | make_first: sub-rmapplugin-make_first-ordered FORCE |
|
124 | make_first: sub-rmapplugin-make_first-ordered FORCE | |
123 | all: sub-rmapplugin-all-ordered FORCE |
|
125 | all: sub-rmapplugin-all-ordered FORCE | |
124 | clean: sub-rmapplugin-clean-ordered FORCE |
|
126 | clean: sub-rmapplugin-clean-ordered FORCE | |
125 | distclean: sub-rmapplugin-distclean-ordered FORCE |
|
127 | distclean: sub-rmapplugin-distclean-ordered FORCE | |
126 | -$(DEL_FILE) Makefile |
|
128 | -$(DEL_FILE) Makefile | |
127 | install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE |
|
129 | install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE | |
128 | uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE |
|
130 | uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE | |
129 |
|
131 | |||
130 | sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE) |
|
132 | sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE) | |
131 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check |
|
133 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check | |
132 | check: sub-rmapplugin-check_ordered |
|
134 | check: sub-rmapplugin-check_ordered | |
133 |
|
135 | |||
134 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
136 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
135 |
|
137 | |||
136 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
138 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
137 | install: install_subtargets FORCE |
|
139 | install: install_subtargets FORCE | |
138 |
|
140 | |||
139 | uninstall: uninstall_subtargets FORCE |
|
141 | uninstall: uninstall_subtargets FORCE | |
140 |
|
142 | |||
141 | FORCE: |
|
143 | FORCE: | |
142 |
|
144 |
@@ -1,197 +1,197 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by QtCreator 2.8.0, 2013- |
|
3 | <!-- Written by QtCreator 2.8.0, 2013-10-01T11:19:54. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | <valuemap type="QVariantMap"> |
|
11 | <valuemap type="QVariantMap"> | |
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
16 | <value type="QString" key="language">Cpp</value> |
|
16 | <value type="QString" key="language">Cpp</value> | |
17 | <valuemap type="QVariantMap" key="value"> |
|
17 | <valuemap type="QVariantMap" key="value"> | |
18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | </valuemap> |
|
20 | </valuemap> | |
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
22 | <value type="QString" key="language">QmlJS</value> |
|
22 | <value type="QString" key="language">QmlJS</value> | |
23 | <valuemap type="QVariantMap" key="value"> |
|
23 | <valuemap type="QVariantMap" key="value"> | |
24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | </valuemap> |
|
26 | </valuemap> | |
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
45 | </valuemap> |
|
45 | </valuemap> | |
46 | </data> |
|
46 | </data> | |
47 | <data> |
|
47 | <data> | |
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
49 | <valuemap type="QVariantMap"/> |
|
49 | <valuemap type="QVariantMap"/> | |
50 | </data> |
|
50 | </data> | |
51 | <data> |
|
51 | <data> | |
52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
52 | <variable>ProjectExplorer.Project.Target.0</variable> | |
53 | <valuemap type="QVariantMap"> |
|
53 | <valuemap type="QVariantMap"> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> |
|
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
71 | </valuemap> |
|
71 | </valuemap> | |
72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
77 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
77 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
78 | <value type="QString">-w</value> |
|
78 | <value type="QString">-w</value> | |
79 | <value type="QString">-r</value> |
|
79 | <value type="QString">-r</value> | |
80 | </valuelist> |
|
80 | </valuelist> | |
81 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
81 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
82 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value> |
|
82 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value> | |
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
84 | </valuemap> |
|
84 | </valuemap> | |
85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
89 | </valuemap> |
|
89 | </valuemap> | |
90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
96 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
96 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
97 | <value type="QString">-w</value> |
|
97 | <value type="QString">-w</value> | |
98 | <value type="QString">-r</value> |
|
98 | <value type="QString">-r</value> | |
99 | </valuelist> |
|
99 | </valuelist> | |
100 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
100 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
101 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value> |
|
101 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value> | |
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
103 | </valuemap> |
|
103 | </valuemap> | |
104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
108 | </valuemap> |
|
108 | </valuemap> | |
109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
118 | </valuemap> |
|
118 | </valuemap> | |
119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
|
119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
126 | </valuemap> |
|
126 | </valuemap> | |
127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
131 | </valuemap> |
|
131 | </valuemap> | |
132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
135 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
135 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
136 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
136 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
141 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
141 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
142 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
142 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
143 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
143 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
144 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
144 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
145 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
145 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
148 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
148 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
149 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
149 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
150 | <value type="int">0</value> |
|
150 | <value type="int">0</value> | |
151 | <value type="int">1</value> |
|
151 | <value type="int">1</value> | |
152 | <value type="int">2</value> |
|
152 | <value type="int">2</value> | |
153 | <value type="int">3</value> |
|
153 | <value type="int">3</value> | |
154 | <value type="int">4</value> |
|
154 | <value type="int">4</value> | |
155 | <value type="int">5</value> |
|
155 | <value type="int">5</value> | |
156 | <value type="int">6</value> |
|
156 | <value type="int">6</value> | |
157 | <value type="int">7</value> |
|
157 | <value type="int">7</value> | |
158 | <value type="int">8</value> |
|
158 | <value type="int">8</value> | |
159 | <value type="int">9</value> |
|
159 | <value type="int">9</value> | |
160 | <value type="int">10</value> |
|
160 | <value type="int">10</value> | |
161 | <value type="int">11</value> |
|
161 | <value type="int">11</value> | |
162 | <value type="int">12</value> |
|
162 | <value type="int">12</value> | |
163 | <value type="int">13</value> |
|
163 | <value type="int">13</value> | |
164 | <value type="int">14</value> |
|
164 | <value type="int">14</value> | |
165 | </valuelist> |
|
165 | </valuelist> | |
166 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> |
|
166 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
167 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
|
167 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
168 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
168 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
169 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> |
|
169 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> | |
170 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
170 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
171 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
171 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> |
|
172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> | |
173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
175 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
175 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
176 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
176 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
177 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> |
|
177 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> | |
178 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> |
|
178 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
179 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
179 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
180 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
180 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
181 | </valuemap> |
|
181 | </valuemap> | |
182 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
182 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
183 | </valuemap> |
|
183 | </valuemap> | |
184 | </data> |
|
184 | </data> | |
185 | <data> |
|
185 | <data> | |
186 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
186 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
187 | <value type="int">1</value> |
|
187 | <value type="int">1</value> | |
188 | </data> |
|
188 | </data> | |
189 | <data> |
|
189 | <data> | |
190 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
190 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
191 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
191 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
192 | </data> |
|
192 | </data> | |
193 | <data> |
|
193 | <data> | |
194 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
194 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
195 | <value type="int">14</value> |
|
195 | <value type="int">14</value> | |
196 | </data> |
|
196 | </data> | |
197 | </qtcreator> |
|
197 | </qtcreator> |
@@ -1,198 +1,198 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by QtCreator 2.8.0, 2013-0 |
|
3 | <!-- Written by QtCreator 2.8.0, 2013-09-23T12:59:08. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | <valuemap type="QVariantMap"> |
|
11 | <valuemap type="QVariantMap"> | |
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
16 | <value type="QString" key="language">Cpp</value> |
|
16 | <value type="QString" key="language">Cpp</value> | |
17 | <valuemap type="QVariantMap" key="value"> |
|
17 | <valuemap type="QVariantMap" key="value"> | |
18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | </valuemap> |
|
20 | </valuemap> | |
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
22 | <value type="QString" key="language">QmlJS</value> |
|
22 | <value type="QString" key="language">QmlJS</value> | |
23 | <valuemap type="QVariantMap" key="value"> |
|
23 | <valuemap type="QVariantMap" key="value"> | |
24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | </valuemap> |
|
26 | </valuemap> | |
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
45 | </valuemap> |
|
45 | </valuemap> | |
46 | </data> |
|
46 | </data> | |
47 | <data> |
|
47 | <data> | |
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
49 | <valuemap type="QVariantMap"/> |
|
49 | <valuemap type="QVariantMap"/> | |
50 | </data> |
|
50 | </data> | |
51 | <data> |
|
51 | <data> | |
52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
52 | <variable>ProjectExplorer.Project.Target.0</variable> | |
53 | <valuemap type="QVariantMap"> |
|
53 | <valuemap type="QVariantMap"> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> |
|
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
71 | </valuemap> |
|
71 | </valuemap> | |
72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
77 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
77 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
78 | <value type="QString">-w</value> |
|
78 | <value type="QString">-w</value> | |
79 | <value type="QString">-r</value> |
|
79 | <value type="QString">-r</value> | |
80 | </valuelist> |
|
80 | </valuelist> | |
81 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
81 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
82 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value> |
|
82 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value> | |
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
84 | </valuemap> |
|
84 | </valuemap> | |
85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
89 | </valuemap> |
|
89 | </valuemap> | |
90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
96 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
96 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
97 | <value type="QString">-w</value> |
|
97 | <value type="QString">-w</value> | |
98 | <value type="QString">-r</value> |
|
98 | <value type="QString">-r</value> | |
99 | </valuelist> |
|
99 | </valuelist> | |
100 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
100 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
101 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value> |
|
101 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value> | |
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
103 | </valuemap> |
|
103 | </valuemap> | |
104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
108 | </valuemap> |
|
108 | </valuemap> | |
109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value> |
|
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value> | |
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
118 | </valuemap> |
|
118 | </valuemap> | |
119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
|
119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
126 | </valuemap> |
|
126 | </valuemap> | |
127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
131 | </valuemap> |
|
131 | </valuemap> | |
132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
135 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
135 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
136 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
136 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
141 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
141 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
142 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
142 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
143 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
143 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
144 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
144 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
145 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
145 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
148 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
148 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
149 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
149 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
150 | <value type="int">0</value> |
|
150 | <value type="int">0</value> | |
151 | <value type="int">1</value> |
|
151 | <value type="int">1</value> | |
152 | <value type="int">2</value> |
|
152 | <value type="int">2</value> | |
153 | <value type="int">3</value> |
|
153 | <value type="int">3</value> | |
154 | <value type="int">4</value> |
|
154 | <value type="int">4</value> | |
155 | <value type="int">5</value> |
|
155 | <value type="int">5</value> | |
156 | <value type="int">6</value> |
|
156 | <value type="int">6</value> | |
157 | <value type="int">7</value> |
|
157 | <value type="int">7</value> | |
158 | <value type="int">8</value> |
|
158 | <value type="int">8</value> | |
159 | <value type="int">9</value> |
|
159 | <value type="int">9</value> | |
160 | <value type="int">10</value> |
|
160 | <value type="int">10</value> | |
161 | <value type="int">11</value> |
|
161 | <value type="int">11</value> | |
162 | <value type="int">12</value> |
|
162 | <value type="int">12</value> | |
163 | <value type="int">13</value> |
|
163 | <value type="int">13</value> | |
164 | <value type="int">14</value> |
|
164 | <value type="int">14</value> | |
165 | </valuelist> |
|
165 | </valuelist> | |
166 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> |
|
166 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
167 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
|
167 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> |
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
170 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value> |
|
170 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value> | |
171 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
171 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
172 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> |
|
172 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> | |
173 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
173 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
174 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
174 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |
175 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
175 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
176 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
176 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
177 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
177 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
178 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> |
|
178 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> | |
179 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> |
|
179 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
180 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
180 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
181 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
181 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
182 | </valuemap> |
|
182 | </valuemap> | |
183 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
183 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
184 | </valuemap> |
|
184 | </valuemap> | |
185 | </data> |
|
185 | </data> | |
186 | <data> |
|
186 | <data> | |
187 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
187 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
188 | <value type="int">1</value> |
|
188 | <value type="int">1</value> | |
189 | </data> |
|
189 | </data> | |
190 | <data> |
|
190 | <data> | |
191 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
191 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
192 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
192 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
193 | </data> |
|
193 | </data> | |
194 | <data> |
|
194 | <data> | |
195 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
195 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
196 | <value type="int">14</value> |
|
196 | <value type="int">14</value> | |
197 | </data> |
|
197 | </data> | |
198 | </qtcreator> |
|
198 | </qtcreator> |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,471 +1,471 | |||||
1 | #include "parameterdump.h" |
|
1 | #include "parameterdump.h" | |
2 |
|
2 | |||
3 | ParameterDump::ParameterDump(QWidget *parent) : |
|
3 | ParameterDump::ParameterDump(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | this->buildTabParameterDump(); |
|
6 | this->buildTabParameterDump(); | |
7 |
|
7 | |||
8 | packetToSend = new TCPacketToSend(); |
|
8 | packetToSend = new TCPacketToSend(); | |
9 |
|
9 | |||
10 | this->setLayout(layout_parameterDump); |
|
10 | this->setLayout(layout_parameterDump); | |
11 | } |
|
11 | } | |
12 |
|
12 | |||
13 | void ParameterDump::buildTabParameterDump() |
|
13 | void ParameterDump::buildTabParameterDump() | |
14 | { |
|
14 | { | |
15 | buildCOMM(); |
|
15 | buildCOMM(); | |
16 | buildNORM(); |
|
16 | buildNORM(); | |
17 | buildBURST(); |
|
17 | buildBURST(); | |
18 | buildSBM1(); |
|
18 | buildSBM1(); | |
19 | buildSBM2(); |
|
19 | buildSBM2(); | |
20 | buildActions(); |
|
20 | buildActions(); | |
21 |
|
21 | |||
22 | layout_parameterDump = new QGridLayout(); |
|
22 | layout_parameterDump = new QGridLayout(); | |
23 |
|
23 | |||
24 | layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1); |
|
24 | layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1); | |
25 | layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1); |
|
25 | layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1); | |
26 | layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1); |
|
26 | layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1); | |
27 | layout_parameterDump->addWidget(groupbox_ACTIONS, 1, 1, 1, 1); |
|
27 | layout_parameterDump->addWidget(groupbox_ACTIONS, 1, 1, 1, 1); | |
28 | layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1); |
|
28 | layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1); | |
29 | layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1); |
|
29 | layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1); | |
30 |
|
30 | |||
31 | layout_parameterDump->setRowStretch(3, 1); |
|
31 | layout_parameterDump->setRowStretch(3, 1); | |
32 | layout_parameterDump->setColumnStretch(2, 1); |
|
32 | layout_parameterDump->setColumnStretch(2, 1); | |
33 |
|
33 | |||
34 | layout_parameterDump->setRowStretch(3, 1); |
|
34 | layout_parameterDump->setRowStretch(3, 1); | |
35 | layout_parameterDump->setColumnStretch(2, 1); |
|
35 | layout_parameterDump->setColumnStretch(2, 1); | |
36 | } |
|
36 | } | |
37 |
|
37 | |||
38 | void ParameterDump::buildCOMM() |
|
38 | void ParameterDump::buildCOMM() | |
39 | { |
|
39 | { | |
40 | groupbox_COMM = new QGroupBox(tr("COMMON_PAR")); |
|
40 | groupbox_COMM = new QGroupBox(tr("COMMON_PAR")); | |
41 | layout_COMM = new QGridLayout(); |
|
41 | layout_COMM = new QGridLayout(); | |
42 |
|
42 | |||
43 | sy_lfr_bw = new QLabel("sy_lfr_bw "); |
|
43 | sy_lfr_bw = new QLabel("sy_lfr_bw "); | |
44 | sy_lfr_sp0 = new QLabel("sy_lfr_sp0 "); |
|
44 | sy_lfr_sp0 = new QLabel("sy_lfr_sp0 "); | |
45 | sy_lfr_sp1 = new QLabel("sy_lfr_sp1 "); |
|
45 | sy_lfr_sp1 = new QLabel("sy_lfr_sp1 "); | |
46 | sy_lfr_r0 = new QLabel("sy_lfr_r0 "); |
|
46 | sy_lfr_r0 = new QLabel("sy_lfr_r0 "); | |
47 | sy_lfr_r1 = new QLabel("sy_lfr_r1 "); |
|
47 | sy_lfr_r1 = new QLabel("sy_lfr_r1 "); | |
48 |
|
48 | |||
49 | spinbox_sy_lfr_bw = new QSpinBox(); |
|
49 | spinbox_sy_lfr_bw = new QSpinBox(); | |
50 | spinbox_sy_lfr_sp0 = new QSpinBox(); |
|
50 | spinbox_sy_lfr_sp0 = new QSpinBox(); | |
51 | spinbox_sy_lfr_sp1 = new QSpinBox(); |
|
51 | spinbox_sy_lfr_sp1 = new QSpinBox(); | |
52 | spinbox_sy_lfr_r0 = new QSpinBox(); |
|
52 | spinbox_sy_lfr_r0 = new QSpinBox(); | |
53 | spinbox_sy_lfr_r1 = new QSpinBox(); |
|
53 | spinbox_sy_lfr_r1 = new QSpinBox(); | |
54 |
|
54 | |||
55 | spinbox_sy_lfr_bw->setRange(0, 1); |
|
55 | spinbox_sy_lfr_bw->setRange(0, 1); | |
56 | spinbox_sy_lfr_sp0->setRange(0, 1); |
|
56 | spinbox_sy_lfr_sp0->setRange(0, 1); | |
57 | spinbox_sy_lfr_sp1->setRange(0, 1); |
|
57 | spinbox_sy_lfr_sp1->setRange(0, 1); | |
58 | spinbox_sy_lfr_r0->setRange(0, 1); |
|
58 | spinbox_sy_lfr_r0->setRange(0, 1); | |
59 | spinbox_sy_lfr_r1->setRange(0, 1); |
|
59 | spinbox_sy_lfr_r1->setRange(0, 1); | |
60 |
|
60 | |||
61 | spinbox_sy_lfr_bw->setValue(1); |
|
61 | spinbox_sy_lfr_bw->setValue(1); | |
62 | spinbox_sy_lfr_sp0->setValue(0); |
|
62 | spinbox_sy_lfr_sp0->setValue(0); | |
63 | spinbox_sy_lfr_sp1->setValue(0); |
|
63 | spinbox_sy_lfr_sp1->setValue(0); | |
64 | spinbox_sy_lfr_r0->setValue(0); |
|
64 | spinbox_sy_lfr_r0->setValue(0); | |
65 | spinbox_sy_lfr_r1->setValue(0); |
|
65 | spinbox_sy_lfr_r1->setValue(0); | |
66 |
|
66 | |||
67 | layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1); |
|
67 | layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1); | |
68 | layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1); |
|
68 | layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1); | |
69 | layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1); |
|
69 | layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1); | |
70 | layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1); |
|
70 | layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1); | |
71 | layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1); |
|
71 | layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1); | |
72 |
|
72 | |||
73 | layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1); |
|
73 | layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1); | |
74 | layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1); |
|
74 | layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1); | |
75 | layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1); |
|
75 | layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1); | |
76 | layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1); |
|
76 | layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1); | |
77 | layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1); |
|
77 | layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1); | |
78 |
|
78 | |||
79 | layout_COMM->setColumnStretch(2, 1); |
|
79 | layout_COMM->setColumnStretch(2, 1); | |
80 | layout_COMM->setRowStretch(5, 1); |
|
80 | layout_COMM->setRowStretch(5, 1); | |
81 |
|
81 | |||
82 | groupbox_COMM->setLayout(layout_COMM); |
|
82 | groupbox_COMM->setLayout(layout_COMM); | |
83 | } |
|
83 | } | |
84 |
|
84 | |||
85 | void ParameterDump::buildNORM() |
|
85 | void ParameterDump::buildNORM() | |
86 | { |
|
86 | { | |
87 | groupbox_NORM = new QGroupBox(tr("NORMAL_PAR")); |
|
87 | groupbox_NORM = new QGroupBox(tr("NORMAL_PAR")); | |
88 | layout_NORM = new QGridLayout(); |
|
88 | layout_NORM = new QGridLayout(); | |
89 |
|
89 | |||
90 | sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l "); |
|
90 | sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l "); | |
91 | sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p "); |
|
91 | sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p "); | |
92 | sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p "); |
|
92 | sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p "); | |
93 | sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 "); |
|
93 | sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 "); | |
94 | sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 "); |
|
94 | sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 "); | |
95 |
|
95 | |||
96 | spinbox_sy_lfr_n_swf_l = new QSpinBox(); |
|
96 | spinbox_sy_lfr_n_swf_l = new QSpinBox(); | |
97 | spinbox_sy_lfr_n_swf_p = new QSpinBox(); |
|
97 | spinbox_sy_lfr_n_swf_p = new QSpinBox(); | |
98 | spinbox_sy_lfr_n_asm_p = new QSpinBox(); |
|
98 | spinbox_sy_lfr_n_asm_p = new QSpinBox(); | |
99 | spinbox_sy_lfr_n_bp_p0 = new QSpinBox(); |
|
99 | spinbox_sy_lfr_n_bp_p0 = new QSpinBox(); | |
100 | spinbox_sy_lfr_n_bp_p1 = new QSpinBox(); |
|
100 | spinbox_sy_lfr_n_bp_p1 = new QSpinBox(); | |
101 |
|
101 | |||
102 | spinbox_sy_lfr_n_swf_l->setRange(256, 65535); |
|
102 | spinbox_sy_lfr_n_swf_l->setRange(256, 65535); | |
103 | spinbox_sy_lfr_n_swf_p->setRange(16, 65535); |
|
103 | spinbox_sy_lfr_n_swf_p->setRange(16, 65535); | |
104 | spinbox_sy_lfr_n_asm_p->setRange(2, 65535); |
|
104 | spinbox_sy_lfr_n_asm_p->setRange(2, 65535); | |
105 | spinbox_sy_lfr_n_bp_p0->setRange(4, 255); |
|
105 | spinbox_sy_lfr_n_bp_p0->setRange(4, 255); | |
106 | spinbox_sy_lfr_n_bp_p1->setRange(20, 255); |
|
106 | spinbox_sy_lfr_n_bp_p1->setRange(20, 255); | |
107 |
|
107 | |||
108 | spinbox_sy_lfr_n_swf_l->setValue(2048); |
|
108 | spinbox_sy_lfr_n_swf_l->setValue(2048); | |
109 | spinbox_sy_lfr_n_swf_p->setValue(300); |
|
109 | spinbox_sy_lfr_n_swf_p->setValue(300); | |
110 | spinbox_sy_lfr_n_asm_p->setValue(3600); |
|
110 | spinbox_sy_lfr_n_asm_p->setValue(3600); | |
111 | spinbox_sy_lfr_n_bp_p0->setValue(4); |
|
111 | spinbox_sy_lfr_n_bp_p0->setValue(4); | |
112 | spinbox_sy_lfr_n_bp_p1->setValue(20); |
|
112 | spinbox_sy_lfr_n_bp_p1->setValue(20); | |
113 |
|
113 | |||
114 | layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1); |
|
114 | layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1); | |
115 | layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1); |
|
115 | layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1); | |
116 | layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1); |
|
116 | layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1); | |
117 | layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1); |
|
117 | layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1); | |
118 | layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1); |
|
118 | layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1); | |
119 |
|
119 | |||
120 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1); |
|
120 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1); | |
121 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1); |
|
121 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1); | |
122 | layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1); |
|
122 | layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1); | |
123 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1); |
|
123 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1); | |
124 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1); |
|
124 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1); | |
125 |
|
125 | |||
126 | layout_NORM->setColumnStretch(2, 1); |
|
126 | layout_NORM->setColumnStretch(2, 1); | |
127 | layout_NORM->setRowStretch(5, 1); |
|
127 | layout_NORM->setRowStretch(5, 1); | |
128 |
|
128 | |||
129 | groupbox_NORM->setLayout(layout_NORM); |
|
129 | groupbox_NORM->setLayout(layout_NORM); | |
130 | } |
|
130 | } | |
131 |
|
131 | |||
132 | void ParameterDump::buildBURST() |
|
132 | void ParameterDump::buildBURST() | |
133 | { |
|
133 | { | |
134 | groupbox_BURST = new QGroupBox(tr("BURST_PAR")); |
|
134 | groupbox_BURST = new QGroupBox(tr("BURST_PAR")); | |
135 | layout_BURST = new QGridLayout(); |
|
135 | layout_BURST = new QGridLayout(); | |
136 |
|
136 | |||
137 | sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 "); |
|
137 | sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 "); | |
138 | sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 "); |
|
138 | sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 "); | |
139 |
|
139 | |||
140 | spinbox_sy_lfr_b_bp_p0 = new QSpinBox(); |
|
140 | spinbox_sy_lfr_b_bp_p0 = new QSpinBox(); | |
141 | spinbox_sy_lfr_b_bp_p1 = new QSpinBox(); |
|
141 | spinbox_sy_lfr_b_bp_p1 = new QSpinBox(); | |
142 |
|
142 | |||
143 | spinbox_sy_lfr_b_bp_p0->setRange(1, 255); |
|
143 | spinbox_sy_lfr_b_bp_p0->setRange(1, 255); | |
144 | spinbox_sy_lfr_b_bp_p1->setRange(5, 255); |
|
144 | spinbox_sy_lfr_b_bp_p1->setRange(5, 255); | |
145 |
|
145 | |||
146 | layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1); |
|
146 | layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1); | |
147 | layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1); |
|
147 | layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1); | |
148 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1); |
|
148 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1); | |
149 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1); |
|
149 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1); | |
150 |
|
150 | |||
151 | layout_BURST->setColumnStretch(2, 1); |
|
151 | layout_BURST->setColumnStretch(2, 1); | |
152 | layout_BURST->setRowStretch(3, 1); |
|
152 | layout_BURST->setRowStretch(3, 1); | |
153 |
|
153 | |||
154 | groupbox_BURST->setLayout(layout_BURST); |
|
154 | groupbox_BURST->setLayout(layout_BURST); | |
155 | } |
|
155 | } | |
156 |
|
156 | |||
157 | void ParameterDump::buildSBM1() |
|
157 | void ParameterDump::buildSBM1() | |
158 | { |
|
158 | { | |
159 | groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR")); |
|
159 | groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR")); | |
160 | layout_SBM1 = new QGridLayout(); |
|
160 | layout_SBM1 = new QGridLayout(); | |
161 |
|
161 | |||
162 | sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 "); |
|
162 | sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 "); | |
163 | sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 "); |
|
163 | sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 "); | |
164 |
|
164 | |||
165 | spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox(); |
|
165 | spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox(); | |
166 | spinbox_sy_lfr_s1_bp_p1 = new QSpinBox(); |
|
166 | spinbox_sy_lfr_s1_bp_p1 = new QSpinBox(); | |
167 |
|
167 | |||
168 | spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256); |
|
168 | spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256); | |
169 | spinbox_sy_lfr_b_bp_p0->setValue(0.25); |
|
169 | spinbox_sy_lfr_b_bp_p0->setValue(0.25); | |
170 | spinbox_sy_lfr_s1_bp_p1->setRange(1, 255); |
|
170 | spinbox_sy_lfr_s1_bp_p1->setRange(1, 255); | |
171 | spinbox_sy_lfr_b_bp_p1->setValue(1); |
|
171 | spinbox_sy_lfr_b_bp_p1->setValue(1); | |
172 |
|
172 | |||
173 | layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1); |
|
173 | layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1); | |
174 | layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1); |
|
174 | layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1); | |
175 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1); |
|
175 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1); | |
176 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1); |
|
176 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1); | |
177 |
|
177 | |||
178 | layout_SBM1->setColumnStretch(2, 1); |
|
178 | layout_SBM1->setColumnStretch(2, 1); | |
179 | layout_SBM1->setRowStretch(3, 1); |
|
179 | layout_SBM1->setRowStretch(3, 1); | |
180 |
|
180 | |||
181 | groupbox_SBM1->setLayout(layout_SBM1); |
|
181 | groupbox_SBM1->setLayout(layout_SBM1); | |
182 | } |
|
182 | } | |
183 |
|
183 | |||
184 | void ParameterDump::buildSBM2() |
|
184 | void ParameterDump::buildSBM2() | |
185 | { |
|
185 | { | |
186 | groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR")); |
|
186 | groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR")); | |
187 | layout_SBM2 = new QGridLayout(); |
|
187 | layout_SBM2 = new QGridLayout(); | |
188 |
|
188 | |||
189 | sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 "); |
|
189 | sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 "); | |
190 | sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 "); |
|
190 | sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 "); | |
191 |
|
191 | |||
192 | spinbox_sy_lfr_s2_bp_p0 = new QSpinBox(); |
|
192 | spinbox_sy_lfr_s2_bp_p0 = new QSpinBox(); | |
193 | spinbox_sy_lfr_s2_bp_p1 = new QSpinBox(); |
|
193 | spinbox_sy_lfr_s2_bp_p1 = new QSpinBox(); | |
194 |
|
194 | |||
195 | spinbox_sy_lfr_s2_bp_p0->setRange(1, 255); |
|
195 | spinbox_sy_lfr_s2_bp_p0->setRange(1, 255); | |
196 | spinbox_sy_lfr_s2_bp_p1->setRange(5, 255); |
|
196 | spinbox_sy_lfr_s2_bp_p1->setRange(5, 255); | |
197 |
|
197 | |||
198 | layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1); |
|
198 | layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1); | |
199 | layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1); |
|
199 | layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1); | |
200 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1); |
|
200 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1); | |
201 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1); |
|
201 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1); | |
202 |
|
202 | |||
203 | layout_SBM2->setColumnStretch(2, 1); |
|
203 | layout_SBM2->setColumnStretch(2, 1); | |
204 | layout_SBM2->setRowStretch(3, 1); |
|
204 | layout_SBM2->setRowStretch(3, 1); | |
205 |
|
205 | |||
206 | groupbox_SBM2->setLayout(layout_SBM2); |
|
206 | groupbox_SBM2->setLayout(layout_SBM2); | |
207 | } |
|
207 | } | |
208 |
|
208 | |||
209 | void ParameterDump::buildActions() |
|
209 | void ParameterDump::buildActions() | |
210 | { |
|
210 | { | |
211 |
groupbox_ACTIONS = new QGroupBox(tr(" |
|
211 | groupbox_ACTIONS = new QGroupBox(tr("LOAD / DUMP")); | |
212 | layout_ACTIONS = new QGridLayout; |
|
212 | layout_ACTIONS = new QGridLayout; | |
213 |
|
213 | |||
214 | button_loadCommon = new QPushButton(tr("LOAD_COMM")); |
|
214 | button_loadCommon = new QPushButton(tr("LOAD_COMM")); | |
215 | button_loadNormal = new QPushButton(tr("LOAD_NORM")); |
|
215 | button_loadNormal = new QPushButton(tr("LOAD_NORM")); | |
216 | button_loadBurst = new QPushButton(tr("LOAD_BURST")); |
|
216 | button_loadBurst = new QPushButton(tr("LOAD_BURST")); | |
217 | button_loadSBM1 = new QPushButton(tr("LOAD_SBM1")); |
|
217 | button_loadSBM1 = new QPushButton(tr("LOAD_SBM1")); | |
218 | button_loadSBM2 = new QPushButton(tr("LOAD_SBM2")); |
|
218 | button_loadSBM2 = new QPushButton(tr("LOAD_SBM2")); | |
219 | button_parameterDump = new QPushButton(tr("DUMP_PAR")); |
|
219 | button_parameterDump = new QPushButton(tr("DUMP_PAR")); | |
220 |
|
220 | |||
221 | button_loadCommon->setEnabled(false); |
|
221 | button_loadCommon->setEnabled(false); | |
222 | button_loadNormal->setEnabled(false); |
|
222 | button_loadNormal->setEnabled(false); | |
223 | button_loadBurst->setEnabled(false); |
|
223 | button_loadBurst->setEnabled(false); | |
224 | button_loadSBM1->setEnabled(false); |
|
224 | button_loadSBM1->setEnabled(false); | |
225 | button_loadSBM2->setEnabled(false); |
|
225 | button_loadSBM2->setEnabled(false); | |
226 | button_parameterDump->setEnabled(false); |
|
226 | button_parameterDump->setEnabled(false); | |
227 |
|
227 | |||
228 | layout_ACTIONS->addWidget(button_loadCommon, 0, 0, 1, 1); |
|
228 | layout_ACTIONS->addWidget(button_loadCommon, 0, 0, 1, 1); | |
229 | layout_ACTIONS->addWidget(button_loadNormal, 0, 1, 1, 1); |
|
229 | layout_ACTIONS->addWidget(button_loadNormal, 0, 1, 1, 1); | |
230 | layout_ACTIONS->addWidget(button_loadBurst, 1, 0, 1, 1); |
|
230 | layout_ACTIONS->addWidget(button_loadBurst, 1, 0, 1, 1); | |
231 | layout_ACTIONS->addWidget(button_parameterDump, 1, 1, 1, 1); |
|
231 | layout_ACTIONS->addWidget(button_parameterDump, 1, 1, 1, 1); | |
232 | layout_ACTIONS->addWidget(button_loadSBM1, 2, 0, 1, 1); |
|
232 | layout_ACTIONS->addWidget(button_loadSBM1, 2, 0, 1, 1); | |
233 | layout_ACTIONS->addWidget(button_loadSBM2, 2, 1, 1, 1); |
|
233 | layout_ACTIONS->addWidget(button_loadSBM2, 2, 1, 1, 1); | |
234 |
|
234 | |||
235 | groupbox_ACTIONS->setLayout(layout_ACTIONS); |
|
235 | groupbox_ACTIONS->setLayout(layout_ACTIONS); | |
236 |
|
236 | |||
237 | connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump())); |
|
237 | connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump())); | |
238 | connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon())); |
|
238 | connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon())); | |
239 | connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal())); |
|
239 | connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal())); | |
240 | connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst())); |
|
240 | connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst())); | |
241 | connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1())); |
|
241 | connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1())); | |
242 | connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2())); |
|
242 | connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2())); | |
243 | } |
|
243 | } | |
244 |
|
244 | |||
245 | void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead) |
|
245 | void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead) | |
246 | { |
|
246 | { | |
247 |
|
247 | |||
248 | Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket; |
|
248 | Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket; | |
249 |
|
249 | |||
250 | parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value; |
|
250 | parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value; | |
251 |
|
251 | |||
252 | // COMMON |
|
252 | // COMMON | |
253 | spinbox_sy_lfr_bw->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 ); |
|
253 | spinbox_sy_lfr_bw->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 ); | |
254 | spinbox_sy_lfr_sp0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 ); |
|
254 | spinbox_sy_lfr_sp0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 ); | |
255 | spinbox_sy_lfr_sp1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 ); |
|
255 | spinbox_sy_lfr_sp1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 ); | |
256 | spinbox_sy_lfr_r0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 ); |
|
256 | spinbox_sy_lfr_r0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 ); | |
257 | spinbox_sy_lfr_r1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) ); |
|
257 | spinbox_sy_lfr_r1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) ); | |
258 |
|
258 | |||
259 | // NORMAL |
|
259 | // NORMAL | |
260 | spinbox_sy_lfr_n_swf_l->setValue(parameterPacket->sy_lfr_n_swf_l[0] * 256 |
|
260 | spinbox_sy_lfr_n_swf_l->setValue(parameterPacket->sy_lfr_n_swf_l[0] * 256 | |
261 | + parameterPacket->sy_lfr_n_swf_l[1]); |
|
261 | + parameterPacket->sy_lfr_n_swf_l[1]); | |
262 | spinbox_sy_lfr_n_swf_p->setValue(parameterPacket->sy_lfr_n_swf_p[0] * 256 |
|
262 | spinbox_sy_lfr_n_swf_p->setValue(parameterPacket->sy_lfr_n_swf_p[0] * 256 | |
263 | + parameterPacket->sy_lfr_n_swf_p[1]); |
|
263 | + parameterPacket->sy_lfr_n_swf_p[1]); | |
264 | spinbox_sy_lfr_n_asm_p->setValue(parameterPacket->sy_lfr_n_asm_p[0] * 256 |
|
264 | spinbox_sy_lfr_n_asm_p->setValue(parameterPacket->sy_lfr_n_asm_p[0] * 256 | |
265 | + parameterPacket->sy_lfr_n_asm_p[1]); |
|
265 | + parameterPacket->sy_lfr_n_asm_p[1]); | |
266 | spinbox_sy_lfr_n_bp_p0->setValue(parameterPacket->sy_lfr_n_bp_p0); |
|
266 | spinbox_sy_lfr_n_bp_p0->setValue(parameterPacket->sy_lfr_n_bp_p0); | |
267 | spinbox_sy_lfr_n_bp_p1->setValue(parameterPacket->sy_lfr_n_bp_p1); |
|
267 | spinbox_sy_lfr_n_bp_p1->setValue(parameterPacket->sy_lfr_n_bp_p1); | |
268 |
|
268 | |||
269 | // BURST |
|
269 | // BURST | |
270 | spinbox_sy_lfr_b_bp_p0->setValue(parameterPacket->sy_lfr_b_bp_p0); |
|
270 | spinbox_sy_lfr_b_bp_p0->setValue(parameterPacket->sy_lfr_b_bp_p0); | |
271 | spinbox_sy_lfr_b_bp_p1->setValue(parameterPacket->sy_lfr_b_bp_p1); |
|
271 | spinbox_sy_lfr_b_bp_p1->setValue(parameterPacket->sy_lfr_b_bp_p1); | |
272 |
|
272 | |||
273 | // SBM1 |
|
273 | // SBM1 | |
274 | spinbox_sy_lfr_s1_bp_p0->setValue(parameterPacket->sy_lfr_s1_bp_p0); |
|
274 | spinbox_sy_lfr_s1_bp_p0->setValue(parameterPacket->sy_lfr_s1_bp_p0); | |
275 | spinbox_sy_lfr_s1_bp_p1->setValue(parameterPacket->sy_lfr_s1_bp_p1); |
|
275 | spinbox_sy_lfr_s1_bp_p1->setValue(parameterPacket->sy_lfr_s1_bp_p1); | |
276 |
|
276 | |||
277 | // SBM2 |
|
277 | // SBM2 | |
278 | spinbox_sy_lfr_s2_bp_p0->setValue(parameterPacket->sy_lfr_s2_bp_p0); |
|
278 | spinbox_sy_lfr_s2_bp_p0->setValue(parameterPacket->sy_lfr_s2_bp_p0); | |
279 | spinbox_sy_lfr_s2_bp_p1->setValue(parameterPacket->sy_lfr_s2_bp_p1); |
|
279 | spinbox_sy_lfr_s2_bp_p1->setValue(parameterPacket->sy_lfr_s2_bp_p1); | |
280 | } |
|
280 | } | |
281 |
|
281 | |||
282 | void ParameterDump::sendParameterDump() |
|
282 | void ParameterDump::sendParameterDump() | |
283 | { |
|
283 | { | |
284 | Packet_TC_LFR_DUMP_PAR_t packet; |
|
284 | Packet_TC_LFR_DUMP_PAR_t packet; | |
285 | unsigned char crcAsTwoBytes[2]; |
|
285 | unsigned char crcAsTwoBytes[2]; | |
286 |
|
286 | |||
287 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
287 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
288 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
288 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
289 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
289 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
290 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
290 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
291 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR >> 8); |
|
291 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR >> 8); | |
292 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR ); |
|
292 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR ); | |
293 |
|
293 | |||
294 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; |
|
294 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |
295 | packet.serviceType = TC_TYPE_DEFAULT; |
|
295 | packet.serviceType = TC_TYPE_DEFAULT; | |
296 | packet.serviceSubType = TC_SUBTYPE_DUMP; |
|
296 | packet.serviceSubType = TC_SUBTYPE_DUMP; | |
297 | packet.sourceID = SID_DEFAULT; |
|
297 | packet.sourceID = SID_DEFAULT; | |
298 |
|
298 | |||
299 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
299 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
300 | PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
300 | PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
301 | packet.crc[0] = crcAsTwoBytes[0]; |
|
301 | packet.crc[0] = crcAsTwoBytes[0]; | |
302 | packet.crc[1] = crcAsTwoBytes[1]; |
|
302 | packet.crc[1] = crcAsTwoBytes[1]; | |
303 |
|
303 | |||
304 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
304 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
305 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
305 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
306 | } |
|
306 | } | |
307 |
|
307 | |||
308 | void ParameterDump::sendLoadCommon() |
|
308 | void ParameterDump::sendLoadCommon() | |
309 | { |
|
309 | { | |
310 | Packet_TC_LFR_LOAD_COMMON_PAR_t packet; |
|
310 | Packet_TC_LFR_LOAD_COMMON_PAR_t packet; | |
311 | unsigned char crcAsTwoBytes[2]; |
|
311 | unsigned char crcAsTwoBytes[2]; | |
312 |
|
312 | |||
313 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
313 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
314 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
314 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
315 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
315 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
316 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
316 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
317 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR >> 8); |
|
317 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR >> 8); | |
318 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR ); |
|
318 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR ); | |
319 |
|
319 | |||
320 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; |
|
320 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; | |
321 | packet.serviceType = TC_TYPE_DEFAULT; |
|
321 | packet.serviceType = TC_TYPE_DEFAULT; | |
322 | packet.serviceSubType = TC_SUBTYPE_LOAD_COMMON_PAR; |
|
322 | packet.serviceSubType = TC_SUBTYPE_LOAD_COMMON_PAR; | |
323 | packet.sourceID = SID_DEFAULT; |
|
323 | packet.sourceID = SID_DEFAULT; | |
324 | packet.spare = TC_LFR_LOAD_COMMON_PAR_SPARE; |
|
324 | packet.spare = TC_LFR_LOAD_COMMON_PAR_SPARE; | |
325 | packet.bw_sp0_sp1_r0_r1 = (spinbox_sy_lfr_bw->value() << 4) |
|
325 | packet.bw_sp0_sp1_r0_r1 = (spinbox_sy_lfr_bw->value() << 4) | |
326 | + (spinbox_sy_lfr_sp0->value() << 3) |
|
326 | + (spinbox_sy_lfr_sp0->value() << 3) | |
327 | + (spinbox_sy_lfr_sp1->value() << 2) |
|
327 | + (spinbox_sy_lfr_sp1->value() << 2) | |
328 | + (spinbox_sy_lfr_r0->value() << 1) |
|
328 | + (spinbox_sy_lfr_r0->value() << 1) | |
329 | + (spinbox_sy_lfr_r1->value() ); |
|
329 | + (spinbox_sy_lfr_r1->value() ); | |
330 |
|
330 | |||
331 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
331 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
332 | PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
332 | PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
333 | packet.crc[0] = crcAsTwoBytes[0]; |
|
333 | packet.crc[0] = crcAsTwoBytes[0]; | |
334 | packet.crc[1] = crcAsTwoBytes[1]; |
|
334 | packet.crc[1] = crcAsTwoBytes[1]; | |
335 |
|
335 | |||
336 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
336 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
337 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
337 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
338 | } |
|
338 | } | |
339 |
|
339 | |||
340 | void ParameterDump::sendLoadNormal() |
|
340 | void ParameterDump::sendLoadNormal() | |
341 | { |
|
341 | { | |
342 | Packet_TC_LFR_LOAD_NORMAL_PAR_t packet; |
|
342 | Packet_TC_LFR_LOAD_NORMAL_PAR_t packet; | |
343 | unsigned char crcAsTwoBytes[2]; |
|
343 | unsigned char crcAsTwoBytes[2]; | |
344 |
|
344 | |||
345 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
345 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
346 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
346 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
347 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
347 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
348 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
348 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
349 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR >> 8); |
|
349 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR >> 8); | |
350 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR ); |
|
350 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR ); | |
351 |
|
351 | |||
352 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; |
|
352 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; | |
353 | packet.serviceType = TC_TYPE_DEFAULT; |
|
353 | packet.serviceType = TC_TYPE_DEFAULT; | |
354 | packet.serviceSubType = TC_SUBTYPE_LOAD_NORMAL_PAR; |
|
354 | packet.serviceSubType = TC_SUBTYPE_LOAD_NORMAL_PAR; | |
355 | packet.sourceID = SID_DEFAULT; |
|
355 | packet.sourceID = SID_DEFAULT; | |
356 | packet.sy_lfr_n_swf_l[0] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() >> 8); |
|
356 | packet.sy_lfr_n_swf_l[0] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() >> 8); | |
357 | packet.sy_lfr_n_swf_l[1] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() ); |
|
357 | packet.sy_lfr_n_swf_l[1] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() ); | |
358 | packet.sy_lfr_n_swf_p[0] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() >> 8); |
|
358 | packet.sy_lfr_n_swf_p[0] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() >> 8); | |
359 | packet.sy_lfr_n_swf_p[1] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() ); |
|
359 | packet.sy_lfr_n_swf_p[1] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() ); | |
360 | packet.sy_lfr_n_asm_p[0] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() >> 8); |
|
360 | packet.sy_lfr_n_asm_p[0] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() >> 8); | |
361 | packet.sy_lfr_n_asm_p[1] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() ); |
|
361 | packet.sy_lfr_n_asm_p[1] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() ); | |
362 | packet.sy_lfr_n_bp_p0 = (unsigned char) (spinbox_sy_lfr_n_bp_p0->value() ); |
|
362 | packet.sy_lfr_n_bp_p0 = (unsigned char) (spinbox_sy_lfr_n_bp_p0->value() ); | |
363 | packet.sy_lfr_n_bp_p1 = (unsigned char) (spinbox_sy_lfr_n_bp_p1->value() ); |
|
363 | packet.sy_lfr_n_bp_p1 = (unsigned char) (spinbox_sy_lfr_n_bp_p1->value() ); | |
364 |
|
364 | |||
365 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
365 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
366 | PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
366 | PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
367 | packet.crc[0] = crcAsTwoBytes[0]; |
|
367 | packet.crc[0] = crcAsTwoBytes[0]; | |
368 | packet.crc[1] = crcAsTwoBytes[1]; |
|
368 | packet.crc[1] = crcAsTwoBytes[1]; | |
369 |
|
369 | |||
370 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
370 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
371 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
371 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
372 | } |
|
372 | } | |
373 |
|
373 | |||
374 | void ParameterDump::sendLoadBurst() |
|
374 | void ParameterDump::sendLoadBurst() | |
375 | { |
|
375 | { | |
376 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; |
|
376 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; | |
377 | unsigned char crcAsTwoBytes[2]; |
|
377 | unsigned char crcAsTwoBytes[2]; | |
378 |
|
378 | |||
379 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
379 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
380 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
380 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
381 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
381 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
382 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
382 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
383 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR >> 8); |
|
383 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR >> 8); | |
384 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR ); |
|
384 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR ); | |
385 |
|
385 | |||
386 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; |
|
386 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; | |
387 | packet.serviceType = TC_TYPE_DEFAULT; |
|
387 | packet.serviceType = TC_TYPE_DEFAULT; | |
388 | packet.serviceSubType = TC_SUBTYPE_LOAD_BURST_PAR; |
|
388 | packet.serviceSubType = TC_SUBTYPE_LOAD_BURST_PAR; | |
389 | packet.sourceID = SID_DEFAULT; |
|
389 | packet.sourceID = SID_DEFAULT; | |
390 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_b_bp_p0->value() ); |
|
390 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_b_bp_p0->value() ); | |
391 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_b_bp_p1->value() ); |
|
391 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_b_bp_p1->value() ); | |
392 |
|
392 | |||
393 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
393 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
394 | PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
394 | PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
395 | packet.crc[0] = crcAsTwoBytes[0]; |
|
395 | packet.crc[0] = crcAsTwoBytes[0]; | |
396 | packet.crc[1] = crcAsTwoBytes[1]; |
|
396 | packet.crc[1] = crcAsTwoBytes[1]; | |
397 |
|
397 | |||
398 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
398 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
399 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
399 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
400 | } |
|
400 | } | |
401 |
|
401 | |||
402 | void ParameterDump::sendLoadSBM1() |
|
402 | void ParameterDump::sendLoadSBM1() | |
403 | { |
|
403 | { | |
404 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; |
|
404 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; | |
405 | unsigned char crcAsTwoBytes[2]; |
|
405 | unsigned char crcAsTwoBytes[2]; | |
406 |
|
406 | |||
407 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
407 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
408 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
408 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
409 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
409 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
410 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
410 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
411 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR >> 8); |
|
411 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR >> 8); | |
412 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR ); |
|
412 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR ); | |
413 |
|
413 | |||
414 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; |
|
414 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; | |
415 | packet.serviceType = TC_TYPE_DEFAULT; |
|
415 | packet.serviceType = TC_TYPE_DEFAULT; | |
416 | packet.serviceSubType = TC_SUBTYPE_LOAD_SBM1_PAR; |
|
416 | packet.serviceSubType = TC_SUBTYPE_LOAD_SBM1_PAR; | |
417 | packet.sourceID = SID_DEFAULT; |
|
417 | packet.sourceID = SID_DEFAULT; | |
418 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s1_bp_p0->value() ); |
|
418 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s1_bp_p0->value() ); | |
419 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s1_bp_p1->value() ); |
|
419 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s1_bp_p1->value() ); | |
420 |
|
420 | |||
421 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
421 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
422 | PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
422 | PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
423 | packet.crc[0] = crcAsTwoBytes[0]; |
|
423 | packet.crc[0] = crcAsTwoBytes[0]; | |
424 | packet.crc[1] = crcAsTwoBytes[1]; |
|
424 | packet.crc[1] = crcAsTwoBytes[1]; | |
425 |
|
425 | |||
426 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
426 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
427 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
427 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
428 | } |
|
428 | } | |
429 |
|
429 | |||
430 | void ParameterDump::sendLoadSBM2() |
|
430 | void ParameterDump::sendLoadSBM2() | |
431 | { |
|
431 | { | |
432 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; |
|
432 | Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet; | |
433 | unsigned char crcAsTwoBytes[2]; |
|
433 | unsigned char crcAsTwoBytes[2]; | |
434 |
|
434 | |||
435 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
435 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
436 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
436 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
437 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
437 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
438 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
438 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
439 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR >> 8); |
|
439 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR >> 8); | |
440 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR ); |
|
440 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR ); | |
441 |
|
441 | |||
442 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; |
|
442 | packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0; | |
443 | packet.serviceType = TC_TYPE_DEFAULT; |
|
443 | packet.serviceType = TC_TYPE_DEFAULT; | |
444 | packet.serviceSubType = TC_SUBTYPE_LOAD_SBM2_PAR; |
|
444 | packet.serviceSubType = TC_SUBTYPE_LOAD_SBM2_PAR; | |
445 | packet.sourceID = SID_DEFAULT; |
|
445 | packet.sourceID = SID_DEFAULT; | |
446 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s2_bp_p0->value() ); |
|
446 | packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s2_bp_p0->value() ); | |
447 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s2_bp_p1->value() ); |
|
447 | packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s2_bp_p1->value() ); | |
448 |
|
448 | |||
449 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
449 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
450 | PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
450 | PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
451 | packet.crc[0] = crcAsTwoBytes[0]; |
|
451 | packet.crc[0] = crcAsTwoBytes[0]; | |
452 | packet.crc[1] = crcAsTwoBytes[1]; |
|
452 | packet.crc[1] = crcAsTwoBytes[1]; | |
453 |
|
453 | |||
454 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET, |
|
454 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET, | |
455 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
455 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
456 | } |
|
456 | } | |
457 |
|
457 | |||
458 | void ParameterDump::actionsSetEnabled(bool state) |
|
458 | void ParameterDump::actionsSetEnabled(bool state) | |
459 | { |
|
459 | { | |
460 | button_parameterDump->setEnabled(state); |
|
460 | button_parameterDump->setEnabled(state); | |
461 | button_loadCommon->setEnabled(state); |
|
461 | button_loadCommon->setEnabled(state); | |
462 | button_loadNormal->setEnabled(state); |
|
462 | button_loadNormal->setEnabled(state); | |
463 | button_loadBurst->setEnabled(state); |
|
463 | button_loadBurst->setEnabled(state); | |
464 | button_loadSBM1->setEnabled(state); |
|
464 | button_loadSBM1->setEnabled(state); | |
465 | button_loadSBM2->setEnabled(state); |
|
465 | button_loadSBM2->setEnabled(state); | |
466 | } |
|
466 | } | |
467 |
|
467 | |||
468 | void ParameterDump::GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData) |
|
468 | void ParameterDump::GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData) | |
469 | { |
|
469 | { | |
470 | packetToSend->GetCRCAsTwoBytes( data, crcAsTwoBytes, sizeOfData ); |
|
470 | packetToSend->GetCRCAsTwoBytes( data, crcAsTwoBytes, sizeOfData ); | |
471 | } |
|
471 | } |
@@ -1,38 +1,39 | |||||
1 | #------------------------------------------------- |
|
1 | #------------------------------------------------- | |
2 | # |
|
2 | # | |
3 | # Project created by QtCreator 2013-07-29T11:18:13 |
|
3 | # Project created by QtCreator 2013-07-29T11:18:13 | |
4 | # |
|
4 | # | |
5 | #------------------------------------------------- |
|
5 | #------------------------------------------------- | |
6 |
|
6 | |||
7 | TARGET = parameterdump |
|
7 | TARGET = parameterdump | |
8 | TEMPLATE = lib |
|
8 | TEMPLATE = lib | |
9 |
|
9 | |||
10 | INCLUDEPATH += \ |
|
10 | INCLUDEPATH += \ | |
11 | ../../DEV_PLE/header \ |
|
11 | ../../DEV_PLE/header \ | |
12 | ../rmapplugin \ |
|
12 | ../rmapplugin \ | |
13 | $${PWD} |
|
13 | $${PWD} | |
14 |
|
14 | |||
15 | DEFINES += PARAMETERDUMP_LIBRARY |
|
15 | DEFINES += PARAMETERDUMP_LIBRARY | |
16 |
|
16 | |||
17 | SOURCES += parameterdump.cpp \ |
|
17 | SOURCES += parameterdump.cpp \ | |
18 | tcpackettosend.cpp \ |
|
18 | tcpackettosend.cpp \ | |
19 | ../rmapplugin/tmpackettoread.cpp |
|
19 | ../rmapplugin/tmpackettoread.cpp | |
20 |
|
20 | |||
21 | HEADERS += parameterdump.h \ |
|
21 | HEADERS += parameterdump.h \ | |
22 | parameterdump_global.h \ |
|
22 | parameterdump_global.h \ | |
23 | tcpackettosend.h \ |
|
23 | tcpackettosend.h \ | |
24 | ../../DEV_PLE/header/ccsds_types.h \ |
|
24 | ../../DEV_PLE/header/ccsds_types.h \ | |
25 | ../../DEV_PLE/header/TC_types.h \ |
|
25 | ../../DEV_PLE/header/TC_types.h \ | |
26 | ../rmapplugin/tmpackettoread.h |
|
26 | ../rmapplugin/tmpackettoread.h | |
27 |
|
27 | |||
28 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/parameterdump |
|
28 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/parameterdump | |
29 | header.files = \ |
|
29 | header.files = \ | |
30 | parameterdump.h \ |
|
30 | parameterdump.h \ | |
31 | parameterdump_global.h |
|
31 | parameterdump_global.h \ | |
|
32 | tcpackettosend.h | |||
32 |
|
33 | |||
33 | target.path = $$[QT_INSTALL_LIBS] |
|
34 | target.path = $$[QT_INSTALL_LIBS] | |
34 | isEmpty(target.path) { |
|
35 | isEmpty(target.path) { | |
35 | target.path = $(QTDIR)/lib |
|
36 | target.path = $(QTDIR)/lib | |
36 | } |
|
37 | } | |
37 |
|
38 | |||
38 | INSTALLS += header target |
|
39 | INSTALLS += header target |
@@ -1,27 +1,28 | |||||
1 | #ifndef TCPACKETTOSEND_H |
|
1 | #ifndef TCPACKETTOSEND_H | |
2 | #define TCPACKETTOSEND_H |
|
2 | #define TCPACKETTOSEND_H | |
3 |
|
3 | |||
4 | #include <QObject> |
|
4 | #include <QObject> | |
5 |
|
5 | |||
|
6 | #include "parameterdump_global.h" | |||
6 | #include <TC_types.h> |
|
7 | #include <TC_types.h> | |
7 |
|
8 | |||
8 | class TCPacketToSend : public QObject |
|
9 | class PARAMETERDUMPSHARED_EXPORT TCPacketToSend : public QObject | |
9 | { |
|
10 | { | |
10 | Q_OBJECT |
|
11 | Q_OBJECT | |
11 | public: |
|
12 | public: | |
12 | explicit TCPacketToSend(QObject *parent = 0); |
|
13 | explicit TCPacketToSend(QObject *parent = 0); | |
13 |
|
14 | |||
14 | unsigned char calculateDataCRC(char *data, int nbBytes); |
|
15 | unsigned char calculateDataCRC(char *data, int nbBytes); | |
15 | void initLookUpTableForCRC( void ); |
|
16 | void initLookUpTableForCRC( void ); | |
16 |
|
17 | |||
17 | void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData); |
|
18 | void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData); | |
18 | unsigned int Crc_opt( unsigned char D, unsigned int Chk); |
|
19 | unsigned int Crc_opt( unsigned char D, unsigned int Chk); | |
19 | unsigned int lookUpTableForCRC[256]; |
|
20 | unsigned int lookUpTableForCRC[256]; | |
20 |
|
21 | |||
21 | signals: |
|
22 | signals: | |
22 |
|
23 | |||
23 | public slots: |
|
24 | public slots: | |
24 |
|
25 | |||
25 | }; |
|
26 | }; | |
26 |
|
27 | |||
27 | #endif // TCPACKETTOSEND_H |
|
28 | #endif // TCPACKETTOSEND_H |
@@ -1,555 +1,561 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: librmapplugin.so.1.0.0 |
|
2 | # Makefile for building: librmapplugin.so.1.0.0 | |
3 |
# Generated by qmake (2.01a) (Qt 4.8. |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.5) on: Fri Sep 20 14:37:48 2013 | |
4 | # Project: rmapplugin.pro |
|
4 | # Project: rmapplugin.pro | |
5 | # Template: lib |
|
5 | # Template: lib | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
10 |
|
10 | |||
11 | CC = gcc |
|
11 | CC = gcc | |
12 | CXX = g++ |
|
12 | CXX = g++ | |
13 |
DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0. |
|
13 | DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.2\"" -DUNIX -DUNIXTRANSLATIONPATH -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED | |
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) |
|
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) | |
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES) |
|
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES) | |
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../../DEV_PLE/header -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../../DEV_PLE/header -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I/usr/include/lppmon/paulcommon -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
17 | LINK = g++ |
|
17 | LINK = g++ | |
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 |
|
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lpaulcommon -lwfdisplay -lqwt5-qt4 -lparameterdump -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = |
|
29 | STRIP = | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = obj/ |
|
42 | OBJECTS_DIR = obj/ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = rmapplugin.cpp \ |
|
46 | SOURCES = rmapplugin.cpp \ | |
47 | rmappluginui.cpp \ |
|
47 | rmappluginui.cpp \ | |
48 | rmapoperations.cpp \ |
|
48 | rmapoperations.cpp \ | |
49 | ccsds.cpp \ |
|
49 | ccsds.cpp \ | |
50 | ../common_PLE/qipdialogbox.cpp \ |
|
50 | ../common_PLE/qipdialogbox.cpp \ | |
51 | ../common_PLE/gresbstatusenquiry.cpp \ |
|
51 | ../common_PLE/gresbstatusenquiry.cpp \ | |
52 | rmappluginpythonwrapper.cpp \ |
|
52 | rmappluginpythonwrapper.cpp \ | |
53 | stardundee.cpp \ |
|
53 | stardundee.cpp \ | |
54 | gresb.cpp \ |
|
54 | gresb.cpp \ | |
55 | tcpackettosend.cpp \ |
|
55 | tcpackettosend.cpp \ | |
56 | tmpackettoread.cpp \ |
|
56 | tmpackettoread.cpp \ | |
57 | tmstatistics.cpp \ |
|
57 | tmstatistics.cpp \ | |
58 | wfpacket.cpp \ |
|
58 | wfpacket.cpp \ | |
59 | tmechobridge.cpp \ |
|
59 | tmechobridge.cpp \ | |
60 | entermode.cpp \ |
|
60 | entermode.cpp \ | |
61 | lfractions.cpp \ |
|
61 | lfractions.cpp \ | |
62 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \ |
|
62 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \ | |
63 | moc/moc_rmapplugin.cpp \ |
|
63 | moc/moc_rmapplugin.cpp \ | |
64 | moc/moc_qipdialogbox.cpp \ |
|
64 | moc/moc_qipdialogbox.cpp \ | |
65 | moc/moc_gresbstatusenquiry.cpp \ |
|
65 | moc/moc_gresbstatusenquiry.cpp \ | |
66 | moc/moc_rmappluginpythonwrapper.cpp \ |
|
66 | moc/moc_rmappluginpythonwrapper.cpp \ | |
67 | moc/moc_stardundee.cpp \ |
|
67 | moc/moc_stardundee.cpp \ | |
68 | moc/moc_gresb.cpp \ |
|
68 | moc/moc_gresb.cpp \ | |
69 | moc/moc_tcpackettosend.cpp \ |
|
69 | moc/moc_tcpackettosend.cpp \ | |
70 | moc/moc_tmpackettoread.cpp \ |
|
70 | moc/moc_tmpackettoread.cpp \ | |
71 | moc/moc_tmstatistics.cpp \ |
|
71 | moc/moc_tmstatistics.cpp \ | |
72 | moc/moc_wfpacket.cpp \ |
|
72 | moc/moc_wfpacket.cpp \ | |
73 | moc/moc_tmechobridge.cpp \ |
|
73 | moc/moc_tmechobridge.cpp \ | |
74 | moc/moc_entermode.cpp \ |
|
74 | moc/moc_entermode.cpp \ | |
75 | moc/moc_lfractions.cpp \ |
|
75 | moc/moc_lfractions.cpp \ | |
76 | moc/moc_genericPySysdriver.cpp \ |
|
76 | moc/moc_genericPySysdriver.cpp \ | |
77 | moc/moc_lppmonplugin.cpp |
|
77 | moc/moc_lppmonplugin.cpp | |
78 | OBJECTS = obj/rmapplugin.o \ |
|
78 | OBJECTS = obj/rmapplugin.o \ | |
79 | obj/rmappluginui.o \ |
|
79 | obj/rmappluginui.o \ | |
80 | obj/rmapoperations.o \ |
|
80 | obj/rmapoperations.o \ | |
81 | obj/ccsds.o \ |
|
81 | obj/ccsds.o \ | |
82 | obj/qipdialogbox.o \ |
|
82 | obj/qipdialogbox.o \ | |
83 | obj/gresbstatusenquiry.o \ |
|
83 | obj/gresbstatusenquiry.o \ | |
84 | obj/rmappluginpythonwrapper.o \ |
|
84 | obj/rmappluginpythonwrapper.o \ | |
85 | obj/stardundee.o \ |
|
85 | obj/stardundee.o \ | |
86 | obj/gresb.o \ |
|
86 | obj/gresb.o \ | |
87 | obj/tcpackettosend.o \ |
|
87 | obj/tcpackettosend.o \ | |
88 | obj/tmpackettoread.o \ |
|
88 | obj/tmpackettoread.o \ | |
89 | obj/tmstatistics.o \ |
|
89 | obj/tmstatistics.o \ | |
90 | obj/wfpacket.o \ |
|
90 | obj/wfpacket.o \ | |
91 | obj/tmechobridge.o \ |
|
91 | obj/tmechobridge.o \ | |
92 | obj/entermode.o \ |
|
92 | obj/entermode.o \ | |
93 | obj/lfractions.o \ |
|
93 | obj/lfractions.o \ | |
94 | obj/lppmonplugininterface.o \ |
|
94 | obj/lppmonplugininterface.o \ | |
95 | obj/moc_rmappluginui.o \ |
|
95 | obj/moc_rmappluginui.o \ | |
96 | obj/moc_rmapplugin.o \ |
|
96 | obj/moc_rmapplugin.o \ | |
97 | obj/moc_qipdialogbox.o \ |
|
97 | obj/moc_qipdialogbox.o \ | |
98 | obj/moc_gresbstatusenquiry.o \ |
|
98 | obj/moc_gresbstatusenquiry.o \ | |
99 | obj/moc_rmappluginpythonwrapper.o \ |
|
99 | obj/moc_rmappluginpythonwrapper.o \ | |
100 | obj/moc_stardundee.o \ |
|
100 | obj/moc_stardundee.o \ | |
101 | obj/moc_gresb.o \ |
|
101 | obj/moc_gresb.o \ | |
102 | obj/moc_tcpackettosend.o \ |
|
102 | obj/moc_tcpackettosend.o \ | |
103 | obj/moc_tmpackettoread.o \ |
|
103 | obj/moc_tmpackettoread.o \ | |
104 | obj/moc_tmstatistics.o \ |
|
104 | obj/moc_tmstatistics.o \ | |
105 | obj/moc_wfpacket.o \ |
|
105 | obj/moc_wfpacket.o \ | |
106 | obj/moc_tmechobridge.o \ |
|
106 | obj/moc_tmechobridge.o \ | |
107 | obj/moc_entermode.o \ |
|
107 | obj/moc_entermode.o \ | |
108 | obj/moc_lfractions.o \ |
|
108 | obj/moc_lfractions.o \ | |
109 | obj/moc_genericPySysdriver.o \ |
|
109 | obj/moc_genericPySysdriver.o \ | |
110 | obj/moc_lppmonplugin.o |
|
110 | obj/moc_lppmonplugin.o | |
111 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
111 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
112 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
112 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
113 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
113 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
114 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
114 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
115 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
115 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
116 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
116 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
117 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
117 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
118 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
118 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
119 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
119 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
120 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
120 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
121 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
121 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
122 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
122 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
123 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
123 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
124 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
124 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
125 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
125 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ | |
126 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
126 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ | |
|
127 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |||
|
128 | /usr/lib64/qt4/mkspecs/features/dll.prf \ | |||
127 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
129 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
128 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
130 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
129 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
131 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
130 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
132 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
131 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
133 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
132 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
134 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
133 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
135 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
134 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
136 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
135 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
137 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
136 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
138 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
137 | rmapplugin.pro |
|
139 | rmapplugin.pro | |
138 | QMAKE_TARGET = rmapplugin |
|
140 | QMAKE_TARGET = rmapplugin | |
139 | DESTDIR = bin/ |
|
141 | DESTDIR = bin/ | |
140 | TARGET = librmapplugin.so.1.0.0 |
|
142 | TARGET = librmapplugin.so.1.0.0 | |
141 | TARGETA = bin/librmapplugin.a |
|
143 | TARGETA = bin/librmapplugin.a | |
142 | TARGETD = librmapplugin.so.1.0.0 |
|
144 | TARGETD = librmapplugin.so.1.0.0 | |
143 | TARGET0 = librmapplugin.so |
|
145 | TARGET0 = librmapplugin.so | |
144 | TARGET1 = librmapplugin.so.1 |
|
146 | TARGET1 = librmapplugin.so.1 | |
145 | TARGET2 = librmapplugin.so.1.0 |
|
147 | TARGET2 = librmapplugin.so.1.0 | |
146 |
|
148 | |||
147 | first: all |
|
149 | first: all | |
148 | ####### Implicit rules |
|
150 | ####### Implicit rules | |
149 |
|
151 | |||
150 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
152 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
151 |
|
153 | |||
152 | .cpp.o: |
|
154 | .cpp.o: | |
153 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
155 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
154 |
|
156 | |||
155 | .cc.o: |
|
157 | .cc.o: | |
156 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
158 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
157 |
|
159 | |||
158 | .cxx.o: |
|
160 | .cxx.o: | |
159 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
161 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
160 |
|
162 | |||
161 | .C.o: |
|
163 | .C.o: | |
162 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
164 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
163 |
|
165 | |||
164 | .c.o: |
|
166 | .c.o: | |
165 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
167 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
166 |
|
168 | |||
167 | ####### Build rules |
|
169 | ####### Build rules | |
168 |
|
170 | |||
169 | all: Makefile bin/$(TARGET) |
|
171 | all: Makefile bin/$(TARGET) | |
170 |
|
172 | |||
171 | bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) |
|
173 | bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) | |
172 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ |
|
174 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ | |
173 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) |
|
175 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) | |
174 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) |
|
176 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) | |
175 | -ln -s $(TARGET) $(TARGET0) |
|
177 | -ln -s $(TARGET) $(TARGET0) | |
176 | -ln -s $(TARGET) $(TARGET1) |
|
178 | -ln -s $(TARGET) $(TARGET1) | |
177 | -ln -s $(TARGET) $(TARGET2) |
|
179 | -ln -s $(TARGET) $(TARGET2) | |
178 | -$(DEL_FILE) bin/$(TARGET) |
|
180 | -$(DEL_FILE) bin/$(TARGET) | |
179 | -$(DEL_FILE) bin/$(TARGET0) |
|
181 | -$(DEL_FILE) bin/$(TARGET0) | |
180 | -$(DEL_FILE) bin/$(TARGET1) |
|
182 | -$(DEL_FILE) bin/$(TARGET1) | |
181 | -$(DEL_FILE) bin/$(TARGET2) |
|
183 | -$(DEL_FILE) bin/$(TARGET2) | |
182 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/ |
|
184 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/ | |
183 |
|
185 | |||
184 |
|
186 | |||
185 |
|
187 | |||
186 | staticlib: $(TARGETA) |
|
188 | staticlib: $(TARGETA) | |
187 |
|
189 | |||
188 | $(TARGETA): $(OBJECTS) $(OBJCOMP) |
|
190 | $(TARGETA): $(OBJECTS) $(OBJCOMP) | |
189 | -$(DEL_FILE) $(TARGETA) |
|
191 | -$(DEL_FILE) $(TARGETA) | |
190 | $(AR) $(TARGETA) $(OBJECTS) |
|
192 | $(AR) $(TARGETA) $(OBJECTS) | |
191 |
|
193 | |||
192 | Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
194 | Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
193 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
195 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
194 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
196 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
195 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
197 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
196 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
198 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
197 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
199 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
198 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
200 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
199 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
201 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
200 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
202 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
201 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
203 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
202 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
204 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
203 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
205 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
204 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
206 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
205 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
207 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
206 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
208 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ | |
207 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
209 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ | |
|
210 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |||
|
211 | /usr/lib64/qt4/mkspecs/features/dll.prf \ | |||
208 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
212 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
209 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
213 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
210 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
214 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
211 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
215 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
212 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
216 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
213 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
217 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
214 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
218 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
215 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
219 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
216 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
220 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
217 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
221 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
218 | /usr/lib64/libQtXml.prl \ |
|
222 | /usr/lib64/libQtXml.prl \ | |
219 | /usr/lib64/libQtCore.prl \ |
|
223 | /usr/lib64/libQtCore.prl \ | |
220 | /usr/lib64/libQtGui.prl \ |
|
224 | /usr/lib64/libQtGui.prl \ | |
221 | /usr/lib64/libQtNetwork.prl |
|
225 | /usr/lib64/libQtNetwork.prl | |
222 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
226 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
223 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
227 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
224 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
228 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
225 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
229 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
226 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
230 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
227 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
231 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
228 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
232 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
229 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
233 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
230 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
234 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
231 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
235 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
232 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
236 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
233 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
237 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
234 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
238 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
235 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
239 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
236 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
240 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
237 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf: |
|
241 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf: | |
238 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf: |
|
242 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf: | |
|
243 | /usr/lib64/qt4/mkspecs/features/shared.prf: | |||
|
244 | /usr/lib64/qt4/mkspecs/features/dll.prf: | |||
239 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
245 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
240 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
246 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
241 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
247 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
242 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
248 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
243 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
249 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
244 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
250 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
245 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
251 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
246 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
252 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
247 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
253 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
248 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
254 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
249 | /usr/lib64/libQtXml.prl: |
|
255 | /usr/lib64/libQtXml.prl: | |
250 | /usr/lib64/libQtCore.prl: |
|
256 | /usr/lib64/libQtCore.prl: | |
251 | /usr/lib64/libQtGui.prl: |
|
257 | /usr/lib64/libQtGui.prl: | |
252 | /usr/lib64/libQtNetwork.prl: |
|
258 | /usr/lib64/libQtNetwork.prl: | |
253 | qmake: FORCE |
|
259 | qmake: FORCE | |
254 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
260 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
255 |
|
261 | |||
256 | dist: |
|
262 | dist: | |
257 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 |
|
263 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 | |
258 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents ../../DEV_PLE/header/ccsds_types.h rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h entermode.h lfractions.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp entermode.cpp lfractions.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0 |
|
264 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents ../../DEV_PLE/header/ccsds_types.h rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h entermode.h lfractions.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp entermode.cpp lfractions.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0 | |
259 |
|
265 | |||
260 |
|
266 | |||
261 | clean:compiler_clean |
|
267 | clean:compiler_clean | |
262 | -$(DEL_FILE) $(OBJECTS) |
|
268 | -$(DEL_FILE) $(OBJECTS) | |
263 | -$(DEL_FILE) *~ core *.core |
|
269 | -$(DEL_FILE) *~ core *.core | |
264 |
|
270 | |||
265 |
|
271 | |||
266 | ####### Sub-libraries |
|
272 | ####### Sub-libraries | |
267 |
|
273 | |||
268 | distclean: clean |
|
274 | distclean: clean | |
269 | -$(DEL_FILE) bin/$(TARGET) |
|
275 | -$(DEL_FILE) bin/$(TARGET) | |
270 | -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA) |
|
276 | -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA) | |
271 | -$(DEL_FILE) Makefile |
|
277 | -$(DEL_FILE) Makefile | |
272 |
|
278 | |||
273 |
|
279 | |||
274 | check: first |
|
280 | check: first | |
275 |
|
281 | |||
276 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
282 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
277 |
|
283 | |||
278 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
284 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
279 |
|
285 | |||
280 | compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp |
|
286 | compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
281 | compiler_moc_header_clean: |
|
287 | compiler_moc_header_clean: | |
282 | -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp |
|
288 | -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
283 | moc/moc_rmappluginui.cpp: rmapoperations.h \ |
|
289 | moc/moc_rmappluginui.cpp: rmapoperations.h \ | |
284 | params.h \ |
|
290 | params.h \ | |
285 | stardundee.h \ |
|
291 | stardundee.h \ | |
286 | ccsds.h \ |
|
292 | ccsds.h \ | |
287 | tmpackettoread.h \ |
|
293 | tmpackettoread.h \ | |
288 | gresb.h \ |
|
294 | gresb.h \ | |
289 | tmstatistics.h \ |
|
295 | tmstatistics.h \ | |
290 | tmechobridge.h \ |
|
296 | tmechobridge.h \ | |
291 | entermode.h \ |
|
297 | entermode.h \ | |
292 | lfractions.h \ |
|
298 | lfractions.h \ | |
293 | rmappluginui.h |
|
299 | rmappluginui.h | |
294 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp |
|
300 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp | |
295 |
|
301 | |||
296 | moc/moc_rmapplugin.cpp: rmappluginui.h \ |
|
302 | moc/moc_rmapplugin.cpp: rmappluginui.h \ | |
297 | rmapoperations.h \ |
|
303 | rmapoperations.h \ | |
298 | params.h \ |
|
304 | params.h \ | |
299 | stardundee.h \ |
|
305 | stardundee.h \ | |
300 | ccsds.h \ |
|
306 | ccsds.h \ | |
301 | tmpackettoread.h \ |
|
307 | tmpackettoread.h \ | |
302 | gresb.h \ |
|
308 | gresb.h \ | |
303 | tmstatistics.h \ |
|
309 | tmstatistics.h \ | |
304 | tmechobridge.h \ |
|
310 | tmechobridge.h \ | |
305 | entermode.h \ |
|
311 | entermode.h \ | |
306 | lfractions.h \ |
|
312 | lfractions.h \ | |
307 | wfpacket.h \ |
|
313 | wfpacket.h \ | |
308 | rmapplugin.h |
|
314 | rmapplugin.h | |
309 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp |
|
315 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp | |
310 |
|
316 | |||
311 | moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
317 | moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h | |
312 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp |
|
318 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp | |
313 |
|
319 | |||
314 | moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h |
|
320 | moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h | |
315 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp |
|
321 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp | |
316 |
|
322 | |||
317 | moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \ |
|
323 | moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \ | |
318 | params.h \ |
|
324 | params.h \ | |
319 | ccsds.h \ |
|
325 | ccsds.h \ | |
320 | tcpackettosend.h \ |
|
326 | tcpackettosend.h \ | |
321 | tmpackettoread.h \ |
|
327 | tmpackettoread.h \ | |
322 | rmappluginpythonwrapper.h |
|
328 | rmappluginpythonwrapper.h | |
323 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp |
|
329 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp | |
324 |
|
330 | |||
325 | moc/moc_stardundee.cpp: rmapoperations.h \ |
|
331 | moc/moc_stardundee.cpp: rmapoperations.h \ | |
326 | params.h \ |
|
332 | params.h \ | |
327 | ccsds.h \ |
|
333 | ccsds.h \ | |
328 | tmpackettoread.h \ |
|
334 | tmpackettoread.h \ | |
329 | stardundee.h |
|
335 | stardundee.h | |
330 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp |
|
336 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp | |
331 |
|
337 | |||
332 | moc/moc_gresb.cpp: rmapoperations.h \ |
|
338 | moc/moc_gresb.cpp: rmapoperations.h \ | |
333 | params.h \ |
|
339 | params.h \ | |
334 | ccsds.h \ |
|
340 | ccsds.h \ | |
335 | tmpackettoread.h \ |
|
341 | tmpackettoread.h \ | |
336 | gresb.h |
|
342 | gresb.h | |
337 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp |
|
343 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp | |
338 |
|
344 | |||
339 | moc/moc_tcpackettosend.cpp: tcpackettosend.h |
|
345 | moc/moc_tcpackettosend.cpp: tcpackettosend.h | |
340 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tcpackettosend.h -o moc/moc_tcpackettosend.cpp |
|
346 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tcpackettosend.h -o moc/moc_tcpackettosend.cpp | |
341 |
|
347 | |||
342 | moc/moc_tmpackettoread.cpp: tmpackettoread.h |
|
348 | moc/moc_tmpackettoread.cpp: tmpackettoread.h | |
343 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp |
|
349 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp | |
344 |
|
350 | |||
345 | moc/moc_tmstatistics.cpp: tmpackettoread.h \ |
|
351 | moc/moc_tmstatistics.cpp: tmpackettoread.h \ | |
346 | tmstatistics.h |
|
352 | tmstatistics.h | |
347 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp |
|
353 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp | |
348 |
|
354 | |||
349 | moc/moc_wfpacket.cpp: params.h \ |
|
355 | moc/moc_wfpacket.cpp: params.h \ | |
350 | wfpacket.h |
|
356 | wfpacket.h | |
351 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp |
|
357 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp | |
352 |
|
358 | |||
353 | moc/moc_tmechobridge.cpp: tmpackettoread.h \ |
|
359 | moc/moc_tmechobridge.cpp: tmpackettoread.h \ | |
354 | tmechobridge.h |
|
360 | tmechobridge.h | |
355 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmechobridge.h -o moc/moc_tmechobridge.cpp |
|
361 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmechobridge.h -o moc/moc_tmechobridge.cpp | |
356 |
|
362 | |||
357 | moc/moc_entermode.cpp: entermode.h |
|
363 | moc/moc_entermode.cpp: entermode.h | |
358 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) entermode.h -o moc/moc_entermode.cpp |
|
364 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) entermode.h -o moc/moc_entermode.cpp | |
359 |
|
365 | |||
360 | moc/moc_lfractions.cpp: entermode.h \ |
|
366 | moc/moc_lfractions.cpp: entermode.h \ | |
361 | lfractions.h |
|
367 | lfractions.h | |
362 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfractions.h -o moc/moc_lfractions.cpp |
|
368 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfractions.h -o moc/moc_lfractions.cpp | |
363 |
|
369 | |||
364 | moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h |
|
370 | moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h | |
365 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp |
|
371 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp | |
366 |
|
372 | |||
367 | moc/moc_lppmonplugin.cpp: /usr/include/lppmon/lppmonplugin.h |
|
373 | moc/moc_lppmonplugin.cpp: /usr/include/lppmon/lppmonplugin.h | |
368 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/lppmonplugin.h -o moc/moc_lppmonplugin.cpp |
|
374 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/lppmonplugin.h -o moc/moc_lppmonplugin.cpp | |
369 |
|
375 | |||
370 | compiler_rcc_make_all: |
|
376 | compiler_rcc_make_all: | |
371 | compiler_rcc_clean: |
|
377 | compiler_rcc_clean: | |
372 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
378 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
373 | compiler_image_collection_clean: |
|
379 | compiler_image_collection_clean: | |
374 | -$(DEL_FILE) qmake_image_collection.cpp |
|
380 | -$(DEL_FILE) qmake_image_collection.cpp | |
375 | compiler_moc_source_make_all: |
|
381 | compiler_moc_source_make_all: | |
376 | compiler_moc_source_clean: |
|
382 | compiler_moc_source_clean: | |
377 | compiler_uic_make_all: |
|
383 | compiler_uic_make_all: | |
378 | compiler_uic_clean: |
|
384 | compiler_uic_clean: | |
379 | compiler_yacc_decl_make_all: |
|
385 | compiler_yacc_decl_make_all: | |
380 | compiler_yacc_decl_clean: |
|
386 | compiler_yacc_decl_clean: | |
381 | compiler_yacc_impl_make_all: |
|
387 | compiler_yacc_impl_make_all: | |
382 | compiler_yacc_impl_clean: |
|
388 | compiler_yacc_impl_clean: | |
383 | compiler_lex_make_all: |
|
389 | compiler_lex_make_all: | |
384 | compiler_lex_clean: |
|
390 | compiler_lex_clean: | |
385 | compiler_clean: compiler_moc_header_clean |
|
391 | compiler_clean: compiler_moc_header_clean | |
386 |
|
392 | |||
387 | ####### Compile |
|
393 | ####### Compile | |
388 |
|
394 | |||
389 | obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \ |
|
395 | obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \ | |
390 | rmappluginui.h \ |
|
396 | rmappluginui.h \ | |
391 | rmapoperations.h \ |
|
397 | rmapoperations.h \ | |
392 | params.h \ |
|
398 | params.h \ | |
393 | stardundee.h \ |
|
399 | stardundee.h \ | |
394 | ccsds.h \ |
|
400 | ccsds.h \ | |
395 | tmpackettoread.h \ |
|
401 | tmpackettoread.h \ | |
396 | gresb.h \ |
|
402 | gresb.h \ | |
397 | tmstatistics.h \ |
|
403 | tmstatistics.h \ | |
398 | tmechobridge.h \ |
|
404 | tmechobridge.h \ | |
399 | entermode.h \ |
|
405 | entermode.h \ | |
400 | lfractions.h \ |
|
406 | lfractions.h \ | |
401 | wfpacket.h \ |
|
407 | wfpacket.h \ | |
402 | rmappluginpythonwrapper.h \ |
|
408 | rmappluginpythonwrapper.h \ | |
403 | tcpackettosend.h |
|
409 | tcpackettosend.h | |
404 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp |
|
410 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp | |
405 |
|
411 | |||
406 | obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \ |
|
412 | obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \ | |
407 | rmappluginui.h \ |
|
413 | rmappluginui.h \ | |
408 | rmapoperations.h \ |
|
414 | rmapoperations.h \ | |
409 | params.h \ |
|
415 | params.h \ | |
410 | stardundee.h \ |
|
416 | stardundee.h \ | |
411 | ccsds.h \ |
|
417 | ccsds.h \ | |
412 | tmpackettoread.h \ |
|
418 | tmpackettoread.h \ | |
413 | gresb.h \ |
|
419 | gresb.h \ | |
414 | tmstatistics.h \ |
|
420 | tmstatistics.h \ | |
415 | tmechobridge.h \ |
|
421 | tmechobridge.h \ | |
416 | entermode.h \ |
|
422 | entermode.h \ | |
417 | lfractions.h \ |
|
423 | lfractions.h \ | |
418 | wfpacket.h |
|
424 | wfpacket.h | |
419 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp |
|
425 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp | |
420 |
|
426 | |||
421 | obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h \ |
|
427 | obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h \ | |
422 | params.h |
|
428 | params.h | |
423 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp |
|
429 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp | |
424 |
|
430 | |||
425 | obj/ccsds.o: ccsds.cpp ccsds.h |
|
431 | obj/ccsds.o: ccsds.cpp ccsds.h | |
426 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp |
|
432 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp | |
427 |
|
433 | |||
428 | obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
434 | obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h | |
429 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
435 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp | |
430 |
|
436 | |||
431 | obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h |
|
437 | obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h | |
432 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp |
|
438 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp | |
433 |
|
439 | |||
434 | obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \ |
|
440 | obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \ | |
435 | rmapoperations.h \ |
|
441 | rmapoperations.h \ | |
436 | params.h \ |
|
442 | params.h \ | |
437 | ccsds.h \ |
|
443 | ccsds.h \ | |
438 | tcpackettosend.h \ |
|
444 | tcpackettosend.h \ | |
439 | tmpackettoread.h |
|
445 | tmpackettoread.h | |
440 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp |
|
446 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp | |
441 |
|
447 | |||
442 | obj/stardundee.o: stardundee.cpp stardundee.h \ |
|
448 | obj/stardundee.o: stardundee.cpp stardundee.h \ | |
443 | rmapoperations.h \ |
|
449 | rmapoperations.h \ | |
444 | params.h \ |
|
450 | params.h \ | |
445 | ccsds.h \ |
|
451 | ccsds.h \ | |
446 | tmpackettoread.h |
|
452 | tmpackettoread.h | |
447 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp |
|
453 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp | |
448 |
|
454 | |||
449 | obj/gresb.o: gresb.cpp gresb.h \ |
|
455 | obj/gresb.o: gresb.cpp gresb.h \ | |
450 | rmapoperations.h \ |
|
456 | rmapoperations.h \ | |
451 | params.h \ |
|
457 | params.h \ | |
452 | ccsds.h \ |
|
458 | ccsds.h \ | |
453 | tmpackettoread.h |
|
459 | tmpackettoread.h | |
454 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp |
|
460 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp | |
455 |
|
461 | |||
456 | obj/tcpackettosend.o: tcpackettosend.cpp tcpackettosend.h |
|
462 | obj/tcpackettosend.o: tcpackettosend.cpp tcpackettosend.h | |
457 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tcpackettosend.o tcpackettosend.cpp |
|
463 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tcpackettosend.o tcpackettosend.cpp | |
458 |
|
464 | |||
459 | obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h |
|
465 | obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h | |
460 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp |
|
466 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp | |
461 |
|
467 | |||
462 | obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \ |
|
468 | obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \ | |
463 | tmpackettoread.h |
|
469 | tmpackettoread.h | |
464 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp |
|
470 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp | |
465 |
|
471 | |||
466 | obj/wfpacket.o: wfpacket.cpp wfpacket.h \ |
|
472 | obj/wfpacket.o: wfpacket.cpp wfpacket.h \ | |
467 | params.h |
|
473 | params.h | |
468 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp |
|
474 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp | |
469 |
|
475 | |||
470 | obj/tmechobridge.o: tmechobridge.cpp tmechobridge.h \ |
|
476 | obj/tmechobridge.o: tmechobridge.cpp tmechobridge.h \ | |
471 | tmpackettoread.h |
|
477 | tmpackettoread.h | |
472 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmechobridge.o tmechobridge.cpp |
|
478 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmechobridge.o tmechobridge.cpp | |
473 |
|
479 | |||
474 | obj/entermode.o: entermode.cpp entermode.h |
|
480 | obj/entermode.o: entermode.cpp entermode.h | |
475 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/entermode.o entermode.cpp |
|
481 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/entermode.o entermode.cpp | |
476 |
|
482 | |||
477 | obj/lfractions.o: lfractions.cpp lfractions.h \ |
|
483 | obj/lfractions.o: lfractions.cpp lfractions.h \ | |
478 | entermode.h |
|
484 | entermode.h | |
479 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lfractions.o lfractions.cpp |
|
485 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lfractions.o lfractions.cpp | |
480 |
|
486 | |||
481 | obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \ |
|
487 | obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \ | |
482 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h |
|
488 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h | |
483 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp |
|
489 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp | |
484 |
|
490 | |||
485 | obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp |
|
491 | obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp | |
486 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp |
|
492 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp | |
487 |
|
493 | |||
488 | obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp |
|
494 | obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp | |
489 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp |
|
495 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp | |
490 |
|
496 | |||
491 | obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp |
|
497 | obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp | |
492 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp |
|
498 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp | |
493 |
|
499 | |||
494 | obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp |
|
500 | obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp | |
495 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp |
|
501 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp | |
496 |
|
502 | |||
497 | obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp |
|
503 | obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp | |
498 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp |
|
504 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp | |
499 |
|
505 | |||
500 | obj/moc_stardundee.o: moc/moc_stardundee.cpp |
|
506 | obj/moc_stardundee.o: moc/moc_stardundee.cpp | |
501 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp |
|
507 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp | |
502 |
|
508 | |||
503 | obj/moc_gresb.o: moc/moc_gresb.cpp |
|
509 | obj/moc_gresb.o: moc/moc_gresb.cpp | |
504 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp |
|
510 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp | |
505 |
|
511 | |||
506 | obj/moc_tcpackettosend.o: moc/moc_tcpackettosend.cpp |
|
512 | obj/moc_tcpackettosend.o: moc/moc_tcpackettosend.cpp | |
507 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tcpackettosend.o moc/moc_tcpackettosend.cpp |
|
513 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tcpackettosend.o moc/moc_tcpackettosend.cpp | |
508 |
|
514 | |||
509 | obj/moc_tmpackettoread.o: moc/moc_tmpackettoread.cpp |
|
515 | obj/moc_tmpackettoread.o: moc/moc_tmpackettoread.cpp | |
510 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmpackettoread.o moc/moc_tmpackettoread.cpp |
|
516 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmpackettoread.o moc/moc_tmpackettoread.cpp | |
511 |
|
517 | |||
512 | obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp |
|
518 | obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp | |
513 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp |
|
519 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp | |
514 |
|
520 | |||
515 | obj/moc_wfpacket.o: moc/moc_wfpacket.cpp |
|
521 | obj/moc_wfpacket.o: moc/moc_wfpacket.cpp | |
516 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp |
|
522 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp | |
517 |
|
523 | |||
518 | obj/moc_tmechobridge.o: moc/moc_tmechobridge.cpp |
|
524 | obj/moc_tmechobridge.o: moc/moc_tmechobridge.cpp | |
519 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmechobridge.o moc/moc_tmechobridge.cpp |
|
525 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmechobridge.o moc/moc_tmechobridge.cpp | |
520 |
|
526 | |||
521 | obj/moc_entermode.o: moc/moc_entermode.cpp |
|
527 | obj/moc_entermode.o: moc/moc_entermode.cpp | |
522 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_entermode.o moc/moc_entermode.cpp |
|
528 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_entermode.o moc/moc_entermode.cpp | |
523 |
|
529 | |||
524 | obj/moc_lfractions.o: moc/moc_lfractions.cpp |
|
530 | obj/moc_lfractions.o: moc/moc_lfractions.cpp | |
525 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lfractions.o moc/moc_lfractions.cpp |
|
531 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lfractions.o moc/moc_lfractions.cpp | |
526 |
|
532 | |||
527 | obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp |
|
533 | obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp | |
528 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp |
|
534 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp | |
529 |
|
535 | |||
530 | obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp |
|
536 | obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp | |
531 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp |
|
537 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp | |
532 |
|
538 | |||
533 | ####### Install |
|
539 | ####### Install | |
534 |
|
540 | |||
535 | install_target: first FORCE |
|
541 | install_target: first FORCE | |
536 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ |
|
542 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
537 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" |
|
543 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
538 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" |
|
544 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
539 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" |
|
545 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
540 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" |
|
546 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
541 |
|
547 | |||
542 | uninstall_target: FORCE |
|
548 | uninstall_target: FORCE | |
543 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" |
|
549 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
544 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" |
|
550 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
545 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" |
|
551 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
546 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" |
|
552 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
547 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ |
|
553 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
548 |
|
554 | |||
549 |
|
555 | |||
550 | install: install_target FORCE |
|
556 | install: install_target FORCE | |
551 |
|
557 | |||
552 | uninstall: uninstall_target FORCE |
|
558 | uninstall: uninstall_target FORCE | |
553 |
|
559 | |||
554 | FORCE: |
|
560 | FORCE: | |
555 |
|
561 |
@@ -1,95 +1,270 | |||||
1 | #include "entermode.h" |
|
1 | #include "entermode.h" | |
2 |
|
2 | |||
3 | EnterMode::EnterMode(QWidget *parent) : |
|
3 | EnterMode::EnterMode(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | button_enterModeStandby = new QPushButton(tr("STANDBY")); |
|
6 | button_enterModeStandby = new QPushButton(tr("STANDBY")); | |
7 | button_enterModeNormal = new QPushButton(tr("NORMAL")); |
|
7 | button_enterModeNormal = new QPushButton(tr("NORMAL")); | |
8 | button_enterModeBurst = new QPushButton(tr("BURST")); |
|
8 | button_enterModeBurst = new QPushButton(tr("BURST")); | |
9 | button_enterModeSBM1 = new QPushButton(tr("SBM1")); |
|
9 | button_enterModeSBM1 = new QPushButton(tr("SBM1")); | |
10 | button_enterModeSBM2 = new QPushButton(tr("SBM2")); |
|
10 | button_enterModeSBM2 = new QPushButton(tr("SBM2")); | |
11 |
|
11 | |||
|
12 | button_reset = new QPushButton(tr("RESET")); | |||
|
13 | button_updateInfo = new QPushButton(tr("UPDATE_INFO")); | |||
|
14 | button_enableCalibration = new QPushButton(tr("ENABLE_CAL")); | |||
|
15 | button_disableCalibration = new QPushButton(tr("DISABLE_CAL")); | |||
|
16 | button_updateTime = new QPushButton(tr("UPDATE_TIME")); | |||
|
17 | ||||
12 | mainLayout = new QGridLayout(); |
|
18 | mainLayout = new QGridLayout(); | |
13 | overallLayout = new QGridLayout(); |
|
19 | overallLayout = new QGridLayout(); | |
14 |
|
20 | |||
|
21 | layout_updateTime = new QVBoxLayout(); | |||
|
22 | layout_otherTC = new QVBoxLayout(); | |||
|
23 | ||||
|
24 | arbitraryTime = new ArbitraryTime(0); | |||
|
25 | ||||
|
26 | layout_otherTC->addWidget(button_reset); | |||
|
27 | layout_otherTC->addWidget(button_updateInfo); | |||
|
28 | layout_otherTC->addWidget(button_enableCalibration); | |||
|
29 | layout_otherTC->addWidget(button_disableCalibration); | |||
|
30 | layout_otherTC->addStretch(); | |||
|
31 | ||||
|
32 | layout_updateTime->addWidget(button_updateTime); | |||
|
33 | layout_updateTime->addWidget(arbitraryTime); | |||
|
34 | layout_updateTime->addStretch(); | |||
|
35 | ||||
15 | groupBox = new QGroupBox(tr("ENTER_MODE")); |
|
36 | groupBox = new QGroupBox(tr("ENTER_MODE")); | |
|
37 | groupBox_updateTime = new QGroupBox(tr("UPDATE_TIME")); | |||
|
38 | groupBox_otherTC = new QGroupBox(tr("OTHER TC")); | |||
16 |
|
39 | |||
17 | mainLayout->addWidget(button_enterModeStandby, 0, 0, 1, 1); |
|
40 | mainLayout->addWidget(button_enterModeStandby, 0, 0, 1, 1); | |
18 | mainLayout->addWidget(button_enterModeNormal, 1, 0, 1, 1); |
|
41 | mainLayout->addWidget(button_enterModeNormal, 1, 0, 1, 1); | |
19 | mainLayout->addWidget(button_enterModeBurst, 2, 0, 1, 1); |
|
42 | mainLayout->addWidget(button_enterModeBurst, 2, 0, 1, 1); | |
20 | mainLayout->addWidget(button_enterModeSBM1, 3, 0, 1, 1); |
|
43 | mainLayout->addWidget(button_enterModeSBM1, 3, 0, 1, 1); | |
21 | mainLayout->addWidget(button_enterModeSBM2, 4, 0, 1, 1); |
|
44 | mainLayout->addWidget(button_enterModeSBM2, 4, 0, 1, 1); | |
22 |
|
45 | |||
23 | mainLayout->setColumnStretch(1, 1); |
|
46 | mainLayout->setColumnStretch(1, 1); | |
24 | mainLayout->setRowStretch(5, 1); |
|
47 | mainLayout->setRowStretch(5, 1); | |
25 |
|
48 | |||
26 | groupBox->setLayout(mainLayout); |
|
49 | groupBox->setLayout(mainLayout); | |
|
50 | groupBox_otherTC->setLayout(layout_otherTC); | |||
|
51 | groupBox_updateTime->setLayout(layout_updateTime); | |||
27 |
|
52 | |||
28 | parameterDump = new ParameterDump(); |
|
53 | parameterDump = new ParameterDump(); | |
29 |
|
54 | |||
|
55 | connect(this->button_reset, SIGNAL(clicked()), this, SLOT(sendReset())); | |||
|
56 | ||||
30 | connect(this->button_enterModeStandby, SIGNAL(clicked()), this, SLOT(enterModeStandby())); |
|
57 | connect(this->button_enterModeStandby, SIGNAL(clicked()), this, SLOT(enterModeStandby())); | |
31 | connect(this->button_enterModeNormal, SIGNAL(clicked()), this, SLOT(enterModeNormal())); |
|
58 | connect(this->button_enterModeNormal, SIGNAL(clicked()), this, SLOT(enterModeNormal())); | |
32 | connect(this->button_enterModeBurst, SIGNAL(clicked()), this, SLOT(enterModeBurst())); |
|
59 | connect(this->button_enterModeBurst, SIGNAL(clicked()), this, SLOT(enterModeBurst())); | |
33 | connect(this->button_enterModeSBM1, SIGNAL(clicked()), this, SLOT(enterModeSBM1())); |
|
60 | connect(this->button_enterModeSBM1, SIGNAL(clicked()), this, SLOT(enterModeSBM1())); | |
34 | connect(this->button_enterModeSBM2, SIGNAL(clicked()), this, SLOT(enterModeSBM2())); |
|
61 | connect(this->button_enterModeSBM2, SIGNAL(clicked()), this, SLOT(enterModeSBM2())); | |
35 |
|
62 | |||
|
63 | connect(this->button_updateInfo, SIGNAL(clicked()), this, SLOT(sendUpdateInfo())); | |||
|
64 | connect(this->button_enableCalibration, SIGNAL(clicked()), this, SLOT(sendEnableCalibration())); | |||
|
65 | connect(this->button_disableCalibration, SIGNAL(clicked()), this, SLOT(sendDisableCalibration())); | |||
|
66 | connect(this->button_updateTime, SIGNAL(clicked()), this->arbitraryTime, SLOT(sendCurrentTimeToSend())); | |||
|
67 | ||||
36 | overallLayout->addWidget(groupBox, 0, 0, 1, 1); |
|
68 | overallLayout->addWidget(groupBox, 0, 0, 1, 1); | |
|
69 | overallLayout->addWidget(groupBox_updateTime, 1, 0, 1, 1); | |||
|
70 | overallLayout->addWidget(groupBox_otherTC, 2, 0, 1, 1); | |||
37 |
|
71 | |||
38 | this->setLayout(overallLayout); |
|
72 | this->setLayout(overallLayout); | |
39 | } |
|
73 | } | |
40 |
|
74 | |||
41 | void EnterMode::sendEnterMode( unsigned char mode) |
|
75 | void EnterMode::sendEnterMode( unsigned char mode) | |
42 | { |
|
76 | { | |
43 | Packet_TC_LFR_ENTER_MODE_t packet; |
|
77 | Packet_TC_LFR_ENTER_MODE_t packet; | |
44 | unsigned char crcAsTwoBytes[2]; |
|
78 | unsigned char crcAsTwoBytes[2]; | |
45 |
|
79 | |||
46 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); |
|
80 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |
47 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); |
|
81 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |
48 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); |
|
82 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |
49 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); |
|
83 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |
50 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE >> 8); |
|
84 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE >> 8); | |
51 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE ); |
|
85 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE ); | |
52 |
|
86 | |||
53 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; |
|
87 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |
54 | packet.serviceType = TC_TYPE_DEFAULT; |
|
88 | packet.serviceType = TC_TYPE_DEFAULT; | |
55 | packet.serviceSubType = TC_SUBTYPE_ENTER_MODE; |
|
89 | packet.serviceSubType = TC_SUBTYPE_ENTER_MODE; | |
56 | packet.sourceID = SID_DEFAULT; |
|
90 | packet.sourceID = SID_DEFAULT; | |
57 | packet.spare = 0x00; |
|
91 | packet.spare = 0x00; | |
58 | packet.mode = mode; |
|
92 | packet.mode = mode; | |
59 | packet.enterModeTime[0] = 0x00; |
|
93 | packet.enterModeTime[0] = 0x00; | |
60 | packet.enterModeTime[1] = 0x00; |
|
94 | packet.enterModeTime[1] = 0x00; | |
61 | packet.enterModeTime[2] = 0x00; |
|
95 | packet.enterModeTime[2] = 0x00; | |
62 | packet.enterModeTime[3] = 0x00; |
|
96 | packet.enterModeTime[3] = 0x00; | |
63 | packet.enterModeTime[4] = 0x00; |
|
97 | packet.enterModeTime[4] = 0x00; | |
64 | packet.enterModeTime[5] = 0x00; |
|
98 | packet.enterModeTime[5] = 0x00; | |
65 |
|
99 | |||
66 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, |
|
100 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |
67 | PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET - 2); |
|
101 | PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET - 2); | |
68 | packet.crc[0] = crcAsTwoBytes[0]; |
|
102 | packet.crc[0] = crcAsTwoBytes[0]; | |
69 | packet.crc[1] = crcAsTwoBytes[1]; |
|
103 | packet.crc[1] = crcAsTwoBytes[1]; | |
70 |
|
104 | |||
71 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET, |
|
105 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET, | |
72 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); |
|
106 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |
73 | } |
|
107 | } | |
74 |
|
108 | |||
75 | void EnterMode::enterModeStandby() |
|
109 | void EnterMode::enterModeStandby() | |
76 | { |
|
110 | { | |
77 | sendEnterMode( 0 ); |
|
111 | sendEnterMode( 0 ); | |
78 | } |
|
112 | } | |
79 |
|
113 | |||
80 | void EnterMode::enterModeNormal() |
|
114 | void EnterMode::enterModeNormal() | |
81 | { |
|
115 | { | |
82 | sendEnterMode( 1 ); |
|
116 | sendEnterMode( 1 ); | |
83 | } |
|
117 | } | |
|
118 | ||||
84 | void EnterMode::enterModeBurst() |
|
119 | void EnterMode::enterModeBurst() | |
85 | { |
|
120 | { | |
86 | sendEnterMode( 2 ); |
|
121 | sendEnterMode( 2 ); | |
87 | } |
|
122 | } | |
|
123 | ||||
88 | void EnterMode::enterModeSBM1() |
|
124 | void EnterMode::enterModeSBM1() | |
89 | { |
|
125 | { | |
90 | sendEnterMode( 3 ); |
|
126 | sendEnterMode( 3 ); | |
91 | } |
|
127 | } | |
|
128 | ||||
92 | void EnterMode::enterModeSBM2() |
|
129 | void EnterMode::enterModeSBM2() | |
93 | { |
|
130 | { | |
94 | sendEnterMode( 4 ); |
|
131 | sendEnterMode( 4 ); | |
95 | } |
|
132 | } | |
|
133 | ||||
|
134 | void EnterMode::sendReset() | |||
|
135 | { | |||
|
136 | Packet_TC_LFR_RESET_t packet; | |||
|
137 | unsigned char crcAsTwoBytes[2]; | |||
|
138 | ||||
|
139 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
140 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
141 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
142 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
143 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET >> 8); | |||
|
144 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET ); | |||
|
145 | ||||
|
146 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
147 | packet.serviceType = TC_TYPE_DEFAULT; | |||
|
148 | packet.serviceSubType = TC_SUBTYPE_RESET; | |||
|
149 | packet.sourceID = SID_DEFAULT; | |||
|
150 | ||||
|
151 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
152 | PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
153 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
154 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
155 | ||||
|
156 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
157 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
158 | } | |||
|
159 | ||||
|
160 | void EnterMode::sendUpdateInfo() | |||
|
161 | { | |||
|
162 | Packet_TC_LFR_UPDATE_INFO_t packet; | |||
|
163 | unsigned char crcAsTwoBytes[2]; | |||
|
164 | ||||
|
165 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
166 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
167 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
168 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
169 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO >> 8); | |||
|
170 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO ); | |||
|
171 | ||||
|
172 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
173 | packet.serviceType = TC_TYPE_DEFAULT; | |||
|
174 | packet.serviceSubType = TC_SUBTYPE_UPDATE_INFO; | |||
|
175 | packet.sourceID = SID_DEFAULT; | |||
|
176 | ||||
|
177 | packet.set1 = 0x00; | |||
|
178 | packet.set2 = 0x00; | |||
|
179 | packet.set3_bias_setting_set1[0] = 0x00; | |||
|
180 | packet.set3_bias_setting_set1[1] = 0x00; | |||
|
181 | packet.set3_bias_setting_set1[2] = 0x00; | |||
|
182 | packet.set3_bias_setting_set1[3] = 0x00; | |||
|
183 | packet.set3_bias_setting_set1[4] = 0x00; | |||
|
184 | packet.set3_bias_setting_set2[5] = 0x00; | |||
|
185 | packet.set3_bias_voltage[0] = 0x00; | |||
|
186 | packet.set3_bias_voltage[1] = 0x00; | |||
|
187 | packet.set3_bias_voltage[2] = 0x00; | |||
|
188 | packet.set3_bias_voltage[3] = 0x00; | |||
|
189 | packet.set4[0] = 0x00; | |||
|
190 | packet.set4[1] = 0x00; | |||
|
191 | packet.set4[2] = 0x00; | |||
|
192 | packet.set4[3] = 0x00; | |||
|
193 | packet.set4[4] = 0x00; | |||
|
194 | packet.set4[5] = 0x00; | |||
|
195 | packet.set4[6] = 0x00; | |||
|
196 | packet.set4[7] = 0x00; | |||
|
197 | packet.set5 = 0x00; | |||
|
198 | packet.set6 = 0x00; | |||
|
199 | packet.set7[0] = 0x00; | |||
|
200 | packet.set7[1] = 0x00; | |||
|
201 | packet.set7[2] = 0x00; | |||
|
202 | packet.set7[3] = 0x00; | |||
|
203 | packet.set7[4] = 0x00; | |||
|
204 | packet.set7[5] = 0x00; | |||
|
205 | packet.set7[6] = 0x00; | |||
|
206 | packet.set7[7] = 0x00; | |||
|
207 | ||||
|
208 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
209 | PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
210 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
211 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
212 | ||||
|
213 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
214 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
215 | } | |||
|
216 | ||||
|
217 | void EnterMode::sendEnableCalibration() | |||
|
218 | { | |||
|
219 | Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet; | |||
|
220 | unsigned char crcAsTwoBytes[2]; | |||
|
221 | ||||
|
222 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
223 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
224 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
225 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
226 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION >> 8); | |||
|
227 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION ); | |||
|
228 | ||||
|
229 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
230 | packet.serviceType = TC_TYPE_DEFAULT; | |||
|
231 | packet.serviceSubType = TC_SUBTYPE_ENABLE_CALIBRATION; | |||
|
232 | packet.sourceID = SID_DEFAULT; | |||
|
233 | ||||
|
234 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
235 | PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
236 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
237 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
238 | ||||
|
239 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
240 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
241 | } | |||
|
242 | ||||
|
243 | void EnterMode::sendDisableCalibration() | |||
|
244 | { | |||
|
245 | Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet; | |||
|
246 | unsigned char crcAsTwoBytes[2]; | |||
|
247 | ||||
|
248 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
249 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
250 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
251 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
252 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION >> 8); | |||
|
253 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION ); | |||
|
254 | ||||
|
255 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
256 | packet.serviceType = TC_TYPE_DEFAULT; | |||
|
257 | packet.serviceSubType = TC_SUBTYPE_DISABLE_CALIBRATION; | |||
|
258 | packet.sourceID = SID_DEFAULT; | |||
|
259 | ||||
|
260 | parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
261 | PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
262 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
263 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
264 | ||||
|
265 | emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
266 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
267 | } | |||
|
268 | ||||
|
269 | ||||
|
270 |
@@ -1,45 +1,67 | |||||
1 | #ifndef ENTERMODE_H |
|
1 | #ifndef ENTERMODE_H | |
2 | #define ENTERMODE_H |
|
2 | #define ENTERMODE_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QPushButton> |
|
5 | #include <QPushButton> | |
6 | #include <QGridLayout> |
|
6 | #include <QGridLayout> | |
7 | #include <QGroupBox> |
|
7 | #include <QGroupBox> | |
|
8 | #include <QVBoxLayout> | |||
8 |
|
9 | |||
9 | #include <TC_types.h> |
|
10 | #include <TC_types.h> | |
10 | #include <parameterdump.h> |
|
11 | #include <parameterdump.h> | |
|
12 | #include <arbitrarytime.h> | |||
11 |
|
13 | |||
12 | class EnterMode : public QWidget |
|
14 | class EnterMode : public QWidget | |
13 | { |
|
15 | { | |
14 | Q_OBJECT |
|
16 | Q_OBJECT | |
15 | public: |
|
17 | public: | |
16 | explicit EnterMode(QWidget *parent = 0); |
|
18 | explicit EnterMode(QWidget *parent = 0); | |
17 |
|
19 | |||
18 | void sendEnterMode(unsigned char mode); |
|
20 | void sendEnterMode(unsigned char mode); | |
19 |
|
21 | |||
20 | QPushButton *button_enterModeStandby; |
|
22 | QPushButton *button_enterModeStandby; | |
21 | QPushButton *button_enterModeNormal; |
|
23 | QPushButton *button_enterModeNormal; | |
22 | QPushButton *button_enterModeBurst; |
|
24 | QPushButton *button_enterModeBurst; | |
23 | QPushButton *button_enterModeSBM1; |
|
25 | QPushButton *button_enterModeSBM1; | |
24 | QPushButton *button_enterModeSBM2; |
|
26 | QPushButton *button_enterModeSBM2; | |
25 |
|
27 | |||
|
28 | QPushButton *button_reset; | |||
|
29 | QPushButton *button_updateInfo; | |||
|
30 | QPushButton *button_enableCalibration; | |||
|
31 | QPushButton *button_disableCalibration; | |||
|
32 | QPushButton *button_updateTime; | |||
|
33 | ||||
26 | QGridLayout *mainLayout; |
|
34 | QGridLayout *mainLayout; | |
27 | QGridLayout *overallLayout; |
|
35 | QGridLayout *overallLayout; | |
28 |
|
36 | |||
|
37 | QVBoxLayout *layout_updateTime; | |||
|
38 | QVBoxLayout *layout_otherTC; | |||
|
39 | ||||
29 | QGroupBox *groupBox; |
|
40 | QGroupBox *groupBox; | |
|
41 | QGroupBox *groupBox_updateTime; | |||
|
42 | QGroupBox *groupBox_otherTC; | |||
30 |
|
43 | |||
31 | ParameterDump *parameterDump; |
|
44 | ParameterDump *parameterDump; | |
|
45 | ||||
|
46 | ArbitraryTime *arbitraryTime; | |||
32 |
|
47 | |||
33 | signals: |
|
48 | signals: | |
34 | unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); |
|
49 | unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | |
35 |
|
50 | |||
36 | public slots: |
|
51 | public slots: | |
37 | void enterModeStandby(); |
|
52 | void enterModeStandby(); | |
38 | void enterModeNormal(); |
|
53 | void enterModeNormal(); | |
39 | void enterModeBurst(); |
|
54 | void enterModeBurst(); | |
40 | void enterModeSBM1(); |
|
55 | void enterModeSBM1(); | |
41 | void enterModeSBM2(); |
|
56 | void enterModeSBM2(); | |
|
57 | ||||
|
58 | void sendUpdateTime(); | |||
|
59 | ||||
|
60 | void sendReset(); | |||
|
61 | void sendUpdateInfo(); | |||
|
62 | void sendEnableCalibration(); | |||
|
63 | void sendDisableCalibration(); | |||
42 |
|
64 | |||
43 | }; |
|
65 | }; | |
44 |
|
66 | |||
45 | #endif // ENTERMODE_H |
|
67 | #endif // ENTERMODE_H |
@@ -1,28 +1,30 | |||||
1 | #include "lfractions.h" |
|
1 | #include "lfractions.h" | |
2 |
|
2 | |||
3 | LFRActions::LFRActions(QWidget *parent) : |
|
3 | LFRActions::LFRActions(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | mainLayout = new QGridLayout(); |
|
6 | mainLayout = new QGridLayout(); | |
7 | enterMode = new EnterMode(); |
|
7 | enterMode = new EnterMode(); | |
8 | parameterDump = new ParameterDump(); |
|
8 | parameterDump = new ParameterDump(); | |
9 |
|
9 | |||
10 | parameterDump->actionsSetEnabled(true); |
|
10 | parameterDump->actionsSetEnabled(true); | |
11 |
|
11 | |||
12 | mainLayout->addWidget(parameterDump, 0, 0, 1, 1); |
|
12 | mainLayout->addWidget(parameterDump, 0, 0, 1, 1); | |
13 | mainLayout->addWidget(enterMode, 0, 1, 1, 1); |
|
13 | mainLayout->addWidget(enterMode, 0, 1, 1, 1); | |
14 |
|
14 | |||
15 | mainLayout->setColumnStretch(2, 1); |
|
15 | mainLayout->setColumnStretch(2, 1); | |
16 | mainLayout->setRowStretch(1, 1); |
|
16 | mainLayout->setRowStretch(1, 1); | |
17 |
|
17 | |||
18 | this->setLayout(mainLayout); |
|
18 | this->setLayout(mainLayout); | |
19 |
|
19 | |||
20 | connect(this->enterMode, SIGNAL(WriteSPWSig(char*,uint,char,char)), |
|
20 | connect(this->enterMode, SIGNAL(WriteSPWSig(char*,uint,char,char)), | |
21 | this, SLOT(reEmitWriteSPWSig(char*,uint,char,char))); |
|
21 | this, SLOT(reEmitWriteSPWSig(char*,uint,char,char))); | |
22 | connect(this->parameterDump, SIGNAL(WriteSPWSig(char*,uint,char,char)), |
|
22 | connect(this->parameterDump, SIGNAL(WriteSPWSig(char*,uint,char,char)), | |
23 | this, SLOT(reEmitWriteSPWSig(char*,uint,char,char))); |
|
23 | this, SLOT(reEmitWriteSPWSig(char*,uint,char,char))); | |
|
24 | connect(this->enterMode->arbitraryTime, SIGNAL(WriteSPW(char*,uint,char,char)), | |||
|
25 | this, SLOT(reEmitWriteSPWSig(char*,uint,char,char))); | |||
24 | } |
|
26 | } | |
25 |
|
27 | |||
26 | void LFRActions::reEmitWriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication){ |
|
28 | void LFRActions::reEmitWriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication){ | |
27 | emit WriteSPWSig( Value, count, targetLogicalAddress, userApplication); |
|
29 | emit WriteSPWSig( Value, count, targetLogicalAddress, userApplication); | |
28 | } |
|
30 | } |
@@ -1,411 +1,391 | |||||
1 | /*------------------------------------------------------------------------------ |
|
1 | /*------------------------------------------------------------------------------ | |
2 | -- This file is a part of the LPPMON Software |
|
2 | -- This file is a part of the LPPMON Software | |
3 | -- Copyright (C) 2012, Laboratory of Plasma Physics - CNRS |
|
3 | -- Copyright (C) 2012, Laboratory of Plasma Physics - CNRS | |
4 | -- |
|
4 | -- | |
5 | -- This program is free software; you can redistribute it and/or modify |
|
5 | -- This program is free software; you can redistribute it and/or modify | |
6 | -- it under the terms of the GNU General Public License as published by |
|
6 | -- it under the terms of the GNU General Public License as published by | |
7 | -- the Free Software Foundation; either version 3 of the License, or |
|
7 | -- the Free Software Foundation; either version 3 of the License, or | |
8 | -- (at your option) any later version. |
|
8 | -- (at your option) any later version. | |
9 | -- |
|
9 | -- | |
10 | -- This program is distributed in the hope that it will be useful, |
|
10 | -- This program is distributed in the hope that it will be useful, | |
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | -- GNU General Public License for more details. |
|
13 | -- GNU General Public License for more details. | |
14 | -- |
|
14 | -- | |
15 | -- You should have received a copy of the GNU General Public License |
|
15 | -- You should have received a copy of the GNU General Public License | |
16 | -- along with this program; if not, write to the Free Software |
|
16 | -- along with this program; if not, write to the Free Software | |
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | -------------------------------------------------------------------------------*/ |
|
18 | -------------------------------------------------------------------------------*/ | |
19 | /*-- Author : Paul LEROY |
|
19 | /*-- Author : Paul LEROY | |
20 | -- Mail : paul.leroy@lpp.polytechnique.fr |
|
20 | -- Mail : paul.leroy@lpp.polytechnique.fr | |
21 | ----------------------------------------------------------------------------*/ |
|
21 | ----------------------------------------------------------------------------*/ | |
22 | #include "rmapplugin.h" |
|
22 | #include "rmapplugin.h" | |
23 | #include <QHostAddress> |
|
23 | #include <QHostAddress> | |
24 | #include <QIODevice> |
|
24 | #include <QIODevice> | |
25 | #include <QApplication> |
|
25 | #include <QApplication> | |
26 | #include <rmappluginpythonwrapper.h> |
|
26 | #include <rmappluginpythonwrapper.h> | |
27 | #include <PythonQt.h> |
|
27 | #include <PythonQt.h> | |
28 | #include <QTimer> |
|
28 | #include <QTimer> | |
29 |
|
29 | |||
30 | rmapplugin::rmapplugin(QWidget *parent) |
|
30 | rmapplugin::rmapplugin(QWidget *parent) | |
31 | :lppmonplugin(parent,false) |
|
31 | :lppmonplugin(parent,false) | |
32 | { |
|
32 | { | |
33 | this->UI = new rmapPluginUI(); |
|
33 | this->UI = new rmapPluginUI(); | |
34 | this->setWindowTitle(tr("RMAP and SPW Communication")); |
|
34 | this->setWindowTitle(tr("RMAP and SPW Communication")); | |
35 | this->setWidget((QWidget*)this->UI); |
|
35 | this->setWidget((QWidget*)this->UI); | |
36 |
|
36 | |||
37 | timeCode = 0; |
|
37 | timeCode = 0; | |
38 | time_COARSE = 0; |
|
38 | time_COARSE = 0; | |
39 | time_FINE = 0; |
|
39 | time_FINE = 0; | |
40 | currentBridge = selectedBridgeIsUnknown; |
|
40 | currentBridge = selectedBridgeIsUnknown; | |
41 |
|
41 | |||
42 | //************** |
|
42 | //************** | |
43 | //Python wrapper |
|
43 | //Python wrapper | |
44 | this->pyObject = new rmappluginPythonWrapper(); |
|
44 | this->pyObject = new rmappluginPythonWrapper(); | |
45 | connect(this->pyObject,SIGNAL(ReadSig(uint*,uint,uint)),this,SLOT(Read(uint*,uint,uint))); |
|
45 | connect(this->pyObject,SIGNAL(ReadSig(uint*,uint,uint)),this,SLOT(Read(uint*,uint,uint))); | |
46 | connect(this->pyObject,SIGNAL(WriteSig(uint*,uint,uint)),this,SLOT(Write(uint*,uint,uint))); |
|
46 | connect(this->pyObject,SIGNAL(WriteSig(uint*,uint,uint)),this,SLOT(Write(uint*,uint,uint))); | |
47 | //** |
|
47 | //** | |
48 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( WriteSPWSig(char*,uint,char,char) ), |
|
48 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( WriteSPWSig(char*,uint,char,char) ), | |
49 | this, SLOT( WriteSPW(char*,uint,char,char)), Qt::DirectConnection ); |
|
49 | this, SLOT( WriteSPW(char*,uint,char,char)), Qt::DirectConnection ); | |
50 | //** |
|
50 | //** | |
51 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateTargetAddress(unsigned char) ), |
|
51 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateTargetAddress(unsigned char) ), | |
52 | this, SLOT( setValueTargetAddress(unsigned char)) ); |
|
52 | this, SLOT( setValueTargetAddress(unsigned char)) ); | |
53 | //** |
|
53 | //** | |
54 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateSourceAddress(unsigned char) ), |
|
54 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateSourceAddress(unsigned char) ), | |
55 | this, SLOT( setValueSourceAddress(unsigned char)) ); |
|
55 | this, SLOT( setValueSourceAddress(unsigned char)) ); | |
56 | //** |
|
56 | //** | |
57 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(sendMessage(QString)), |
|
57 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(sendMessage(QString)), | |
58 | this, SLOT(displayOnConsole(QString)) ); |
|
58 | this, SLOT(displayOnConsole(QString)) ); | |
59 | //** |
|
59 | //** | |
60 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()), |
|
60 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()), | |
61 | this, SLOT(fetchPacket()), Qt::DirectConnection ); |
|
61 | this, SLOT(fetchPacket()), Qt::DirectConnection ); | |
62 | //*** |
|
62 | //*** | |
63 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)), |
|
63 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)), | |
64 | this, SLOT(nbPacketHasChanged(int))); |
|
64 | this, SLOT(nbPacketHasChanged(int))); | |
65 | //************** |
|
65 | //************** | |
66 |
|
66 | |||
67 | //************** |
|
67 | //************** | |
68 | // get a smart pointer to the __main__ module of the Python interpreter |
|
68 | // get a smart pointer to the __main__ module of the Python interpreter | |
69 | PythonQtObjectPtr context = PythonQt::self()->getMainModule(); |
|
69 | PythonQtObjectPtr context = PythonQt::self()->getMainModule(); | |
70 | // add a QObject as variable of name "BUTTON_rmapOpenCommunication" to the namespace of the __main__ module |
|
70 | // add a QObject as variable of name "BUTTON_rmapOpenCommunication" to the namespace of the __main__ module | |
71 | context.addObject("BUTTON_rmapOpenCommunication", UI->rmapOpenCommunicationButton); |
|
71 | context.addObject("BUTTON_rmapOpenCommunication", UI->rmapOpenCommunicationButton); | |
72 | context.addObject("BUTTON_rmapCloseCommunication", UI->rmapCloseCommunicationButton); |
|
72 | context.addObject("BUTTON_rmapCloseCommunication", UI->rmapCloseCommunicationButton); | |
73 | context.addObject("BUTTON_selectStarDundee", UI->selectStarDundee_BUTTON); |
|
73 | context.addObject("BUTTON_selectStarDundee", UI->selectStarDundee_BUTTON); | |
74 | context.addObject("BUTTON_selectGRESB", UI->selectGRESB_BUTTON); |
|
74 | context.addObject("BUTTON_selectGRESB", UI->selectGRESB_BUTTON); | |
75 | context.addObject("GRESB_Bridge", UI->gresbBridge); |
|
75 | context.addObject("GRESB_Bridge", UI->gresbBridge); | |
76 | //************** |
|
76 | //************** | |
77 |
|
77 | |||
78 | connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge())); |
|
78 | connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge())); | |
79 | connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge())); |
|
79 | connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge())); | |
80 | connect(this, SIGNAL( |
|
80 | connect(this, SIGNAL( | |
81 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
81 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) | |
82 | ), |
|
82 | ), | |
83 | this->UI->tmStatistics, SLOT( |
|
83 | this->UI->tmStatistics, SLOT( | |
84 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
84 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) | |
85 | )); |
|
85 | )); | |
86 |
|
86 | |||
87 | //****** |
|
87 | //****** | |
88 | // GRESB |
|
88 | // GRESB | |
89 | connect(this->UI->gresbBridge, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
89 | connect(this->UI->gresbBridge, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); | |
90 | connect(this->UI->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
90 | connect(this->UI->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); | |
91 | connect(this->UI->gresbBridge, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
91 | connect(this->UI->gresbBridge, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); | |
92 | connect(this->UI->gresbBridge, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
92 | connect(this->UI->gresbBridge, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); | |
93 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->gresbBridge, SLOT(ccsdsPacketIsProcessed())); |
|
93 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->gresbBridge, SLOT(ccsdsPacketIsProcessed())); | |
94 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
94 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
95 | this->UI->gresbBridge, SLOT(targetHasChanged(int))); |
|
95 | this->UI->gresbBridge, SLOT(targetHasChanged(int))); | |
96 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
96 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
97 | this->UI->gresbBridge, SLOT(sourceHasChanged(int))); |
|
97 | this->UI->gresbBridge, SLOT(sourceHasChanged(int))); | |
98 | connect(this->UI->gresbBridge, SIGNAL(sendPacket(TMPacketToRead*)), |
|
98 | connect(this->UI->gresbBridge, SIGNAL(sendPacket(TMPacketToRead*)), | |
99 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
99 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); | |
100 |
|
100 | |||
101 | //************ |
|
101 | //************ | |
102 | // Star Dundee |
|
102 | // Star Dundee | |
103 | connect(this->UI->starDundee, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
103 | connect(this->UI->starDundee, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); | |
104 | connect(this->UI->starDundee, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
104 | connect(this->UI->starDundee, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); | |
105 | connect(this->UI->starDundee, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
105 | connect(this->UI->starDundee, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); | |
106 | connect(this->UI->starDundee, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
106 | connect(this->UI->starDundee, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); | |
107 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->starDundee, SLOT(ccsdsPacketIsProcessed())); |
|
107 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->starDundee, SLOT(ccsdsPacketIsProcessed())); | |
108 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
108 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
109 | this->UI->starDundee, SLOT(targetHasChanged(int))); |
|
109 | this->UI->starDundee, SLOT(targetHasChanged(int))); | |
110 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
110 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
111 | this->UI->starDundee, SLOT(sourceHasChanged(int))); |
|
111 | this->UI->starDundee, SLOT(sourceHasChanged(int))); | |
112 | connect(this->UI->starDundee, SIGNAL(sendPacket(TMPacketToRead*)), |
|
112 | connect(this->UI->starDundee, SIGNAL(sendPacket(TMPacketToRead*)), | |
113 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
113 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); | |
114 |
|
114 | |||
115 | connect(this->UI, SIGNAL(bridgeHasChanged(selectedBridge)), this, SLOT(bridgeHasChanged(selectedBridge))); |
|
115 | connect(this->UI, SIGNAL(bridgeHasChanged(selectedBridge)), this, SLOT(bridgeHasChanged(selectedBridge))); | |
116 |
|
116 | |||
117 | ((rmappluginPythonWrapper*)this->pyObject)->ccsdsPacketStore = &(this->generalCCSDSPacketStore); |
|
117 | ((rmappluginPythonWrapper*)this->pyObject)->ccsdsPacketStore = &(this->generalCCSDSPacketStore); | |
118 |
|
118 | |||
119 | //************ |
|
119 | //************ | |
120 | // LFR ACtions |
|
120 | // LFR ACtions | |
121 | connect(this->UI->lfrActions, SIGNAL(WriteSPWSig(char*,uint,char,char)), |
|
121 | connect(this->UI->lfrActions, SIGNAL(WriteSPWSig(char*,uint,char,char)), | |
122 | this, SLOT(WriteSPW(char*,uint,char,char))); |
|
122 | this, SLOT(WriteSPW(char*,uint,char,char))); | |
123 |
|
123 | |||
124 | } |
|
124 | } | |
125 |
|
125 | |||
126 | rmapplugin::~rmapplugin() |
|
126 | rmapplugin::~rmapplugin() | |
127 | { |
|
127 | { | |
128 | switch(currentBridge) |
|
128 | switch(currentBridge) | |
129 | { |
|
129 | { | |
130 | case selectedBridgeIsGRESB : |
|
130 | case selectedBridgeIsGRESB : | |
131 | this->UI->gresbBridge->writeSettings(); |
|
131 | this->UI->gresbBridge->writeSettings(); | |
132 | break; |
|
132 | break; | |
133 | case selectedBridgeIsStarDundee : |
|
133 | case selectedBridgeIsStarDundee : | |
134 | break; |
|
134 | break; | |
135 | default: |
|
135 | default: | |
136 | break; |
|
136 | break; | |
137 | } |
|
137 | } | |
|
138 | this->UI->tmStatistics->writeSettings(); | |||
138 | } |
|
139 | } | |
139 |
|
140 | |||
140 | unsigned int rmapplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) |
|
141 | unsigned int rmapplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) | |
141 | { |
|
142 | { | |
142 | unsigned int result; |
|
143 | unsigned int result; | |
143 | switch(currentBridge) |
|
144 | switch(currentBridge) | |
144 | { |
|
145 | { | |
145 | case selectedBridgeIsGRESB : |
|
146 | case selectedBridgeIsGRESB : | |
146 | result = UI->gresbBridge->Write(Value, count, address); |
|
147 | result = UI->gresbBridge->Write(Value, count, address); | |
147 | break; |
|
148 | break; | |
148 | case selectedBridgeIsStarDundee : |
|
149 | case selectedBridgeIsStarDundee : | |
149 | result = UI->starDundee->Write(Value, count, address); |
|
150 | result = UI->starDundee->Write(Value, count, address); | |
150 | break; |
|
151 | break; | |
151 | default: |
|
152 | default: | |
152 | result = 1; |
|
153 | result = 1; | |
153 | break; |
|
154 | break; | |
154 | } |
|
155 | } | |
155 | return result; |
|
156 | return result; | |
156 | } |
|
157 | } | |
157 |
|
158 | |||
158 | unsigned int rmapplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) |
|
159 | unsigned int rmapplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) | |
159 | { |
|
160 | { | |
160 | unsigned int result; |
|
161 | unsigned int result; | |
161 | switch(currentBridge) |
|
162 | switch(currentBridge) | |
162 | { |
|
163 | { | |
163 | case selectedBridgeIsGRESB : |
|
164 | case selectedBridgeIsGRESB : | |
164 | result = UI->gresbBridge->Read(Value, count, address); |
|
165 | result = UI->gresbBridge->Read(Value, count, address); | |
165 | break; |
|
166 | break; | |
166 | case selectedBridgeIsStarDundee : |
|
167 | case selectedBridgeIsStarDundee : | |
167 | result = UI->starDundee->Read(Value, count, address); |
|
168 | result = UI->starDundee->Read(Value, count, address); | |
168 | break; |
|
169 | break; | |
169 | default: |
|
170 | default: | |
170 | result = 1; |
|
171 | result = 1; | |
171 | break; |
|
172 | break; | |
172 | } |
|
173 | } | |
173 | return result; |
|
174 | return result; | |
174 | } |
|
175 | } | |
175 |
|
176 | |||
176 | //////// |
|
177 | //////// | |
177 | // SLOTS |
|
178 | // SLOTS | |
178 |
|
179 | |||
179 | unsigned int rmapplugin::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) // SLOT |
|
180 | unsigned int rmapplugin::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) // SLOT | |
180 | { |
|
181 | { | |
181 | unsigned int result; |
|
182 | unsigned int result; | |
182 | switch(currentBridge) |
|
183 | switch(currentBridge) | |
183 | { |
|
184 | { | |
184 | case selectedBridgeIsGRESB : |
|
185 | case selectedBridgeIsGRESB : | |
185 | result = UI->gresbBridge->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
186 | result = UI->gresbBridge->WriteSPW(Value, count, targetLogicalAddress, userApplication); | |
186 | break; |
|
187 | break; | |
187 | case selectedBridgeIsStarDundee : |
|
188 | case selectedBridgeIsStarDundee : | |
188 | result = UI->starDundee->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
189 | result = UI->starDundee->WriteSPW(Value, count, targetLogicalAddress, userApplication); | |
189 | break; |
|
190 | break; | |
190 | default: |
|
191 | default: | |
191 | result = 1; |
|
192 | result = 1; | |
192 | break; |
|
193 | break; | |
193 | } |
|
194 | } | |
194 | return result; |
|
195 | return result; | |
195 | } |
|
196 | } | |
196 |
|
197 | |||
197 | void rmapplugin::openBridge() |
|
198 | void rmapplugin::openBridge() | |
198 | { |
|
199 | { | |
199 | switch(currentBridge) |
|
200 | switch(currentBridge) | |
200 | { |
|
201 | { | |
201 | case selectedBridgeIsGRESB : |
|
202 | case selectedBridgeIsGRESB : | |
202 | this->UI->gresbBridge->Open(); |
|
203 | this->UI->gresbBridge->Open(); | |
203 | break; |
|
204 | break; | |
204 | case selectedBridgeIsStarDundee : |
|
205 | case selectedBridgeIsStarDundee : | |
205 | this->UI->starDundee->Open(); |
|
206 | this->UI->starDundee->Open(); | |
206 | break; |
|
207 | break; | |
207 | default: |
|
208 | default: | |
208 | break; |
|
209 | break; | |
209 | } |
|
210 | } | |
210 | } |
|
211 | } | |
211 |
|
212 | |||
212 | void rmapplugin::closeBridge() |
|
213 | void rmapplugin::closeBridge() | |
213 | { |
|
214 | { | |
214 | switch(currentBridge) |
|
215 | switch(currentBridge) | |
215 | { |
|
216 | { | |
216 | case selectedBridgeIsGRESB : |
|
217 | case selectedBridgeIsGRESB : | |
217 | this->UI->gresbBridge->Close(); |
|
218 | this->UI->gresbBridge->Close(); | |
218 | break; |
|
219 | break; | |
219 | case selectedBridgeIsStarDundee : |
|
220 | case selectedBridgeIsStarDundee : | |
220 | this->UI->starDundee->Close(); |
|
221 | this->UI->starDundee->Close(); | |
221 | break; |
|
222 | break; | |
222 | default: |
|
223 | default: | |
223 | break; |
|
224 | break; | |
224 | } |
|
225 | } | |
225 | } |
|
226 | } | |
226 |
|
227 | |||
227 | void rmapplugin::RMAP_write_reply_setText(QString text) |
|
228 | void rmapplugin::RMAP_write_reply_setText(QString text) | |
228 | { |
|
229 | { | |
229 | this->UI->RMAP_write_reply->setText(text); |
|
230 | this->UI->RMAP_write_reply->setText(text); | |
230 | } |
|
231 | } | |
231 |
|
232 | |||
232 | void rmapplugin::appendToLog(QString text) |
|
233 | void rmapplugin::appendToLog(QString text) | |
233 | { |
|
234 | { | |
234 | APPENDTOLOG(text); |
|
235 | APPENDTOLOG(text); | |
235 | } |
|
236 | } | |
236 |
|
237 | |||
237 | void rmapplugin::setValueTargetAddress(unsigned char newAddress) |
|
238 | void rmapplugin::setValueTargetAddress(unsigned char newAddress) | |
238 | { |
|
239 | { | |
239 | this->UI->rmapTargetLogicalAddressSpinBox->setValue(newAddress); |
|
240 | this->UI->rmapTargetLogicalAddressSpinBox->setValue(newAddress); | |
240 | } |
|
241 | } | |
241 |
|
242 | |||
242 | void rmapplugin::setValueSourceAddress(unsigned char newAddress) |
|
243 | void rmapplugin::setValueSourceAddress(unsigned char newAddress) | |
243 | { |
|
244 | { | |
244 | this->UI->rmapSourceLogicalAddressSpinBox->setValue(newAddress); |
|
245 | this->UI->rmapSourceLogicalAddressSpinBox->setValue(newAddress); | |
245 | } |
|
246 | } | |
246 |
|
247 | |||
247 | void rmapplugin::receivePacketFromBridge(TMPacketToRead *packet) |
|
248 | void rmapplugin::receivePacketFromBridge(TMPacketToRead *packet) | |
248 | { |
|
249 | { | |
249 | preProcessPacket(packet); |
|
250 | preProcessPacket(packet); | |
250 |
|
251 | |||
251 | // Send the packet to the TM echo bridge for processing |
|
252 | // Send the packet to the TM echo bridge for processing | |
252 | this->UI->tmEchoBridge->sendTMPacketLESIA(packet); |
|
253 | this->UI->tmEchoBridge->sendTMPacketLESIA(packet); | |
253 |
|
254 | |||
254 | this->generalCCSDSPacketStore.append(packet); |
|
255 | this->generalCCSDSPacketStore.append(packet); | |
255 |
if (this->generalCCSDSPacketStore.size() > |
|
256 | if (this->generalCCSDSPacketStore.size() > 200) | |
256 | { |
|
257 | { | |
257 | this->generalCCSDSPacketStore.erase(generalCCSDSPacketStore.begin(), |
|
258 | this->generalCCSDSPacketStore.erase(generalCCSDSPacketStore.begin(), | |
258 |
generalCCSDSPacketStore.begin() + |
|
259 | generalCCSDSPacketStore.begin() + 100); | |
259 | } |
|
260 | } | |
260 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); |
|
261 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); | |
261 | processPacketStore(); |
|
262 | processPacketStore(); | |
262 | } |
|
263 | } | |
263 |
|
264 | |||
264 | void rmapplugin::preProcessPacket(TMPacketToRead *packet) |
|
265 | void rmapplugin::preProcessPacket(TMPacketToRead *packet) | |
265 | { |
|
266 | { | |
266 | unsigned char pid = 0; |
|
267 | unsigned char pid = 0; | |
267 | unsigned char cat = 0; |
|
268 | unsigned char cat = 0; | |
268 | unsigned char typ = 0; |
|
269 | unsigned char typ = 0; | |
269 | unsigned char sub = 0; |
|
270 | unsigned char sub = 0; | |
270 | unsigned int sid = 0; |
|
271 | unsigned int sid = 0; | |
271 | unsigned int length = 0; |
|
272 | unsigned int length = 0; | |
272 | unsigned int coarse_t = 0; |
|
273 | unsigned int coarse_t = 0; | |
273 | unsigned int fine_t = 0; |
|
274 | unsigned int fine_t = 0; | |
274 |
|
275 | |||
275 | //********************************* |
|
276 | //********************************* | |
276 | // get the parameters of the packet |
|
277 | // get the parameters of the packet | |
277 | pid = this->UI->tmStatistics->getPID( packet ); |
|
278 | pid = this->UI->tmStatistics->getPID( packet ); | |
278 | cat = this->UI->tmStatistics->getCAT( packet ); |
|
279 | cat = this->UI->tmStatistics->getCAT( packet ); | |
279 | typ = this->UI->tmStatistics->getTYPE( packet ); |
|
280 | typ = this->UI->tmStatistics->getTYPE( packet ); | |
280 | sub = this->UI->tmStatistics->getSUBTYPE( packet ); |
|
281 | sub = this->UI->tmStatistics->getSUBTYPE( packet ); | |
281 | length = this->UI->tmStatistics->getLENGTH( packet ); |
|
282 | length = this->UI->tmStatistics->getLENGTH( packet ); | |
282 | coarse_t = this->UI->tmStatistics->getCoarseTime( packet ); |
|
283 | coarse_t = this->UI->tmStatistics->getCoarseTime( packet ); | |
283 | fine_t = this->UI->tmStatistics->getFineTime( packet ); |
|
284 | fine_t = this->UI->tmStatistics->getFineTime( packet ); | |
284 | sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub ); |
|
285 | sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub ); | |
285 |
|
286 | |||
286 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
287 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
287 |
|
288 | |||
288 | //********************************************** |
|
289 | //********************************************** | |
289 | // if the packet is a parameter dump, display it |
|
290 | // if the packet is a parameter dump, display it | |
290 | if ( (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) & (sid == SID_PARAMETER_DUMP) ) |
|
291 | if ( (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) & (sid == SID_PARAMETER_DUMP) ) | |
291 | { |
|
292 | { | |
292 | this->UI->lfrActions->parameterDump->updateParameterDump(packet); |
|
293 | this->UI->lfrActions->parameterDump->updateParameterDump(packet); | |
293 | } |
|
294 | } | |
294 |
|
||||
295 | //**************************************** |
|
|||
296 | // if the packet is a waveform, display it |
|
|||
297 | /*if ( (typ == 21) & (sub == 3) ) |
|
|||
298 | { |
|
|||
299 | sid = packet->Value[20]; // SID |
|
|||
300 | switch (sid){ |
|
|||
301 | case SID_NORMAL_SWF_F0: |
|
|||
302 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); |
|
|||
303 | break; |
|
|||
304 | case SID_NORMAL_SWF_F1: |
|
|||
305 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); |
|
|||
306 | break; |
|
|||
307 | case SID_NORMAL_SWF_F2: |
|
|||
308 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); |
|
|||
309 | break; |
|
|||
310 | case SID_NORMAL_CWF_F3: |
|
|||
311 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); |
|
|||
312 | break; |
|
|||
313 | } |
|
|||
314 | }*/ |
|
|||
315 | } |
|
295 | } | |
316 |
|
296 | |||
317 | void rmapplugin::nbPacketHasChanged(int nb) |
|
297 | void rmapplugin::nbPacketHasChanged(int nb) | |
318 | { |
|
298 | { | |
319 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb)); |
|
299 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb)); | |
320 | } |
|
300 | } | |
321 |
|
301 | |||
322 | void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) |
|
302 | void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) | |
323 | { |
|
303 | { | |
324 | unsigned int i = 0; |
|
304 | unsigned int i = 0; | |
325 | unsigned int j = 0; |
|
305 | unsigned int j = 0; | |
326 | unsigned char *data; |
|
306 | unsigned char *data; | |
327 | unsigned char pkt_nr = 0; |
|
307 | unsigned char pkt_nr = 0; | |
328 | unsigned int blk_nr = 0; |
|
308 | unsigned int blk_nr = 0; | |
329 |
|
309 | |||
330 | pkt_nr = packet->Value[23]; // PKT_NR |
|
310 | pkt_nr = packet->Value[23]; // PKT_NR | |
331 | blk_nr = packet->Value[24] * 256 + packet->Value[25]; |
|
311 | blk_nr = packet->Value[24] * 256 + packet->Value[25]; | |
332 | data = &packet->Value[26]; // start of the first data block; |
|
312 | data = &packet->Value[26]; // start of the first data block; | |
333 | j = (pkt_nr-1) * 340; |
|
313 | j = (pkt_nr-1) * 340; | |
334 | for ( i=0; i<blk_nr; i++ ){ |
|
314 | for ( i=0; i<blk_nr; i++ ){ | |
335 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
315 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |
336 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
316 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |
337 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
317 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |
338 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
318 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |
339 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
319 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |
340 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
320 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |
341 | } |
|
321 | } | |
342 | if (pkt_nr == 7) |
|
322 | if (pkt_nr == 7) | |
343 | { |
|
323 | { | |
344 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); |
|
324 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); | |
345 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); |
|
325 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); | |
346 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); |
|
326 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); | |
347 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); |
|
327 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); | |
348 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); |
|
328 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); | |
349 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); |
|
329 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); | |
350 | } |
|
330 | } | |
351 | } |
|
331 | } | |
352 |
|
332 | |||
353 | ///////////////////// |
|
333 | ///////////////////// | |
354 | // INTERNAL FUNCTIONS |
|
334 | // INTERNAL FUNCTIONS | |
355 |
|
335 | |||
356 | void rmapplugin::processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size) // SLOT |
|
336 | void rmapplugin::processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size) // SLOT | |
357 | { |
|
337 | { | |
358 | QString message; |
|
338 | QString message; | |
359 | unsigned int fine_time_value = 0; |
|
339 | unsigned int fine_time_value = 0; | |
360 | fine_time_value = ((unsigned int) ccsdsPacket[7]<<24) |
|
340 | fine_time_value = ((unsigned int) ccsdsPacket[7]<<24) | |
361 | + ((unsigned int) ccsdsPacket[6]<<16) |
|
341 | + ((unsigned int) ccsdsPacket[6]<<16) | |
362 | + ((unsigned int) ccsdsPacket[5]<<8) |
|
342 | + ((unsigned int) ccsdsPacket[5]<<8) | |
363 | + ((unsigned int) ccsdsPacket[4]); |
|
343 | + ((unsigned int) ccsdsPacket[4]); | |
364 | message.append(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": "); |
|
344 | message.append(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": "); | |
365 | message.append("size " |
|
345 | message.append("size " | |
366 | + QString::number(size) |
|
346 | + QString::number(size) | |
367 | +" *** header " |
|
347 | +" *** header " | |
368 | + QString::number(ccsdsPacket[0], 16) |
|
348 | + QString::number(ccsdsPacket[0], 16) | |
369 | + " " |
|
349 | + " " | |
370 | + QString::number(ccsdsPacket[1], 16) |
|
350 | + QString::number(ccsdsPacket[1], 16) | |
371 | + " " |
|
351 | + " " | |
372 | + QString::number(ccsdsPacket[2], 16) |
|
352 | + QString::number(ccsdsPacket[2], 16) | |
373 | + " " |
|
353 | + " " | |
374 | + QString::number(ccsdsPacket[3], 16) |
|
354 | + QString::number(ccsdsPacket[3], 16) | |
375 | + " *** coarse time " |
|
355 | + " *** coarse time " | |
376 | + QString::number(fine_time_value)); |
|
356 | + QString::number(fine_time_value)); | |
377 | //+ QString::number(ccsdsPacket[4], 16) |
|
357 | //+ QString::number(ccsdsPacket[4], 16) | |
378 | //+" " |
|
358 | //+" " | |
379 | //+ QString::number(ccsdsPacket[5], 16) |
|
359 | //+ QString::number(ccsdsPacket[5], 16) | |
380 | //+" " |
|
360 | //+" " | |
381 | //+ QString::number(ccsdsPacket[6], 16) |
|
361 | //+ QString::number(ccsdsPacket[6], 16) | |
382 | //+" " |
|
362 | //+" " | |
383 | //+ QString::number(ccsdsPacket[7], 16)); |
|
363 | //+ QString::number(ccsdsPacket[7], 16)); | |
384 | displayOnConsole(message); |
|
364 | displayOnConsole(message); | |
385 | //((rmappluginPythonWrapper*)this->pyObject)->storeCCSDSPacket(ccsdsPacket, size); |
|
365 | //((rmappluginPythonWrapper*)this->pyObject)->storeCCSDSPacket(ccsdsPacket, size); | |
386 | emit ccsdsPacketIsProcessed(); |
|
366 | emit ccsdsPacketIsProcessed(); | |
387 | } |
|
367 | } | |
388 |
|
368 | |||
389 | void rmapplugin::processPacketStore() |
|
369 | void rmapplugin::processPacketStore() | |
390 | { |
|
370 | { | |
391 | ((rmappluginPythonWrapper*)this->pyObject)->processPacketStore(); |
|
371 | ((rmappluginPythonWrapper*)this->pyObject)->processPacketStore(); | |
392 | } |
|
372 | } | |
393 |
|
373 | |||
394 | int rmapplugin::fetchPacket() |
|
374 | int rmapplugin::fetchPacket() | |
395 | { |
|
375 | { | |
396 | int ret = 0; |
|
376 | int ret = 0; | |
397 |
|
377 | |||
398 | switch(currentBridge) |
|
378 | switch(currentBridge) | |
399 | { |
|
379 | { | |
400 | case selectedBridgeIsGRESB : |
|
380 | case selectedBridgeIsGRESB : | |
401 | break; |
|
381 | break; | |
402 | case selectedBridgeIsStarDundee : |
|
382 | case selectedBridgeIsStarDundee : | |
403 | ret = this->UI->starDundee->receiveSPWPacketLoop(); |
|
383 | ret = this->UI->starDundee->receiveSPWPacketLoop(); | |
404 | break; |
|
384 | break; | |
405 | default: |
|
385 | default: | |
406 | break; |
|
386 | break; | |
407 | } |
|
387 | } | |
408 |
|
388 | |||
409 | return ret; |
|
389 | return ret; | |
410 | } |
|
390 | } | |
411 |
|
391 |
@@ -1,89 +1,90 | |||||
1 | # |
|
1 | # | |
2 | # Project created by QtCreator 2011-09-20T08:15:30 |
|
2 | # Project created by QtCreator 2011-09-20T08:15:30 | |
3 | # |
|
3 | # | |
4 | #------------------------------------------------- |
|
4 | #------------------------------------------------- | |
5 |
|
5 | |||
6 | #include(/etc/lppmon/lppmonplugin.prf) |
|
6 | #include(/etc/lppmon/lppmonplugin.prf) | |
7 | CONFIG += lppmonplugin |
|
7 | CONFIG += lppmonplugin | |
8 | TARGET = rmapplugin |
|
8 | TARGET = rmapplugin | |
9 |
|
9 | |||
10 | DEFINES += PLUGIN=rmapplugin |
|
10 | DEFINES += PLUGIN=rmapplugin | |
11 | DEFINES += PLUGINHEADER="\"\\\"rmapplugin.h"\\\"\" |
|
11 | DEFINES += PLUGINHEADER="\"\\\"rmapplugin.h"\\\"\" | |
12 | DEFINES += driver_Name="\"\\\"RMAPPlugin"\\\"\" |
|
12 | DEFINES += driver_Name="\"\\\"RMAPPlugin"\\\"\" | |
13 | DEFINES += driver_Author="\"\\\"Paul Leroy paul.leroy@lpp.polytechnique.fr"\\\"\" |
|
13 | DEFINES += driver_Author="\"\\\"Paul Leroy paul.leroy@lpp.polytechnique.fr"\\\"\" | |
14 | DEFINES += driver_Version="\"\\\"1.1.2"\\\"\" |
|
14 | DEFINES += driver_Version="\"\\\"1.1.2"\\\"\" | |
15 | DEFINES += driver_Description="\"\\\"AHB bus controler, works with Gaisler's AHB plugn' play bus."\\\"\" |
|
15 | DEFINES += driver_Description="\"\\\"AHB bus controler, works with Gaisler's AHB plugn' play bus."\\\"\" | |
16 | DEFINES += driver_can_be_root=1 |
|
16 | DEFINES += driver_can_be_root=1 | |
17 | DEFINES += driver_can_be_child=0 |
|
17 | DEFINES += driver_can_be_child=0 | |
18 | DEFINES += driver_VID=0 |
|
18 | DEFINES += driver_VID=0 | |
19 | DEFINES += driver_PID=0 |
|
19 | DEFINES += driver_PID=0 | |
20 |
|
20 | |||
21 | QT += network |
|
21 | QT += network | |
22 |
|
22 | |||
23 | LIBS += ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so \ |
|
23 | LIBS += ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so \ | |
24 | ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so |
|
24 | ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so | |
25 |
|
25 | |||
26 |
|
26 | |||
27 | INCLUDEPATH += \ |
|
27 | INCLUDEPATH += \ | |
28 | $${PWD} \ |
|
28 | $${PWD} \ | |
29 | ../common_PLE \ |
|
29 | ../common_PLE \ | |
30 | ../../DEV_PLE/header \ |
|
30 | ../../DEV_PLE/header \ | |
31 | ../spw_usb_driver_v2.63/inc \ |
|
31 | ../spw_usb_driver_v2.63/inc \ | |
32 | $${QT_INSTALL_HEADER} \ |
|
32 | $${QT_INSTALL_HEADER} \ | |
33 | $$[QT_INSTALL_HEADERS]/lppmon/common \ |
|
33 | $$[QT_INSTALL_HEADERS]/lppmon/common \ | |
34 | $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \ |
|
34 | $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \ | |
35 | $$[QT_INSTALL_HEADERS]/lppmon/parameterdump |
|
35 | $$[QT_INSTALL_HEADERS]/lppmon/parameterdump \ | |
|
36 | $$[QT_INSTALL_HEADERS]/lppmon/paulcommon | |||
36 |
|
37 | |||
37 | LIBS += -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump |
|
38 | LIBS += -llppmoncommon -lpaulcommon -lwfdisplay -lqwt5-qt4 -lparameterdump | |
38 |
|
39 | |||
39 |
|
40 | |||
40 | HEADERS += \ |
|
41 | HEADERS += \ | |
41 | ../../DEV_PLE/header/ccsds_types.h \ |
|
42 | ../../DEV_PLE/header/ccsds_types.h \ | |
42 | rmappluginui.h \ |
|
43 | rmappluginui.h \ | |
43 | rmapplugin.h \ |
|
44 | rmapplugin.h \ | |
44 | rmapoperations.h \ |
|
45 | rmapoperations.h \ | |
45 | ccsds.h \ |
|
46 | ccsds.h \ | |
46 | ../common_PLE/qipdialogbox.h \ |
|
47 | ../common_PLE/qipdialogbox.h \ | |
47 | ../common_PLE/gresbstatusenquiry.h \ |
|
48 | ../common_PLE/gresbstatusenquiry.h \ | |
48 | rmappluginpythonwrapper.h \ |
|
49 | rmappluginpythonwrapper.h \ | |
49 | stardundee.h \ |
|
50 | stardundee.h \ | |
50 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ |
|
51 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ | |
51 | ../spw_usb_driver_v2.61/inc/spw_config_library.h \ |
|
52 | ../spw_usb_driver_v2.61/inc/spw_config_library.h \ | |
52 | gresb.h \ |
|
53 | gresb.h \ | |
53 | tcpackettosend.h \ |
|
54 | tcpackettosend.h \ | |
54 | tmpackettoread.h \ |
|
55 | tmpackettoread.h \ | |
55 | tmstatistics.h \ |
|
56 | tmstatistics.h \ | |
56 | wfpacket.h \ |
|
57 | wfpacket.h \ | |
57 | params.h \ |
|
58 | params.h \ | |
58 | tmechobridge.h \ |
|
59 | tmechobridge.h \ | |
59 | entermode.h \ |
|
60 | entermode.h \ | |
60 | lfractions.h |
|
61 | lfractions.h | |
61 |
|
62 | |||
62 |
|
63 | |||
63 | SOURCES += \ |
|
64 | SOURCES += \ | |
64 | rmapplugin.cpp \ |
|
65 | rmapplugin.cpp \ | |
65 | rmappluginui.cpp \ |
|
66 | rmappluginui.cpp \ | |
66 | rmapoperations.cpp \ |
|
67 | rmapoperations.cpp \ | |
67 | ccsds.cpp \ |
|
68 | ccsds.cpp \ | |
68 | ../common_PLE/qipdialogbox.cpp \ |
|
69 | ../common_PLE/qipdialogbox.cpp \ | |
69 | ../common_PLE/gresbstatusenquiry.cpp \ |
|
70 | ../common_PLE/gresbstatusenquiry.cpp \ | |
70 | rmappluginpythonwrapper.cpp \ |
|
71 | rmappluginpythonwrapper.cpp \ | |
71 | stardundee.cpp \ |
|
72 | stardundee.cpp \ | |
72 | gresb.cpp \ |
|
73 | gresb.cpp \ | |
73 | tcpackettosend.cpp \ |
|
74 | tcpackettosend.cpp \ | |
74 | tmpackettoread.cpp \ |
|
75 | tmpackettoread.cpp \ | |
75 | tmstatistics.cpp \ |
|
76 | tmstatistics.cpp \ | |
76 | wfpacket.cpp \ |
|
77 | wfpacket.cpp \ | |
77 | tmechobridge.cpp \ |
|
78 | tmechobridge.cpp \ | |
78 | entermode.cpp \ |
|
79 | entermode.cpp \ | |
79 | lfractions.cpp |
|
80 | lfractions.cpp | |
80 |
|
81 | |||
81 |
|
82 | |||
82 |
|
83 | |||
83 |
|
84 | |||
84 |
|
85 | |||
85 |
|
86 | |||
86 |
|
87 | |||
87 |
|
88 | |||
88 |
|
89 | |||
89 |
|
90 |
@@ -1,298 +1,299 | |||||
1 | /*------------------------------------------------------------------------------ |
|
1 | /*------------------------------------------------------------------------------ | |
2 | -- This file is a part of the LPPMON Software |
|
2 | -- This file is a part of the LPPMON Software | |
3 | -- Copyright (C) 2011, Laboratory of Plasmas Physic - CNRS |
|
3 | -- Copyright (C) 2011, Laboratory of Plasmas Physic - CNRS | |
4 | -- |
|
4 | -- | |
5 | -- This program is free software; you can redistribute it and/or modify |
|
5 | -- This program is free software; you can redistribute it and/or modify | |
6 | -- it under the terms of the GNU General Public License as published by |
|
6 | -- it under the terms of the GNU General Public License as published by | |
7 | -- the Free Software Foundation; either version 3 of the License, or |
|
7 | -- the Free Software Foundation; either version 3 of the License, or | |
8 | -- (at your option) any later version. |
|
8 | -- (at your option) any later version. | |
9 | -- |
|
9 | -- | |
10 | -- This program is distributed in the hope that it will be useful, |
|
10 | -- This program is distributed in the hope that it will be useful, | |
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | -- GNU General Public License for more details. |
|
13 | -- GNU General Public License for more details. | |
14 | -- |
|
14 | -- | |
15 | -- You should have received a copy of the GNU General Public License |
|
15 | -- You should have received a copy of the GNU General Public License | |
16 | -- along with this program; if not, write to the Free Software |
|
16 | -- along with this program; if not, write to the Free Software | |
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | -------------------------------------------------------------------------------*/ |
|
18 | -------------------------------------------------------------------------------*/ | |
19 | /*-- Author : Alexis Jeandet |
|
19 | /*-- Author : Alexis Jeandet | |
20 | -- Mail : alexis.jeandet@lpp.polytechnique.fr |
|
20 | -- Mail : alexis.jeandet@lpp.polytechnique.fr | |
21 | ----------------------------------------------------------------------------*/ |
|
21 | ----------------------------------------------------------------------------*/ | |
22 | #include "rmapplugin.h" |
|
22 | #include "rmapplugin.h" | |
23 |
|
23 | |||
24 | rmapPluginUI::rmapPluginUI(QWidget *parent) : |
|
24 | rmapPluginUI::rmapPluginUI(QWidget *parent) : | |
25 | QWidget(parent) |
|
25 | QWidget(parent) | |
26 | { |
|
26 | { | |
27 | spwTabWidget = new QTabWidget; |
|
27 | spwTabWidget = new QTabWidget; | |
28 | // |
|
28 | // | |
29 | QWidget* spwTabWidgetPage0 = new QWidget; |
|
29 | QWidget* spwTabWidgetPage0 = new QWidget; | |
30 | QWidget* spwTabWidgetPage2 = new QWidget; |
|
30 | QWidget* spwTabWidgetPage2 = new QWidget; | |
31 | QWidget* spwTabWidgetPage3 = new QWidget; |
|
31 | QWidget* spwTabWidgetPage3 = new QWidget; | |
32 | QWidget* spwTabWidgetPage4 = new QWidget; |
|
32 | QWidget* spwTabWidgetPage4 = new QWidget; | |
33 | QWidget* spwTabWidgetPage5 = new QWidget; |
|
33 | QWidget* spwTabWidgetPage5 = new QWidget; | |
34 | QWidget* spwTabWidgetPage6 = new QWidget; |
|
34 | QWidget* spwTabWidgetPage6 = new QWidget; | |
35 | // |
|
35 | // | |
36 | bridgeWidget = new QWidget; |
|
36 | bridgeWidget = new QWidget; | |
37 | mainLayout = new QVBoxLayout; |
|
37 | mainLayout = new QVBoxLayout; | |
38 | ccsdsLayout = new QVBoxLayout; |
|
38 | ccsdsLayout = new QVBoxLayout; | |
39 | consoleLayout = new QVBoxLayout; |
|
39 | consoleLayout = new QVBoxLayout; | |
40 | selectionLayout = new QVBoxLayout; |
|
40 | selectionLayout = new QVBoxLayout; | |
41 | connectionLayout = new QGridLayout; |
|
41 | connectionLayout = new QGridLayout; | |
42 | bridgeSelection_LAYOUT = new QGridLayout; |
|
42 | bridgeSelection_LAYOUT = new QGridLayout; | |
43 | generalParameters_LAYOUT = new QGridLayout; |
|
43 | generalParameters_LAYOUT = new QGridLayout; | |
44 |
|
44 | |||
45 | gresb_GROUPBOX = new QGroupBox(tr("GRESB bridge parameters")); |
|
45 | gresb_GROUPBOX = new QGroupBox(tr("GRESB bridge parameters")); | |
46 | stardundee_GROUPBOX = new QGroupBox(tr("Star Dundee brick parameters")); |
|
46 | stardundee_GROUPBOX = new QGroupBox(tr("Star Dundee brick parameters")); | |
47 | selection_GROUPBOX = new QGroupBox(tr("Bridge selection")); |
|
47 | selection_GROUPBOX = new QGroupBox(tr("Bridge selection")); | |
48 | generalParameters_GROUPBOX = new QGroupBox(tr("General parameters")); |
|
48 | generalParameters_GROUPBOX = new QGroupBox(tr("General parameters")); | |
49 |
|
49 | |||
50 | //*** QLABEL ***// |
|
50 | //*** QLABEL ***// | |
51 | gresbBridgeIPLabel = new QLabel(tr("Bridge IP: ")); |
|
51 | gresbBridgeIPLabel = new QLabel(tr("Bridge IP: ")); | |
52 | gresbVirtualLinkLabel = new QLabel(tr("Virtual Link: ")); |
|
52 | gresbVirtualLinkLabel = new QLabel(tr("Virtual Link: ")); | |
53 | spwLinkLabel = new QLabel(tr("SPW Link: ")); |
|
53 | spwLinkLabel = new QLabel(tr("SPW Link: ")); | |
54 | rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: ")); |
|
54 | rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: ")); | |
55 | rmapTargetLogicalAddressLabel = new QLabel(tr("RMAP Target Logical Address: ")); |
|
55 | rmapTargetLogicalAddressLabel = new QLabel(tr("RMAP Target Logical Address: ")); | |
56 | logFileName = new QLabel; |
|
56 | logFileName = new QLabel; | |
57 | gresbStatusQueryLabel = new QLabel(tr("Status query socket (port 3010): waiting for connection")); |
|
57 | gresbStatusQueryLabel = new QLabel(tr("Status query socket (port 3010): waiting for connection")); | |
58 | gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running")); |
|
58 | gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running")); | |
59 | nbPacketInStore = new QLabel(tr("nb packets in store: -")); |
|
59 | nbPacketInStore = new QLabel(tr("nb packets in store: -")); | |
60 |
|
60 | |||
61 | //*** QPUSHBUTTON ***// |
|
61 | //*** QPUSHBUTTON ***// | |
62 | rmapOpenCommunicationButton = new QPushButton(tr("Open selected bridge")); |
|
62 | rmapOpenCommunicationButton = new QPushButton(tr("Open selected bridge")); | |
63 | rmapCloseCommunicationButton = new QPushButton(tr("Close selected bridge")); |
|
63 | rmapCloseCommunicationButton = new QPushButton(tr("Close selected bridge")); | |
64 | rmapOpenCommunicationButton->setEnabled(false); |
|
64 | rmapOpenCommunicationButton->setEnabled(false); | |
65 | rmapCloseCommunicationButton->setEnabled(false); |
|
65 | rmapCloseCommunicationButton->setEnabled(false); | |
66 | logFileChooseButton = new QPushButton(tr("Choose file")); |
|
66 | logFileChooseButton = new QPushButton(tr("Choose file")); | |
67 | gresbStatusQueryRetryButton = new QPushButton(tr("Retry")); |
|
67 | gresbStatusQueryRetryButton = new QPushButton(tr("Retry")); | |
68 | gresbStatusQueryAbortButton = new QPushButton(tr("Abort")); |
|
68 | gresbStatusQueryAbortButton = new QPushButton(tr("Abort")); | |
69 | clearConsoleButton = new QPushButton(tr("Clear")); |
|
69 | clearConsoleButton = new QPushButton(tr("Clear")); | |
70 |
|
70 | |||
71 | selectGRESB_BUTTON = new QRadioButton(tr("GRESB")); |
|
71 | selectGRESB_BUTTON = new QRadioButton(tr("GRESB")); | |
72 | selectStarDundee_BUTTON = new QRadioButton(tr("Star Dundee")); |
|
72 | selectStarDundee_BUTTON = new QRadioButton(tr("Star Dundee")); | |
73 |
|
73 | |||
74 | //*** SPINBOX ***// |
|
74 | //*** SPINBOX ***// | |
75 | gresbVirtualLinkSpinBox = new QSpinBox; |
|
75 | gresbVirtualLinkSpinBox = new QSpinBox; | |
76 | rmapSourceLogicalAddressSpinBox = new QSpinBox; |
|
76 | rmapSourceLogicalAddressSpinBox = new QSpinBox; | |
77 | rmapTargetLogicalAddressSpinBox = new QSpinBox; |
|
77 | rmapTargetLogicalAddressSpinBox = new QSpinBox; | |
78 | spwLinkSpinBox = new QSpinBox;; |
|
78 | spwLinkSpinBox = new QSpinBox;; | |
79 | CCSDSTargetLogicalAddressSpinBox = new QSpinBox; |
|
79 | CCSDSTargetLogicalAddressSpinBox = new QSpinBox; | |
80 | gresbVirtualLinkSpinBox->setRange(0, 4); |
|
80 | gresbVirtualLinkSpinBox->setRange(0, 4); | |
81 | gresbVirtualLinkSpinBox->setValue(1); |
|
81 | gresbVirtualLinkSpinBox->setValue(1); | |
82 | rmapSourceLogicalAddressSpinBox->setRange(0, 255); |
|
82 | rmapSourceLogicalAddressSpinBox->setRange(0, 255); | |
83 | rmapTargetLogicalAddressSpinBox->setRange(0, 255); |
|
83 | rmapTargetLogicalAddressSpinBox->setRange(0, 255); | |
84 | spwLinkSpinBox->setRange(0, 2); |
|
84 | spwLinkSpinBox->setRange(0, 2); | |
85 | spwLinkSpinBox->setValue(0); |
|
85 | spwLinkSpinBox->setValue(0); | |
86 |
|
86 | |||
87 | //*** MISC **// |
|
87 | //*** MISC **// | |
88 | starDundee = new StarDundee; |
|
88 | starDundee = new StarDundee; | |
89 | gresbBridge = new gresb; |
|
89 | gresbBridge = new gresb; | |
90 | tmEchoBridge = new TMEchoBridge(); |
|
90 | tmEchoBridge = new TMEchoBridge(); | |
91 | console = new QTextEdit; |
|
91 | console = new QTextEdit; | |
92 | gresbStatusQueryDialog = new QDialog; |
|
92 | gresbStatusQueryDialog = new QDialog; | |
93 | logEnableCheckBox = new QCheckBox(tr("Enable Logs")); |
|
93 | logEnableCheckBox = new QCheckBox(tr("Enable Logs")); | |
94 | RMAP_write_verify = new QCheckBox(tr("data checked before write\nlimited to 4 bytes\nNOT IMPLEMENTED")); |
|
94 | RMAP_write_verify = new QCheckBox(tr("data checked before write\nlimited to 4 bytes\nNOT IMPLEMENTED")); | |
95 | RMAP_write_reply = new QCheckBox(tr("reply to the write command required\nlast reply status: unavailable")); |
|
95 | RMAP_write_reply = new QCheckBox(tr("reply to the write command required\nlast reply status: unavailable")); | |
96 | logFile = new QFile(); |
|
96 | logFile = new QFile(); | |
97 | wfDisplay = new WFDisplay(); |
|
97 | wfDisplay = new WFDisplay(); | |
98 | tmStatistics = new TMStatistics(); |
|
98 | tmStatistics = new TMStatistics(); | |
99 | lfrActions = new LFRActions(); |
|
99 | lfrActions = new LFRActions(); | |
100 |
|
100 | |||
101 | logFileEn = false; |
|
101 | logFileEn = false; | |
102 |
|
102 | |||
103 | connectionLayout->setRowStretch(7, 1); |
|
103 | connectionLayout->setRowStretch(7, 1); | |
104 | connectionLayout->setColumnStretch(2, 1); |
|
104 | connectionLayout->setColumnStretch(2, 1); | |
105 |
|
105 | |||
106 | bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1); |
|
106 | bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1); | |
107 | bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1); |
|
107 | bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1); | |
108 |
|
108 | |||
109 | bridgeSelection_LAYOUT->setRowStretch(1, 1); |
|
109 | bridgeSelection_LAYOUT->setRowStretch(1, 1); | |
110 | bridgeSelection_LAYOUT->setColumnStretch(2, 1); |
|
110 | bridgeSelection_LAYOUT->setColumnStretch(2, 1); | |
111 |
|
111 | |||
112 | generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1); |
|
112 | generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1); | |
113 | generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1); |
|
113 | generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1); | |
114 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressLabel, 1, 0, 0); |
|
114 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressLabel, 1, 0, 0); | |
115 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressSpinBox, 1, 1, 0); |
|
115 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressSpinBox, 1, 1, 0); | |
116 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressLabel, 2, 0, 0); |
|
116 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressLabel, 2, 0, 0); | |
117 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressSpinBox, 2, 1, 0); |
|
117 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressSpinBox, 2, 1, 0); | |
118 | generalParameters_LAYOUT->addWidget(rmapOpenCommunicationButton, 3, 0, 1, 1); |
|
118 | generalParameters_LAYOUT->addWidget(rmapOpenCommunicationButton, 3, 0, 1, 1); | |
119 | generalParameters_LAYOUT->addWidget(rmapCloseCommunicationButton, 3, 1, 1, 1); |
|
119 | generalParameters_LAYOUT->addWidget(rmapCloseCommunicationButton, 3, 1, 1, 1); | |
120 | generalParameters_LAYOUT->addWidget(RMAP_write_verify, 4, 0, 1, 2); |
|
120 | generalParameters_LAYOUT->addWidget(RMAP_write_verify, 4, 0, 1, 2); | |
121 | generalParameters_LAYOUT->addWidget(RMAP_write_reply, 5, 0, 1, 2); |
|
121 | generalParameters_LAYOUT->addWidget(RMAP_write_reply, 5, 0, 1, 2); | |
122 |
|
122 | |||
123 | generalParameters_LAYOUT->setRowStretch(6, 1); |
|
123 | generalParameters_LAYOUT->setRowStretch(6, 1); | |
124 | generalParameters_LAYOUT->setColumnStretch(2, 1); |
|
124 | generalParameters_LAYOUT->setColumnStretch(2, 1); | |
125 |
|
125 | |||
126 | gresb_GROUPBOX->setLayout(gresbBridge->layout()); |
|
126 | gresb_GROUPBOX->setLayout(gresbBridge->layout()); | |
127 | gresb_GROUPBOX->setVisible(false); |
|
127 | gresb_GROUPBOX->setVisible(false); | |
128 | stardundee_GROUPBOX->setLayout(starDundee->layout()); |
|
128 | stardundee_GROUPBOX->setLayout(starDundee->layout()); | |
129 | stardundee_GROUPBOX->setVisible(false); |
|
129 | stardundee_GROUPBOX->setVisible(false); | |
130 | selection_GROUPBOX->setLayout(bridgeSelection_LAYOUT); |
|
130 | selection_GROUPBOX->setLayout(bridgeSelection_LAYOUT); | |
131 | generalParameters_GROUPBOX->setLayout(generalParameters_LAYOUT); |
|
131 | generalParameters_GROUPBOX->setLayout(generalParameters_LAYOUT); | |
132 | selectionLayout->addWidget(selection_GROUPBOX); |
|
132 | selectionLayout->addWidget(selection_GROUPBOX); | |
133 | selectionLayout->addWidget(generalParameters_GROUPBOX); |
|
133 | selectionLayout->addWidget(generalParameters_GROUPBOX); | |
134 | selectionLayout->addWidget(gresb_GROUPBOX); |
|
134 | selectionLayout->addWidget(gresb_GROUPBOX); | |
135 | selectionLayout->addWidget(stardundee_GROUPBOX); |
|
135 | selectionLayout->addWidget(stardundee_GROUPBOX); | |
|
136 | selectionLayout->addStretch(1); | |||
136 |
|
137 | |||
137 | //******** |
|
138 | //******** | |
138 | // CONSOLE |
|
139 | // CONSOLE | |
139 | consoleLayout->addWidget(console); |
|
140 | consoleLayout->addWidget(console); | |
140 | consoleLayout->addWidget(clearConsoleButton); |
|
141 | consoleLayout->addWidget(clearConsoleButton); | |
141 | consoleLayout->addWidget(nbPacketInStore); |
|
142 | consoleLayout->addWidget(nbPacketInStore); | |
142 |
|
143 | |||
143 | connect(this->logFileChooseButton, SIGNAL(clicked()), this, SLOT(chooseLogFile())); |
|
144 | connect(this->logFileChooseButton, SIGNAL(clicked()), this, SLOT(chooseLogFile())); | |
144 | connect(this, SIGNAL(setLogFileName(QString)), this->logFileName, SLOT(setText(QString))); |
|
145 | connect(this, SIGNAL(setLogFileName(QString)), this->logFileName, SLOT(setText(QString))); | |
145 | connect(this->logEnableCheckBox, SIGNAL(stateChanged(int)), this, SLOT(logFileEnDisable(int))); |
|
146 | connect(this->logEnableCheckBox, SIGNAL(stateChanged(int)), this, SLOT(logFileEnDisable(int))); | |
146 |
|
147 | |||
147 | spwTabWidget->addTab(spwTabWidgetPage0, tr("connection")); |
|
148 | spwTabWidget->addTab(spwTabWidgetPage0, tr("connection")); | |
148 | //spwTabWidget->addTab(spwTabWidgetPage2, tr("status")); |
|
149 | //spwTabWidget->addTab(spwTabWidgetPage2, tr("status")); | |
149 | spwTabWidget->addTab(spwTabWidgetPage3, tr("console")); |
|
150 | spwTabWidget->addTab(spwTabWidgetPage3, tr("console")); | |
150 | spwTabWidget->addTab(spwTabWidgetPage4, tr("TM statistics")); |
|
151 | spwTabWidget->addTab(spwTabWidgetPage4, tr("TM statistics")); | |
151 | spwTabWidget->addTab(lfrActions, tr("dashboard")); |
|
152 | spwTabWidget->addTab(lfrActions, tr("dashboard")); | |
152 | //spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms")); |
|
153 | //spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms")); | |
153 | spwTabWidget->addTab(spwTabWidgetPage6, tr("TM Echo Bridge")); |
|
154 | spwTabWidget->addTab(spwTabWidgetPage6, tr("TM Echo Bridge")); | |
154 |
|
155 | |||
155 | spwTabWidgetPage0->setLayout(selectionLayout); |
|
156 | spwTabWidgetPage0->setLayout(selectionLayout); | |
156 | spwTabWidgetPage2->setLayout(this->gresbBridge->spwLinkStatusEnquiry->mainLayout); |
|
157 | spwTabWidgetPage2->setLayout(this->gresbBridge->spwLinkStatusEnquiry->mainLayout); | |
157 | spwTabWidgetPage3->setLayout(consoleLayout); |
|
158 | spwTabWidgetPage3->setLayout(consoleLayout); | |
158 | spwTabWidgetPage4->setLayout(tmStatistics->layout()); |
|
159 | spwTabWidgetPage4->setLayout(tmStatistics->layout()); | |
159 | spwTabWidgetPage5->setLayout(wfDisplay->layout()); |
|
160 | spwTabWidgetPage5->setLayout(wfDisplay->layout()); | |
160 | spwTabWidgetPage6->setLayout(tmEchoBridge->layout()); |
|
161 | spwTabWidgetPage6->setLayout(tmEchoBridge->layout()); | |
161 |
|
162 | |||
162 | mainLayout->addWidget(spwTabWidget); |
|
163 | mainLayout->addWidget(spwTabWidget); | |
163 | setLayout(mainLayout); |
|
164 | setLayout(mainLayout); | |
164 |
|
165 | |||
165 | connect(this->clearConsoleButton, SIGNAL(clicked()), this->console, SLOT(clear())); |
|
166 | connect(this->clearConsoleButton, SIGNAL(clicked()), this->console, SLOT(clear())); | |
166 |
|
167 | |||
167 | // briges |
|
168 | // briges | |
168 | connect(this->selectGRESB_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); |
|
169 | connect(this->selectGRESB_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); | |
169 | connect(this->selectStarDundee_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); |
|
170 | connect(this->selectStarDundee_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); | |
170 | connect(this->starDundee, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); |
|
171 | connect(this->starDundee, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); | |
171 | connect(this->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); |
|
172 | connect(this->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); | |
172 |
|
173 | |||
173 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(sourceHasChanged(int))); |
|
174 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(sourceHasChanged(int))); | |
174 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(targetHasChanged(int))); |
|
175 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(targetHasChanged(int))); | |
175 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(sourceHasChanged(int))); |
|
176 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(sourceHasChanged(int))); | |
176 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(targetHasChanged(int))); |
|
177 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(targetHasChanged(int))); | |
177 |
|
178 | |||
178 | // command code |
|
179 | // command code | |
179 | connect(this->RMAP_write_reply, SIGNAL(clicked()), this, SLOT(getCommandCode())); |
|
180 | connect(this->RMAP_write_reply, SIGNAL(clicked()), this, SLOT(getCommandCode())); | |
180 | connect(this->RMAP_write_verify, SIGNAL(clicked()), this, SLOT(getCommandCode())); |
|
181 | connect(this->RMAP_write_verify, SIGNAL(clicked()), this, SLOT(getCommandCode())); | |
181 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), |
|
182 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), | |
182 | this->starDundee, SLOT(commandCodeHasChanged(RMAP_command_codes))); |
|
183 | this->starDundee, SLOT(commandCodeHasChanged(RMAP_command_codes))); | |
183 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), |
|
184 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), | |
184 | this->gresbBridge, SLOT(commandCodeHasChanged(RMAP_command_codes))); |
|
185 | this->gresbBridge, SLOT(commandCodeHasChanged(RMAP_command_codes))); | |
185 |
|
186 | |||
186 | getCommandCode(); // init the command code value |
|
187 | getCommandCode(); // init the command code value | |
187 | rmapSourceLogicalAddressSpinBox->setValue(DEFAULT_SOURCE); |
|
188 | rmapSourceLogicalAddressSpinBox->setValue(DEFAULT_SOURCE); | |
188 | rmapTargetLogicalAddressSpinBox->setValue(DEFAULT_TARGET); |
|
189 | rmapTargetLogicalAddressSpinBox->setValue(DEFAULT_TARGET); | |
189 | } |
|
190 | } | |
190 |
|
191 | |||
191 | rmapPluginUI::~rmapPluginUI() |
|
192 | rmapPluginUI::~rmapPluginUI() | |
192 | { |
|
193 | { | |
193 | //delete ui; |
|
194 | //delete ui; | |
194 | } |
|
195 | } | |
195 |
|
196 | |||
196 | void rmapPluginUI::chooseLogFile() |
|
197 | void rmapPluginUI::chooseLogFile() | |
197 | { |
|
198 | { | |
198 | if(this->logFile->isOpen()) |
|
199 | if(this->logFile->isOpen()) | |
199 | this->logFile->close(); |
|
200 | this->logFile->close(); | |
200 | this->logFile->setFileName(QFileDialog::getSaveFileName(this,tr("Open Log file"), |
|
201 | this->logFile->setFileName(QFileDialog::getSaveFileName(this,tr("Open Log file"), | |
201 | QDir::homePath() |
|
202 | QDir::homePath() | |
202 | + "/" |
|
203 | + "/" | |
203 | + QDate::currentDate().toString() |
|
204 | + QDate::currentDate().toString() | |
204 | + "_" |
|
205 | + "_" | |
205 | + QTime::currentTime().toString() |
|
206 | + QTime::currentTime().toString() | |
206 | + "_rmapPluginUI.log", |
|
207 | + "_rmapPluginUI.log", | |
207 | tr("Log Files (*.txt *.log)"))); |
|
208 | tr("Log Files (*.txt *.log)"))); | |
208 | if(this->logFile->open(QIODevice::WriteOnly)) |
|
209 | if(this->logFile->open(QIODevice::WriteOnly)) | |
209 | { |
|
210 | { | |
210 | this->logFileStrm = new QTextStream(this->logFile); |
|
211 | this->logFileStrm = new QTextStream(this->logFile); | |
211 | emit this->setLogFileName(this->logFile->fileName()); |
|
212 | emit this->setLogFileName(this->logFile->fileName()); | |
212 | } |
|
213 | } | |
213 | } |
|
214 | } | |
214 |
|
215 | |||
215 | void rmapPluginUI::logFileEnDisable(int state) |
|
216 | void rmapPluginUI::logFileEnDisable(int state) | |
216 | { |
|
217 | { | |
217 | if(state==Qt::Checked) |
|
218 | if(state==Qt::Checked) | |
218 | { |
|
219 | { | |
219 | this->logFileEn = true; |
|
220 | this->logFileEn = true; | |
220 | } |
|
221 | } | |
221 | else if(state==Qt::Unchecked) |
|
222 | else if(state==Qt::Unchecked) | |
222 | { |
|
223 | { | |
223 | this->logFileEn = false; |
|
224 | this->logFileEn = false; | |
224 | } |
|
225 | } | |
225 | } |
|
226 | } | |
226 |
|
227 | |||
227 | bool rmapPluginUI::islogfileenable() |
|
228 | bool rmapPluginUI::islogfileenable() | |
228 | { |
|
229 | { | |
229 | return this->logFileEn; |
|
230 | return this->logFileEn; | |
230 | } |
|
231 | } | |
231 |
|
232 | |||
232 | void rmapPluginUI::appendToLogFile(const QString & text) |
|
233 | void rmapPluginUI::appendToLogFile(const QString & text) | |
233 | { |
|
234 | { | |
234 | if(this->logFileEn && this->logFile->isOpen()) |
|
235 | if(this->logFileEn && this->logFile->isOpen()) | |
235 | { |
|
236 | { | |
236 | *(this->logFileStrm) << text << endl; |
|
237 | *(this->logFileStrm) << text << endl; | |
237 | } |
|
238 | } | |
238 | } |
|
239 | } | |
239 |
|
240 | |||
240 | void rmapPluginUI::closeEvent(QCloseEvent *event) |
|
241 | void rmapPluginUI::closeEvent(QCloseEvent *event) | |
241 | { |
|
242 | { | |
242 | if(this->logFile->isOpen()) |
|
243 | if(this->logFile->isOpen()) | |
243 | { |
|
244 | { | |
244 | this->logFileStrm->flush(); |
|
245 | this->logFileStrm->flush(); | |
245 | this->logFile->waitForBytesWritten(3000); |
|
246 | this->logFile->waitForBytesWritten(3000); | |
246 | this->logFile->close(); |
|
247 | this->logFile->close(); | |
247 | } |
|
248 | } | |
248 | event->accept(); |
|
249 | event->accept(); | |
249 | } |
|
250 | } | |
250 |
|
251 | |||
251 | RMAP_command_codes rmapPluginUI::getCommandCode() |
|
252 | RMAP_command_codes rmapPluginUI::getCommandCode() | |
252 | { |
|
253 | { | |
253 | RMAP_command_codes commandCode = invalid0; |
|
254 | RMAP_command_codes commandCode = invalid0; | |
254 | if (RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_rep; |
|
255 | if (RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_rep; | |
255 | if (RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_noRep; |
|
256 | if (RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_noRep; | |
256 | if (!RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_Rep; |
|
257 | if (!RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_Rep; | |
257 | if (!RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_noRep; |
|
258 | if (!RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_noRep; | |
258 | emit commandCodeHasChanged(commandCode); |
|
259 | emit commandCodeHasChanged(commandCode); | |
259 | return commandCode; |
|
260 | return commandCode; | |
260 | } |
|
261 | } | |
261 |
|
262 | |||
262 | // SLOT |
|
263 | // SLOT | |
263 |
|
264 | |||
264 | void rmapPluginUI::selectionBetweenGresbAndStarDundee() //SLOT |
|
265 | void rmapPluginUI::selectionBetweenGresbAndStarDundee() //SLOT | |
265 | { |
|
266 | { | |
266 | if (selectGRESB_BUTTON->isChecked()) |
|
267 | if (selectGRESB_BUTTON->isChecked()) | |
267 | { |
|
268 | { | |
268 | gresb_GROUPBOX->setVisible(true); |
|
269 | gresb_GROUPBOX->setVisible(true); | |
269 | stardundee_GROUPBOX->setVisible(false); |
|
270 | stardundee_GROUPBOX->setVisible(false); | |
270 | rmapOpenCommunicationButton->setEnabled(true); |
|
271 | rmapOpenCommunicationButton->setEnabled(true); | |
271 | emit bridgeHasChanged(selectedBridgeIsGRESB); |
|
272 | emit bridgeHasChanged(selectedBridgeIsGRESB); | |
272 | } |
|
273 | } | |
273 | if (selectStarDundee_BUTTON->isChecked()) |
|
274 | if (selectStarDundee_BUTTON->isChecked()) | |
274 | { |
|
275 | { | |
275 | stardundee_GROUPBOX->setVisible(true); |
|
276 | stardundee_GROUPBOX->setVisible(true); | |
276 | gresb_GROUPBOX->setVisible(false); |
|
277 | gresb_GROUPBOX->setVisible(false); | |
277 | rmapOpenCommunicationButton->setEnabled(true); |
|
278 | rmapOpenCommunicationButton->setEnabled(true); | |
278 | emit bridgeHasChanged(selectedBridgeIsStarDundee); |
|
279 | emit bridgeHasChanged(selectedBridgeIsStarDundee); | |
279 | } |
|
280 | } | |
280 | } |
|
281 | } | |
281 |
|
282 | |||
282 | void rmapPluginUI::isOpen(bool flag) |
|
283 | void rmapPluginUI::isOpen(bool flag) | |
283 | { |
|
284 | { | |
284 | if (flag == true) |
|
285 | if (flag == true) | |
285 | { |
|
286 | { | |
286 | selection_GROUPBOX->setEnabled(false); |
|
287 | selection_GROUPBOX->setEnabled(false); | |
287 | this->rmapOpenCommunicationButton->setEnabled(false); |
|
288 | this->rmapOpenCommunicationButton->setEnabled(false); | |
288 | this->rmapCloseCommunicationButton->setEnabled(true); |
|
289 | this->rmapCloseCommunicationButton->setEnabled(true); | |
289 | } |
|
290 | } | |
290 | if (flag == false) |
|
291 | if (flag == false) | |
291 | { |
|
292 | { | |
292 | selection_GROUPBOX->setEnabled(true); |
|
293 | selection_GROUPBOX->setEnabled(true); | |
293 | this->rmapOpenCommunicationButton->setEnabled(true); |
|
294 | this->rmapOpenCommunicationButton->setEnabled(true); | |
294 | this->rmapCloseCommunicationButton->setEnabled(false); |
|
295 | this->rmapCloseCommunicationButton->setEnabled(false); | |
295 | } |
|
296 | } | |
296 | } |
|
297 | } | |
297 |
|
298 | |||
298 |
|
299 |
@@ -1,749 +1,874 | |||||
1 | #include "tmstatistics.h" |
|
1 | #include "tmstatistics.h" | |
2 | #include <QtGui> |
|
2 | #include <QtGui> | |
3 | #include <QFontInfo> |
|
3 | #include <QFontInfo> | |
4 | #include <stdio.h> |
|
4 | #include <stdio.h> | |
5 |
|
5 | |||
6 | TMStatistics::TMStatistics(QWidget *parent) : |
|
6 | TMStatistics::TMStatistics(QWidget *parent) : | |
7 | QWidget(parent) |
|
7 | QWidget(parent) | |
8 | { |
|
8 | { | |
9 | // Create Fonts |
|
9 | // Create Fonts | |
10 | QFont font; |
|
10 | QFont font; | |
11 | font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light); |
|
11 | font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light); | |
12 |
|
12 | |||
13 | label_UNKNOWN = new QLabel("UNKNOWN"); |
|
13 | label_UNKNOWN = new QLabel("UNKNOWN"); | |
14 | label_UNKNOWN_nb = new QLabel("-"); |
|
14 | label_UNKNOWN_nb = new QLabel("-"); | |
15 |
|
15 | |||
16 | mainLayout = new QGridLayout(); |
|
16 | mainLayout = new QGridLayout(); | |
17 | layout_stat = new QGridLayout(); // TM stastictics |
|
17 | layout_stat = new QGridLayout(); // TM stastictics | |
18 | layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_ |
|
18 | layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_ | |
19 | layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_ |
|
19 | layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_ | |
20 | layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_ |
|
20 | layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_ | |
21 | layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_ |
|
21 | layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_ | |
22 | layout_last = new QGridLayout(); // last TM description |
|
22 | layout_last = new QGridLayout(); // last TM description | |
23 | layout_record = new QVBoxLayout(); |
|
23 | layout_record = new QVBoxLayout(); | |
24 |
|
24 | |||
25 | //*************** |
|
25 | //*************** | |
26 | // TM_LFR_TC_EXE_ |
|
26 | // TM_LFR_TC_EXE_ | |
27 | label_SUCC = new QLabel("SUCCESS"); |
|
27 | label_SUCC = new QLabel("SUCCESS"); | |
28 | label_INCO = new QLabel("INCONSISTENT"); |
|
28 | label_INCO = new QLabel("INCONSISTENT"); | |
29 | label_NOTE = new QLabel("NOT_EXECUTABLE"); |
|
29 | label_NOTE = new QLabel("NOT_EXECUTABLE"); | |
30 | label_NOTI = new QLabel("NOT_IMPLEMENTED"); |
|
30 | label_NOTI = new QLabel("NOT_IMPLEMENTED"); | |
31 | label_ERRO = new QLabel("ERROR"); |
|
31 | label_ERRO = new QLabel("ERROR"); | |
32 | label_CORR = new QLabel("CORRUPTED"); |
|
32 | label_CORR = new QLabel("CORRUPTED"); | |
33 | label_HK = new QLabel("TM_LFR_HK"); |
|
33 | label_HK = new QLabel("TM_LFR_HK"); | |
34 | label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP"); |
|
34 | label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP"); | |
35 | // |
|
35 | // | |
36 | label_SUCC_nb = new QLabel("-"); |
|
36 | label_SUCC_nb = new QLabel("-"); | |
37 | label_INCO_nb = new QLabel("-"); |
|
37 | label_INCO_nb = new QLabel("-"); | |
38 | label_NOTE_nb = new QLabel("-"); |
|
38 | label_NOTE_nb = new QLabel("-"); | |
39 | label_NOTI_nb = new QLabel("-"); |
|
39 | label_NOTI_nb = new QLabel("-"); | |
40 | label_ERRO_nb = new QLabel("-"); |
|
40 | label_ERRO_nb = new QLabel("-"); | |
41 | label_CORR_nb = new QLabel("-"); |
|
41 | label_CORR_nb = new QLabel("-"); | |
42 | label_HK_nb = new QLabel("-"); |
|
42 | label_HK_nb = new QLabel("-"); | |
43 | label_DUMP_nb = new QLabel("-"); |
|
43 | label_DUMP_nb = new QLabel("-"); | |
44 |
|
44 | |||
45 | //*********************** |
|
45 | //*********************** | |
46 | // TM_LFR_SCIENCE_NORMAL_ |
|
46 | // TM_LFR_SCIENCE_NORMAL_ | |
47 | label_NORM_SWF_F0 = new QLabel("SWF_F0"); |
|
47 | label_NORM_SWF_F0 = new QLabel("SWF_F0"); | |
48 | label_NORM_SWF_F1 = new QLabel("SWF_F1"); |
|
48 | label_NORM_SWF_F1 = new QLabel("SWF_F1"); | |
49 | label_NORM_SWF_F2 = new QLabel("SWF_F2"); |
|
49 | label_NORM_SWF_F2 = new QLabel("SWF_F2"); | |
50 | label_NORM_CWF_F3 = new QLabel("CWF_F3"); |
|
50 | label_NORM_CWF_F3 = new QLabel("CWF_F3"); | |
51 | label_NORM_ASM_F0 = new QLabel("ASM_F0"); |
|
51 | label_NORM_ASM_F0 = new QLabel("ASM_F0"); | |
52 | label_NORM_ASM_F1 = new QLabel("ASM_F1"); |
|
52 | label_NORM_ASM_F1 = new QLabel("ASM_F1"); | |
53 | label_NORM_ASM_F2 = new QLabel("ASM_F2"); |
|
53 | label_NORM_ASM_F2 = new QLabel("ASM_F2"); | |
54 | label_NORM_BP1_F0 = new QLabel("BP1_F0"); |
|
54 | label_NORM_BP1_F0 = new QLabel("BP1_F0"); | |
55 | label_NORM_BP1_F1 = new QLabel("BP1_F1"); |
|
55 | label_NORM_BP1_F1 = new QLabel("BP1_F1"); | |
56 | label_NORM_BP1_F2 = new QLabel("BP1_F2"); |
|
56 | label_NORM_BP1_F2 = new QLabel("BP1_F2"); | |
57 | label_NORM_BP2_F0 = new QLabel("BP2_F0"); |
|
57 | label_NORM_BP2_F0 = new QLabel("BP2_F0"); | |
58 | label_NORM_BP2_F1 = new QLabel("BP2_F1"); |
|
58 | label_NORM_BP2_F1 = new QLabel("BP2_F1"); | |
59 | label_NORM_BP2_F2 = new QLabel("BP2_F2"); |
|
59 | label_NORM_BP2_F2 = new QLabel("BP2_F2"); | |
60 | // |
|
60 | // | |
61 | label_NORM_SWF_F0_nb = new QLabel("-"); |
|
61 | label_NORM_SWF_F0_nb = new QLabel("-"); | |
62 | label_NORM_SWF_F1_nb = new QLabel("-"); |
|
62 | label_NORM_SWF_F1_nb = new QLabel("-"); | |
63 | label_NORM_SWF_F2_nb = new QLabel("-"); |
|
63 | label_NORM_SWF_F2_nb = new QLabel("-"); | |
64 | label_NORM_CWF_F3_nb = new QLabel("-"); |
|
64 | label_NORM_CWF_F3_nb = new QLabel("-"); | |
65 | label_NORM_ASM_F0_nb = new QLabel("-"); |
|
65 | label_NORM_ASM_F0_nb = new QLabel("-"); | |
66 | label_NORM_ASM_F1_nb = new QLabel("-"); |
|
66 | label_NORM_ASM_F1_nb = new QLabel("-"); | |
67 | label_NORM_ASM_F2_nb = new QLabel("-"); |
|
67 | label_NORM_ASM_F2_nb = new QLabel("-"); | |
68 | label_NORM_BP1_F0_nb = new QLabel("-"); |
|
68 | label_NORM_BP1_F0_nb = new QLabel("-"); | |
69 | label_NORM_BP1_F1_nb = new QLabel("-"); |
|
69 | label_NORM_BP1_F1_nb = new QLabel("-"); | |
70 | label_NORM_BP1_F2_nb = new QLabel("-"); |
|
70 | label_NORM_BP1_F2_nb = new QLabel("-"); | |
71 | label_NORM_BP2_F0_nb = new QLabel("-"); |
|
71 | label_NORM_BP2_F0_nb = new QLabel("-"); | |
72 | label_NORM_BP2_F1_nb = new QLabel("-"); |
|
72 | label_NORM_BP2_F1_nb = new QLabel("-"); | |
73 | label_NORM_BP2_F2_nb = new QLabel("-"); |
|
73 | label_NORM_BP2_F2_nb = new QLabel("-"); | |
74 |
|
74 | |||
75 | //********************** |
|
75 | //********************** | |
76 | // TM_LFR_SCIENCE_BURST_ |
|
76 | // TM_LFR_SCIENCE_BURST_ | |
77 | label_BURST_CWF_F2 = new QLabel("CWF_F2"); |
|
77 | label_BURST_CWF_F2 = new QLabel("CWF_F2"); | |
78 | label_BURST_BP1_F0 = new QLabel("BP1_F0"); |
|
78 | label_BURST_BP1_F0 = new QLabel("BP1_F0"); | |
79 | label_BURST_BP2_F0 = new QLabel("BP2_F0"); |
|
79 | label_BURST_BP2_F0 = new QLabel("BP2_F0"); | |
80 | label_BURST_BP1_F1 = new QLabel("BP1_F1"); |
|
80 | label_BURST_BP1_F1 = new QLabel("BP1_F1"); | |
81 | label_BURST_BP2_F1 = new QLabel("BP2_F1"); |
|
81 | label_BURST_BP2_F1 = new QLabel("BP2_F1"); | |
82 | // |
|
82 | // | |
83 | label_BURST_CWF_F2_nb = new QLabel("-"); |
|
83 | label_BURST_CWF_F2_nb = new QLabel("-"); | |
84 | label_BURST_BP1_F0_nb = new QLabel("-"); |
|
84 | label_BURST_BP1_F0_nb = new QLabel("-"); | |
85 | label_BURST_BP2_F0_nb = new QLabel("-"); |
|
85 | label_BURST_BP2_F0_nb = new QLabel("-"); | |
86 | label_BURST_BP1_F1_nb = new QLabel("-"); |
|
86 | label_BURST_BP1_F1_nb = new QLabel("-"); | |
87 | label_BURST_BP2_F1_nb = new QLabel("-"); |
|
87 | label_BURST_BP2_F1_nb = new QLabel("-"); | |
88 |
|
88 | |||
89 | //********************* |
|
89 | //********************* | |
90 | // TM_LFR_SCIENCE_SBM1_ |
|
90 | // TM_LFR_SCIENCE_SBM1_ | |
91 | label_SBM1_CWF_F1 = new QLabel("CWF_F1"); |
|
91 | label_SBM1_CWF_F1 = new QLabel("CWF_F1"); | |
92 | label_SBM1_BP1_F0 = new QLabel("BP1_F0"); |
|
92 | label_SBM1_BP1_F0 = new QLabel("BP1_F0"); | |
93 | label_SBM1_BP2_F0 = new QLabel("BP2_F0"); |
|
93 | label_SBM1_BP2_F0 = new QLabel("BP2_F0"); | |
94 | // |
|
94 | // | |
95 | label_SBM1_CWF_F1_nb = new QLabel("-"); |
|
95 | label_SBM1_CWF_F1_nb = new QLabel("-"); | |
96 | label_SBM1_BP1_F0_nb = new QLabel("-"); |
|
96 | label_SBM1_BP1_F0_nb = new QLabel("-"); | |
97 | label_SBM1_BP2_F0_nb = new QLabel("-"); |
|
97 | label_SBM1_BP2_F0_nb = new QLabel("-"); | |
98 |
|
98 | |||
99 | //********************* |
|
99 | //********************* | |
100 | // TM_LFR_SCIENCE_SBM2_ |
|
100 | // TM_LFR_SCIENCE_SBM2_ | |
101 | label_SBM2_CWF_F2 = new QLabel("CWF_F2"); |
|
101 | label_SBM2_CWF_F2 = new QLabel("CWF_F2"); | |
102 | label_SBM2_BP1_F0 = new QLabel("BP1_F0"); |
|
102 | label_SBM2_BP1_F0 = new QLabel("BP1_F0"); | |
103 | label_SBM2_BP2_F0 = new QLabel("BP2_F0"); |
|
103 | label_SBM2_BP2_F0 = new QLabel("BP2_F0"); | |
104 | label_SBM2_BP1_F1 = new QLabel("BP1_F1"); |
|
104 | label_SBM2_BP1_F1 = new QLabel("BP1_F1"); | |
105 | label_SBM2_BP2_F1 = new QLabel("BP2_F1"); |
|
105 | label_SBM2_BP2_F1 = new QLabel("BP2_F1"); | |
106 | // |
|
106 | // | |
107 | label_SBM2_CWF_F2_nb = new QLabel("-"); |
|
107 | label_SBM2_CWF_F2_nb = new QLabel("-"); | |
108 | label_SBM2_BP1_F0_nb = new QLabel("-"); |
|
108 | label_SBM2_BP1_F0_nb = new QLabel("-"); | |
109 | label_SBM2_BP2_F0_nb = new QLabel("-"); |
|
109 | label_SBM2_BP2_F0_nb = new QLabel("-"); | |
110 | label_SBM2_BP1_F1_nb = new QLabel("-"); |
|
110 | label_SBM2_BP1_F1_nb = new QLabel("-"); | |
111 | label_SBM2_BP2_F1_nb = new QLabel("-"); |
|
111 | label_SBM2_BP2_F1_nb = new QLabel("-"); | |
112 |
|
112 | |||
113 | //******** |
|
113 | //******** | |
114 | // LAST TM |
|
114 | // LAST TM | |
115 | label_PID = new QLabel("PID"); |
|
115 | label_PID = new QLabel("PID"); | |
116 | label_CAT = new QLabel("CAT"); |
|
116 | label_CAT = new QLabel("CAT"); | |
117 | label_TYP = new QLabel("Type"); |
|
117 | label_TYP = new QLabel("Type"); | |
118 | label_SUB = new QLabel("Subtype"); |
|
118 | label_SUB = new QLabel("Subtype"); | |
119 | label_SID = new QLabel("SID"); |
|
119 | label_SID = new QLabel("SID"); | |
120 | label_SIZ = new QLabel("Length"); |
|
120 | label_SIZ = new QLabel("Length"); | |
121 | label_coarse_time = new QLabel("Coarse time: "); |
|
121 | label_coarse_time = new QLabel("Coarse time: "); | |
122 | label_fine_time = new QLabel("Fine time: "); |
|
122 | label_fine_time = new QLabel("Fine time: "); | |
123 | // |
|
123 | // | |
124 | label_PID_is = new QLabel("-"); |
|
124 | label_PID_is = new QLabel("-"); | |
125 | label_CAT_is = new QLabel("-"); |
|
125 | label_CAT_is = new QLabel("-"); | |
126 | label_TYP_is = new QLabel("-"); |
|
126 | label_TYP_is = new QLabel("-"); | |
127 | label_SUB_is = new QLabel("-"); |
|
127 | label_SUB_is = new QLabel("-"); | |
128 | label_SID_is = new QLabel("-"); |
|
128 | label_SID_is = new QLabel("-"); | |
129 | label_SIZ_is = new QLabel("-"); |
|
129 | label_SIZ_is = new QLabel("-"); | |
130 | label_coarse_time_val = new QLabel("-"); |
|
130 | label_coarse_time_val = new QLabel("-"); | |
131 | label_fine_time_val = new QLabel("-"); |
|
131 | label_fine_time_val = new QLabel("-"); | |
132 |
|
132 | |||
133 | // QPushButton |
|
133 | // QPushButton | |
134 | button_reset_stat = new QPushButton("reset stat"); |
|
134 | button_reset_stat = new QPushButton("reset stat"); | |
135 | button_record = new QPushButton("REC"); |
|
|||
136 | button_chooseDir = new QPushButton("choose dir"); |
|
135 | button_chooseDir = new QPushButton("choose dir"); | |
137 |
|
136 | |||
|
137 | //QCheckBox | |||
|
138 | checkbox_record = new QCheckBox("Record packets"); | |||
|
139 | checkbox_packetLog = new QCheckBox("Log packets"); | |||
|
140 | label_currentDir = new QLabel("Current Dir: -"); | |||
|
141 | ||||
138 | //********** |
|
142 | //********** | |
139 | // QGroupBox |
|
143 | // QGroupBox | |
140 | this->setStyleSheet("QGroupBox {border: 1px solid black; }"); |
|
144 | this->setStyleSheet("QGroupBox {border: 1px solid black; }"); | |
141 |
|
145 | |||
142 | groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_"); |
|
146 | groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_"); | |
143 | groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_"); |
|
147 | groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_"); | |
144 | groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_"); |
|
148 | groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_"); | |
145 | groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_"); |
|
149 | groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_"); | |
146 | groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_"); |
|
150 | groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_"); | |
147 | groupbox_last = new QGroupBox("Last TM received"); |
|
151 | groupbox_last = new QGroupBox("Last TM received"); | |
148 | groupbox_record = new QGroupBox("Packet recording"); |
|
152 | groupbox_record = new QGroupBox("Packet recording"); | |
149 |
|
153 | |||
150 | groupbox_stat->setFont(font); |
|
|||
151 | groupbox_NORM->setFont(font); |
|
|||
152 | groupbox_BURST->setFont(font); |
|
|||
153 | groupbox_SBM1->setFont(font); |
|
|||
154 | groupbox_SBM2->setFont(font); |
|
|||
155 | groupbox_last->setFont(font); |
|
|||
156 | groupbox_record->setFont(font); |
|
|||
157 |
|
||||
158 | readSettings(); |
|
154 | readSettings(); | |
159 | logFile = new QFile(); |
|
155 | logFile = new QFile(); | |
|
156 | packetLogFile = new QFile(); | |||
160 | logFileEn = false; |
|
157 | logFileEn = false; | |
|
158 | packetLogFileEn = false; | |||
161 |
|
159 | |||
162 | initConstants(); |
|
160 | initConstants(); | |
163 |
|
161 | |||
164 | buildMonitor_NORM(); |
|
162 | buildMonitor_NORM(); | |
165 | buildMonitor_BURST(); |
|
163 | buildMonitor_BURST(); | |
166 | buildMonitor_SBM1(); |
|
164 | buildMonitor_SBM1(); | |
167 | buildMonitor_SBM2(); |
|
165 | buildMonitor_SBM2(); | |
168 | buildMonitor(); |
|
166 | buildMonitor(); | |
169 |
|
167 | |||
|
168 | groupbox_stat->setFont(font); | |||
|
169 | groupbox_NORM->setFont(font); | |||
|
170 | groupbox_BURST->setFont(font); | |||
|
171 | groupbox_SBM1->setFont(font); | |||
|
172 | groupbox_SBM2->setFont(font); | |||
|
173 | groupbox_last->setFont(font); | |||
|
174 | groupbox_record->setFont(font); | |||
|
175 | ||||
170 | connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics())); |
|
176 | connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics())); | |
171 | connect(this->button_record, SIGNAL(clicked()), this, SLOT(storePackets())); |
|
|||
172 | connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir())); |
|
177 | connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir())); | |
|
178 | ||||
|
179 | connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int))); | |||
|
180 | connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int))); | |||
173 | } |
|
181 | } | |
174 |
|
182 | |||
175 | void TMStatistics::initConstants() |
|
183 | void TMStatistics::initConstants() | |
176 | { |
|
184 | { | |
177 | UNKNOWN_nb = 0; |
|
185 | UNKNOWN_nb = 0; | |
178 |
|
186 | |||
179 | // TM_LFR_TC_EXE_ |
|
187 | // TM_LFR_TC_EXE_ | |
180 | SUCC_nb = 0; |
|
188 | SUCC_nb = 0; | |
181 | INCO_nb = 0; |
|
189 | INCO_nb = 0; | |
182 | NOTE_nb = 0; |
|
190 | NOTE_nb = 0; | |
183 | NOTI_nb = 0; |
|
191 | NOTI_nb = 0; | |
184 | ERRO_nb = 0; |
|
192 | ERRO_nb = 0; | |
185 | CORR_nb = 0; |
|
193 | CORR_nb = 0; | |
186 | HK_nb = 0; |
|
194 | HK_nb = 0; | |
187 | DUMP_nb = 0; |
|
195 | DUMP_nb = 0; | |
188 |
|
196 | |||
189 | // TM_LFR_SCIENCE_NORMAL_ |
|
197 | // TM_LFR_SCIENCE_NORMAL_ | |
190 | NORM_SWF_F0_nb = 0; |
|
198 | NORM_SWF_F0_nb = 0; | |
191 | NORM_SWF_F1_nb = 0; |
|
199 | NORM_SWF_F1_nb = 0; | |
192 | NORM_SWF_F2_nb = 0; |
|
200 | NORM_SWF_F2_nb = 0; | |
193 | NORM_CWF_F3_nb = 0; |
|
201 | NORM_CWF_F3_nb = 0; | |
194 | NORM_ASM_F0_nb = 0; |
|
202 | NORM_ASM_F0_nb = 0; | |
195 | NORM_ASM_F1_nb = 0; |
|
203 | NORM_ASM_F1_nb = 0; | |
196 | NORM_ASM_F2_nb = 0; |
|
204 | NORM_ASM_F2_nb = 0; | |
197 | NORM_BP1_F0_nb = 0; |
|
205 | NORM_BP1_F0_nb = 0; | |
198 | NORM_BP1_F1_nb = 0; |
|
206 | NORM_BP1_F1_nb = 0; | |
199 | NORM_BP1_F2_nb = 0; |
|
207 | NORM_BP1_F2_nb = 0; | |
200 | NORM_BP2_F0_nb = 0; |
|
208 | NORM_BP2_F0_nb = 0; | |
201 | NORM_BP2_F1_nb = 0; |
|
209 | NORM_BP2_F1_nb = 0; | |
202 | NORM_BP2_F2_nb = 0; |
|
210 | NORM_BP2_F2_nb = 0; | |
203 |
|
211 | |||
204 | BURST_CWF_F2_nb = 0; |
|
212 | BURST_CWF_F2_nb = 0; | |
205 | BURST_BP1_F0_nb = 0; |
|
213 | BURST_BP1_F0_nb = 0; | |
206 | BURST_BP2_F0_nb = 0; |
|
214 | BURST_BP2_F0_nb = 0; | |
207 | BURST_BP1_F1_nb = 0; |
|
215 | BURST_BP1_F1_nb = 0; | |
208 | BURST_BP2_F1_nb = 0; |
|
216 | BURST_BP2_F1_nb = 0; | |
209 | SBM1_CWF_F1_nb = 0; |
|
217 | SBM1_CWF_F1_nb = 0; | |
210 | SBM1_BP1_F0_nb = 0; |
|
218 | SBM1_BP1_F0_nb = 0; | |
211 | SBM1_BP2_F0_nb = 0; |
|
219 | SBM1_BP2_F0_nb = 0; | |
212 | SBM2_CWF_F2_nb = 0; |
|
220 | SBM2_CWF_F2_nb = 0; | |
213 | SBM2_BP1_F0_nb = 0; |
|
221 | SBM2_BP1_F0_nb = 0; | |
214 | SBM2_BP2_F0_nb = 0; |
|
222 | SBM2_BP2_F0_nb = 0; | |
215 | SBM2_BP1_F1_nb = 0; |
|
223 | SBM2_BP1_F1_nb = 0; | |
216 | SBM2_BP2_F1_nb = 0; |
|
224 | SBM2_BP2_F1_nb = 0; | |
217 | } |
|
225 | } | |
218 |
|
226 | |||
219 | void TMStatistics::buildMonitor_NORM() |
|
227 | void TMStatistics::buildMonitor_NORM() | |
220 | { |
|
228 | { | |
221 | layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1); |
|
229 | layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1); | |
222 | layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1); |
|
230 | layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1); | |
223 | layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1); |
|
231 | layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1); | |
224 | layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1); |
|
232 | layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1); | |
225 | // |
|
233 | // | |
226 | layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1); |
|
234 | layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1); | |
227 | layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1); |
|
235 | layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1); | |
228 | layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1); |
|
236 | layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1); | |
229 | layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1); |
|
237 | layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1); | |
230 | // |
|
238 | // | |
231 | layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1); |
|
239 | layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1); | |
232 | layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1); |
|
240 | layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1); | |
233 | layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1); |
|
241 | layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1); | |
234 | // |
|
242 | // | |
235 | layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1); |
|
243 | layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1); | |
236 | layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1); |
|
244 | layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1); | |
237 | layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1); |
|
245 | layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1); | |
238 | // |
|
246 | // | |
239 | layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1); |
|
247 | layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1); | |
240 | layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1); |
|
248 | layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1); | |
241 | layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1); |
|
249 | layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1); | |
242 | layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1); |
|
250 | layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1); | |
243 | layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1); |
|
251 | layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1); | |
244 | layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1); |
|
252 | layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1); | |
245 | // |
|
253 | // | |
246 | layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1); |
|
254 | layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1); | |
247 | layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1); |
|
255 | layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1); | |
248 | layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1); |
|
256 | layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1); | |
249 | layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1); |
|
257 | layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1); | |
250 | layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1); |
|
258 | layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1); | |
251 | layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1); |
|
259 | layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1); | |
252 | } |
|
260 | } | |
253 |
|
261 | |||
254 | void TMStatistics::buildMonitor_BURST() |
|
262 | void TMStatistics::buildMonitor_BURST() | |
255 | { |
|
263 | { | |
256 | layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1); |
|
264 | layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1); | |
257 | layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1); |
|
265 | layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1); | |
258 | layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1); |
|
266 | layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1); | |
259 | layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1); |
|
267 | layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1); | |
260 | layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1); |
|
268 | layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1); | |
261 | // |
|
269 | // | |
262 | layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1); |
|
270 | layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1); | |
263 | layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1); |
|
271 | layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1); | |
264 | layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1); |
|
272 | layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1); | |
265 | layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1); |
|
273 | layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1); | |
266 | layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1); |
|
274 | layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1); | |
267 | // |
|
275 | // | |
268 | layout_BURST->setRowStretch(5, 1); |
|
276 | layout_BURST->setRowStretch(5, 1); | |
269 | layout_BURST->setColumnStretch(2,1); |
|
277 | layout_BURST->setColumnStretch(2,1); | |
270 | } |
|
278 | } | |
271 |
|
279 | |||
272 | void TMStatistics::buildMonitor_SBM1() |
|
280 | void TMStatistics::buildMonitor_SBM1() | |
273 | { |
|
281 | { | |
274 | layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1); |
|
282 | layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1); | |
275 | layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1); |
|
283 | layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1); | |
276 | layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1); |
|
284 | layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1); | |
277 | // |
|
285 | // | |
278 | layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1); |
|
286 | layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1); | |
279 | layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1); |
|
287 | layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1); | |
280 | layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1); |
|
288 | layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1); | |
281 | // |
|
289 | // | |
282 | layout_SBM1->setRowStretch(3, 1); |
|
290 | layout_SBM1->setRowStretch(3, 1); | |
283 | layout_SBM1->setColumnStretch(2,1); |
|
291 | layout_SBM1->setColumnStretch(2,1); | |
284 | } |
|
292 | } | |
285 |
|
293 | |||
286 | void TMStatistics::buildMonitor_SBM2() |
|
294 | void TMStatistics::buildMonitor_SBM2() | |
287 | { |
|
295 | { | |
288 | layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1); |
|
296 | layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1); | |
289 | layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1); |
|
297 | layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1); | |
290 | layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1); |
|
298 | layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1); | |
291 | layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1); |
|
299 | layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1); | |
292 | layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1); |
|
300 | layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1); | |
293 | // |
|
301 | // | |
294 | layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1); |
|
302 | layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1); | |
295 | layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1); |
|
303 | layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1); | |
296 | layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1); |
|
304 | layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1); | |
297 | layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1); |
|
305 | layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1); | |
298 | layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1); |
|
306 | layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1); | |
299 | // |
|
307 | // | |
300 | layout_SBM2->setRowStretch(5, 1); |
|
308 | layout_SBM2->setRowStretch(5, 1); | |
301 | layout_SBM2->setColumnStretch(2,1); |
|
309 | layout_SBM2->setColumnStretch(2,1); | |
302 | } |
|
310 | } | |
303 |
|
311 | |||
304 | void TMStatistics::buildMonitor() |
|
312 | void TMStatistics::buildMonitor() | |
305 | { |
|
313 | { | |
306 | //*************** |
|
314 | //*************** | |
307 | // TM_LFR_TC_EXE_ |
|
315 | // TM_LFR_TC_EXE_ | |
308 | layout_stat->addWidget(label_SUCC, 0, 0, 1, 1); |
|
316 | layout_stat->addWidget(label_SUCC, 0, 0, 1, 1); | |
309 | layout_stat->addWidget(label_INCO, 1, 0, 1, 1); |
|
317 | layout_stat->addWidget(label_INCO, 1, 0, 1, 1); | |
310 | layout_stat->addWidget(label_NOTE, 2, 0, 1, 1); |
|
318 | layout_stat->addWidget(label_NOTE, 2, 0, 1, 1); | |
311 | layout_stat->addWidget(label_NOTI, 3, 0, 1, 1); |
|
319 | layout_stat->addWidget(label_NOTI, 3, 0, 1, 1); | |
312 | layout_stat->addWidget(label_ERRO, 4, 0, 1, 1); |
|
320 | layout_stat->addWidget(label_ERRO, 4, 0, 1, 1); | |
313 | layout_stat->addWidget(label_CORR, 5, 0, 1, 1); |
|
321 | layout_stat->addWidget(label_CORR, 5, 0, 1, 1); | |
314 | layout_stat->addWidget(label_HK, 6, 0, 1, 1); |
|
322 | layout_stat->addWidget(label_HK, 6, 0, 1, 1); | |
315 | layout_stat->addWidget(label_DUMP, 7, 0, 1, 1); |
|
323 | layout_stat->addWidget(label_DUMP, 7, 0, 1, 1); | |
316 | // |
|
324 | // | |
317 | layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1); |
|
325 | layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1); | |
318 | layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1); |
|
326 | layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1); | |
319 | layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1); |
|
327 | layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1); | |
320 | layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1); |
|
328 | layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1); | |
321 | layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1); |
|
329 | layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1); | |
322 | layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1); |
|
330 | layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1); | |
323 | layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1); |
|
331 | layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1); | |
324 | layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1); |
|
332 | layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1); | |
325 |
|
333 | |||
326 | //******** |
|
334 | //******** | |
327 | // LAST TM |
|
335 | // LAST TM | |
328 | layout_last->addWidget(label_PID, 0, 0, 1, 1); |
|
336 | layout_last->addWidget(label_PID, 0, 0, 1, 1); | |
329 | layout_last->addWidget(label_CAT, 0, 1, 1, 1); |
|
337 | layout_last->addWidget(label_CAT, 0, 1, 1, 1); | |
330 | layout_last->addWidget(label_TYP, 0, 2, 1, 1); |
|
338 | layout_last->addWidget(label_TYP, 0, 2, 1, 1); | |
331 | layout_last->addWidget(label_SUB, 0, 3, 1, 1); |
|
339 | layout_last->addWidget(label_SUB, 0, 3, 1, 1); | |
332 | layout_last->addWidget(label_SID, 0, 4, 1, 1); |
|
340 | layout_last->addWidget(label_SID, 0, 4, 1, 1); | |
333 | layout_last->addWidget(label_SIZ, 0, 5, 1, 1); |
|
341 | layout_last->addWidget(label_SIZ, 0, 5, 1, 1); | |
334 | // |
|
342 | // | |
335 | layout_last->addWidget(label_PID_is, 1, 0, 1, 1); |
|
343 | layout_last->addWidget(label_PID_is, 1, 0, 1, 1); | |
336 | layout_last->addWidget(label_CAT_is, 1, 1, 1, 1); |
|
344 | layout_last->addWidget(label_CAT_is, 1, 1, 1, 1); | |
337 | layout_last->addWidget(label_TYP_is, 1, 2, 1, 1); |
|
345 | layout_last->addWidget(label_TYP_is, 1, 2, 1, 1); | |
338 | layout_last->addWidget(label_SUB_is, 1, 3, 1, 1); |
|
346 | layout_last->addWidget(label_SUB_is, 1, 3, 1, 1); | |
339 | layout_last->addWidget(label_SID_is, 1, 4, 1, 1); |
|
347 | layout_last->addWidget(label_SID_is, 1, 4, 1, 1); | |
340 | layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1); |
|
348 | layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1); | |
341 | // |
|
349 | // | |
342 | layout_last->addWidget(label_coarse_time, 2, 0, 1, 1); |
|
350 | layout_last->addWidget(label_coarse_time, 2, 0, 1, 1); | |
343 | layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1); |
|
351 | layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1); | |
344 | layout_last->addWidget(label_fine_time, 2, 2, 1, 1); |
|
352 | layout_last->addWidget(label_fine_time, 2, 2, 1, 1); | |
345 | layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1); |
|
353 | layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1); | |
346 | // |
|
354 | // | |
347 | layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1); |
|
355 | layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1); | |
348 | layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1); |
|
356 | layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1); | |
349 |
|
357 | |||
350 |
layout_record->addWidget( |
|
358 | layout_record->addWidget(checkbox_record); | |
|
359 | layout_record->addWidget(checkbox_packetLog); | |||
351 | layout_record->addWidget(button_chooseDir); |
|
360 | layout_record->addWidget(button_chooseDir); | |
352 |
layout_record-> |
|
361 | layout_record->addWidget(label_currentDir); | |
|
362 | layout_record->insertStretch(4, 1); | |||
353 |
|
363 | |||
354 | //*********** |
|
364 | //*********** | |
355 | // groupboxes |
|
365 | // groupboxes | |
356 | groupbox_stat->setLayout(layout_stat); |
|
366 | groupbox_stat->setLayout(layout_stat); | |
357 | groupbox_NORM->setLayout(layout_NORM); |
|
367 | groupbox_NORM->setLayout(layout_NORM); | |
358 | groupbox_BURST->setLayout(layout_BURST); |
|
368 | groupbox_BURST->setLayout(layout_BURST); | |
359 | groupbox_SBM1->setLayout(layout_SBM1); |
|
369 | groupbox_SBM1->setLayout(layout_SBM1); | |
360 | groupbox_SBM2->setLayout(layout_SBM2); |
|
370 | groupbox_SBM2->setLayout(layout_SBM2); | |
361 | groupbox_last->setLayout(layout_last); |
|
371 | groupbox_last->setLayout(layout_last); | |
362 | groupbox_record->setLayout(layout_record); |
|
372 | groupbox_record->setLayout(layout_record); | |
363 | // |
|
373 | // | |
364 | mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1); |
|
374 | mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1); | |
365 | mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1); |
|
375 | mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1); | |
366 | mainLayout->addWidget(groupbox_last, 2, 0, 1, 2); |
|
376 | mainLayout->addWidget(groupbox_last, 2, 0, 1, 2); | |
367 | mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1); |
|
377 | mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1); | |
368 | mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1); |
|
378 | mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1); | |
369 | mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1); |
|
379 | mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1); | |
370 | mainLayout->addWidget(groupbox_record, 1, 2, 1, 1); |
|
380 | mainLayout->addWidget(groupbox_record, 1, 2, 1, 1); | |
371 | mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3); |
|
381 | mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3); | |
372 | mainLayout->setColumnStretch(3, 1); |
|
382 | mainLayout->setColumnStretch(3, 1); | |
373 | mainLayout->setRowStretch(4, 1); |
|
383 | mainLayout->setRowStretch(4, 1); | |
374 | // |
|
384 | // | |
375 | this->setLayout(mainLayout); |
|
385 | this->setLayout(mainLayout); | |
376 | } |
|
386 | } | |
377 |
|
387 | |||
378 | void TMStatistics::resetStatistics() |
|
388 | void TMStatistics::resetStatistics() | |
379 | { |
|
389 | { | |
380 | initConstants(); |
|
390 | initConstants(); | |
381 | // |
|
391 | // | |
382 | label_UNKNOWN_nb->setText("-"); |
|
392 | label_UNKNOWN_nb->setText("-"); | |
383 | label_SUCC_nb->setText("-"); |
|
393 | label_SUCC_nb->setText("-"); | |
384 | label_INCO_nb->setText("-"); |
|
394 | label_INCO_nb->setText("-"); | |
385 | label_NOTE_nb->setText("-"); |
|
395 | label_NOTE_nb->setText("-"); | |
386 | label_NOTI_nb->setText("-"); |
|
396 | label_NOTI_nb->setText("-"); | |
387 | label_ERRO_nb->setText("-"); |
|
397 | label_ERRO_nb->setText("-"); | |
388 | label_CORR_nb->setText("-"); |
|
398 | label_CORR_nb->setText("-"); | |
389 | label_HK_nb->setText("-"); |
|
399 | label_HK_nb->setText("-"); | |
390 | label_DUMP_nb->setText("-"); |
|
400 | label_DUMP_nb->setText("-"); | |
391 | // |
|
401 | // | |
392 | label_NORM_SWF_F0_nb->setText("-"); |
|
402 | label_NORM_SWF_F0_nb->setText("-"); | |
393 | label_NORM_SWF_F1_nb->setText("-"); |
|
403 | label_NORM_SWF_F1_nb->setText("-"); | |
394 | label_NORM_SWF_F2_nb->setText("-"); |
|
404 | label_NORM_SWF_F2_nb->setText("-"); | |
395 | label_NORM_CWF_F3_nb->setText("-"); |
|
405 | label_NORM_CWF_F3_nb->setText("-"); | |
396 | label_NORM_ASM_F0_nb->setText("-"); |
|
406 | label_NORM_ASM_F0_nb->setText("-"); | |
397 | // |
|
407 | // | |
398 | label_BURST_CWF_F2_nb->setText("-"); |
|
408 | label_BURST_CWF_F2_nb->setText("-"); | |
399 | // |
|
409 | // | |
400 | label_SBM1_CWF_F1_nb->setText("-"); |
|
410 | label_SBM1_CWF_F1_nb->setText("-"); | |
401 | // |
|
411 | // | |
402 | label_SBM2_CWF_F2_nb->setText("-"); |
|
412 | label_SBM2_CWF_F2_nb->setText("-"); | |
403 | // |
|
413 | // | |
404 | label_PID_is->setText("-"); |
|
414 | label_PID_is->setText("-"); | |
405 | label_CAT_is->setText("-"); |
|
415 | label_CAT_is->setText("-"); | |
406 | label_TYP_is->setText("-"); |
|
416 | label_TYP_is->setText("-"); | |
407 | label_SUB_is->setText("-"); |
|
417 | label_SUB_is->setText("-"); | |
408 | label_SID_is->setText("-"); |
|
418 | label_SID_is->setText("-"); | |
409 | label_SIZ_is->setText("-"); |
|
419 | label_SIZ_is->setText("-"); | |
410 | // |
|
420 | // | |
411 | label_coarse_time_val->setText("-"); |
|
421 | label_coarse_time_val->setText("-"); | |
412 | label_fine_time_val->setText("-"); |
|
422 | label_fine_time_val->setText("-"); | |
413 | } |
|
423 | } | |
414 |
|
424 | |||
415 | void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat, |
|
425 | void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat, | |
416 | unsigned char typ, unsigned char sub, |
|
426 | unsigned char typ, unsigned char sub, | |
417 | unsigned int sid, unsigned int length, |
|
427 | unsigned int sid, unsigned int length, | |
418 | unsigned int coarse_t, unsigned int fine_t) |
|
428 | unsigned int coarse_t, unsigned int fine_t) | |
419 | { |
|
429 | { | |
420 |
if (cat == |
|
430 | if (cat == TM_PACKET_CAT_TC_EXE) | |
421 | { |
|
431 | { | |
422 | if (typ == TM_TYPE_TC_EXE) |
|
432 | if (typ == TM_TYPE_TC_EXE) | |
423 | { |
|
433 | { | |
424 | if (sub == TM_SUBTYPE_EXE_OK) |
|
434 | if (sub == TM_SUBTYPE_EXE_OK) | |
425 | { |
|
435 | { | |
426 | SUCC_nb = SUCC_nb + 1; |
|
436 | SUCC_nb = SUCC_nb + 1; | |
427 | label_SUCC_nb->setText(QString::number(SUCC_nb)); |
|
437 | label_SUCC_nb->setText(QString::number(SUCC_nb)); | |
428 | } |
|
438 | } | |
429 | else if (sub == TM_SUBTYPE_EXE_NOK) |
|
439 | else if (sub == TM_SUBTYPE_EXE_NOK) | |
430 | { |
|
440 | { | |
431 | if (sid == SID_EXE_INC) |
|
441 | if (sid == SID_EXE_INC) | |
432 | { |
|
442 | { | |
433 | INCO_nb = INCO_nb + 1; |
|
443 | INCO_nb = INCO_nb + 1; | |
434 | label_INCO_nb->setText(QString::number(INCO_nb)); |
|
444 | label_INCO_nb->setText(QString::number(INCO_nb)); | |
435 | } |
|
445 | } | |
436 | else if (sid == SID_NOT_EXE) |
|
446 | else if (sid == SID_NOT_EXE) | |
437 | { |
|
447 | { | |
438 | NOTE_nb = NOTE_nb + 1; |
|
448 | NOTE_nb = NOTE_nb + 1; | |
439 | label_NOTE_nb->setText(QString::number(NOTE_nb)); |
|
449 | label_NOTE_nb->setText(QString::number(NOTE_nb)); | |
440 | } |
|
450 | } | |
441 | else if (sid == SID_NOT_IMP) |
|
451 | else if (sid == SID_NOT_IMP) | |
442 | { |
|
452 | { | |
443 | NOTI_nb = NOTI_nb + 1; |
|
453 | NOTI_nb = NOTI_nb + 1; | |
444 | label_NOTI_nb->setText(QString::number(NOTI_nb)); |
|
454 | label_NOTI_nb->setText(QString::number(NOTI_nb)); | |
445 | } |
|
455 | } | |
446 | else if (sid == SID_EXE_ERR) |
|
456 | else if (sid == SID_EXE_ERR) | |
447 | { |
|
457 | { | |
448 | ERRO_nb = ERRO_nb + 1; |
|
458 | ERRO_nb = ERRO_nb + 1; | |
449 | label_ERRO_nb->setText(QString::number(ERRO_nb)); |
|
459 | label_ERRO_nb->setText(QString::number(ERRO_nb)); | |
450 | } |
|
460 | } | |
451 | else if (sid == SID_EXE_CORR) |
|
461 | else if (sid == SID_EXE_CORR) | |
452 | { |
|
462 | { | |
453 | CORR_nb = CORR_nb + 1; |
|
463 | CORR_nb = CORR_nb + 1; | |
454 | label_CORR_nb->setText(QString::number(CORR_nb)); |
|
464 | label_CORR_nb->setText(QString::number(CORR_nb)); | |
455 | } |
|
465 | } | |
456 | else incrementUnknown(); |
|
466 | else incrementUnknown(); | |
457 | } |
|
467 | } | |
458 | else incrementUnknown(); |
|
468 | else incrementUnknown(); | |
459 | } |
|
469 | } | |
460 | else |
|
470 | else | |
461 | incrementUnknown(); |
|
471 | incrementUnknown(); | |
462 | } |
|
472 | } | |
463 |
else if (cat == |
|
473 | else if (cat == TM_PACKET_CAT_HK) | |
464 | { |
|
474 | { | |
465 | if (typ == TM_TYPE_HK) |
|
475 | if (typ == TM_TYPE_HK) | |
466 | { |
|
476 | { | |
467 | if (sub == TM_SUBTYPE_HK) |
|
477 | if (sub == TM_SUBTYPE_HK) | |
468 | if (sid == SID_HK) |
|
478 | if (sid == SID_HK) | |
469 | { |
|
479 | { | |
470 | HK_nb = HK_nb + 1; |
|
480 | HK_nb = HK_nb + 1; | |
471 | label_HK_nb->setText(QString::number(HK_nb)); |
|
481 | label_HK_nb->setText(QString::number(HK_nb)); | |
472 | } |
|
482 | } | |
473 | else |
|
483 | else | |
474 | { |
|
484 | { | |
475 | incrementUnknown(); |
|
485 | incrementUnknown(); | |
476 | } |
|
486 | } | |
477 | else |
|
487 | else | |
478 | { |
|
488 | { | |
479 | incrementUnknown(); |
|
489 | incrementUnknown(); | |
480 | } |
|
490 | } | |
481 | } |
|
491 | } | |
482 | else |
|
492 | else | |
483 | { |
|
493 | { | |
484 | incrementUnknown(); |
|
494 | incrementUnknown(); | |
485 | } |
|
495 | } | |
486 | } |
|
496 | } | |
487 | else if (cat == 9) |
|
497 | else if (cat == TM_PACKET_CAT_PARAMETER_DUMP) | |
488 | { |
|
498 | { | |
489 | if (typ == TM_TYPE_PARAMETER_DUMP) |
|
499 | if (typ == TM_TYPE_PARAMETER_DUMP) | |
490 | { |
|
500 | { | |
491 | if (sub == TM_SUBTYPE_PARAMETER_DUMP) |
|
501 | if (sub == TM_SUBTYPE_PARAMETER_DUMP) | |
492 | if (sid == SID_PARAMETER_DUMP) |
|
502 | if (sid == SID_PARAMETER_DUMP) | |
493 | { |
|
503 | { | |
494 | DUMP_nb = DUMP_nb + 1; |
|
504 | DUMP_nb = DUMP_nb + 1; | |
495 | label_DUMP_nb->setText(QString::number(DUMP_nb)); |
|
505 | label_DUMP_nb->setText(QString::number(DUMP_nb)); | |
496 | } |
|
506 | } | |
497 | else |
|
507 | else | |
498 | { |
|
508 | { | |
499 | incrementUnknown(); |
|
509 | incrementUnknown(); | |
500 | } |
|
510 | } | |
501 | else |
|
511 | else | |
502 | { |
|
512 | { | |
503 | incrementUnknown(); |
|
513 | incrementUnknown(); | |
504 | } |
|
514 | } | |
505 | } |
|
515 | } | |
506 | else |
|
516 | else | |
507 | { |
|
517 | { | |
508 | incrementUnknown(); |
|
518 | incrementUnknown(); | |
509 | } |
|
519 | } | |
510 | } |
|
520 | } | |
511 |
else if (cat == |
|
521 | else if (cat == TM_PACKET_CAT_SCIENCE) | |
512 | { |
|
522 | { | |
513 |
if (typ == |
|
523 | if (typ == TM_TYPE_LFR_SCIENCE) | |
514 | { |
|
524 | { | |
515 |
if (sub == |
|
525 | if (sub == TM_SUBTYPE_SCIENCE) | |
516 | { |
|
526 | { | |
517 | if (sid == SID_NORM_CWF_F3) |
|
527 | if (sid == SID_NORM_CWF_F3) | |
518 | { |
|
528 | { | |
519 | NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1; |
|
529 | NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1; | |
520 | label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb)); |
|
530 | label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb)); | |
521 | } |
|
531 | } | |
522 | else if (sid == SID_BURST_CWF_F2) |
|
532 | else if (sid == SID_BURST_CWF_F2) | |
523 | { |
|
533 | { | |
524 | BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1; |
|
534 | BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1; | |
525 | label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb)); |
|
535 | label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb)); | |
526 | } |
|
536 | } | |
527 | else if (sid == SID_NORM_SWF_F0) |
|
537 | else if (sid == SID_NORM_SWF_F0) | |
528 | { |
|
538 | { | |
529 | NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1; |
|
539 | NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1; | |
530 | label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb)); |
|
540 | label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb)); | |
531 | } |
|
541 | } | |
532 | else if (sid == SID_NORM_SWF_F1) |
|
542 | else if (sid == SID_NORM_SWF_F1) | |
533 | { |
|
543 | { | |
534 | NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1; |
|
544 | NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1; | |
535 | label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb)); |
|
545 | label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb)); | |
536 | } |
|
546 | } | |
537 | else if (sid == SID_NORM_SWF_F2) |
|
547 | else if (sid == SID_NORM_SWF_F2) | |
538 | { |
|
548 | { | |
539 | NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1; |
|
549 | NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1; | |
540 | label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb)); |
|
550 | label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb)); | |
541 | } |
|
551 | } | |
542 | else if (sid == SID_NORM_ASM_F0) |
|
552 | else if (sid == SID_NORM_ASM_F0) | |
543 | { |
|
553 | { | |
544 | NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1; |
|
554 | NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1; | |
545 | label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb)); |
|
555 | label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb)); | |
546 | } |
|
556 | } | |
547 | else if (sid == SID_SBM1_CWF_F1) |
|
557 | else if (sid == SID_SBM1_CWF_F1) | |
548 | { |
|
558 | { | |
549 | SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1; |
|
559 | SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1; | |
550 | label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb)); |
|
560 | label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb)); | |
551 | } |
|
561 | } | |
552 | else if (sid == SID_SBM2_CWF_F2) |
|
562 | else if (sid == SID_SBM2_CWF_F2) | |
553 | { |
|
563 | { | |
554 | SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1; |
|
564 | SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1; | |
555 | label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb)); |
|
565 | label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb)); | |
556 | } |
|
566 | } | |
557 | else |
|
567 | else | |
558 | { |
|
568 | { | |
559 | incrementUnknown(); |
|
569 | incrementUnknown(); | |
560 | } |
|
570 | } | |
561 | } |
|
571 | } | |
562 | } |
|
572 | } | |
563 | else |
|
573 | else | |
564 | { |
|
574 | { | |
565 | incrementUnknown(); |
|
575 | incrementUnknown(); | |
566 | } |
|
576 | } | |
567 | } |
|
577 | } | |
568 | else |
|
578 | else | |
569 | { |
|
579 | { | |
570 | incrementUnknown(); |
|
580 | incrementUnknown(); | |
571 | } |
|
581 | } | |
572 |
|
582 | |||
573 | label_PID_is->setText(QString::number(pid)); |
|
583 | label_PID_is->setText(QString::number(pid)); | |
574 | label_CAT_is->setText(QString::number(cat)); |
|
584 | label_CAT_is->setText(QString::number(cat)); | |
575 | label_TYP_is->setText(QString::number(typ)); |
|
585 | label_TYP_is->setText(QString::number(typ)); | |
576 | label_SUB_is->setText(QString::number(sub)); |
|
586 | label_SUB_is->setText(QString::number(sub)); | |
577 | label_SID_is->setText(QString::number(sid)); |
|
587 | label_SID_is->setText(QString::number(sid)); | |
578 | label_SIZ_is->setText(QString::number(length)); |
|
588 | label_SIZ_is->setText(QString::number(length)); | |
579 | label_coarse_time_val->setText(QString::number(coarse_t, 16)); |
|
589 | label_coarse_time_val->setText(QString::number(coarse_t, 16)); | |
580 | label_fine_time_val->setText(QString::number(fine_t, 16)); |
|
590 | label_fine_time_val->setText(QString::number(fine_t, 16)); | |
581 | } |
|
591 | } | |
582 |
|
592 | |||
583 | void TMStatistics::incrementUnknown() |
|
593 | void TMStatistics::incrementUnknown() | |
584 | { |
|
594 | { | |
585 | UNKNOWN_nb = UNKNOWN_nb + 1; |
|
595 | UNKNOWN_nb = UNKNOWN_nb + 1; | |
586 | label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb)); |
|
596 | label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb)); | |
587 | } |
|
597 | } | |
588 |
|
598 | |||
589 | unsigned char TMStatistics::getPID(TMPacketToRead *packet) |
|
599 | unsigned char TMStatistics::getPID(TMPacketToRead *packet) | |
590 | { |
|
600 | { | |
591 | unsigned char pid = 0; |
|
601 | unsigned char pid = 0; | |
592 |
|
602 | |||
593 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); |
|
603 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
594 |
|
604 | |||
595 | return pid; |
|
605 | return pid; | |
596 | } |
|
606 | } | |
597 |
|
607 | |||
598 | unsigned char TMStatistics::getCAT(TMPacketToRead *packet) |
|
608 | unsigned char TMStatistics::getCAT(TMPacketToRead *packet) | |
599 | { |
|
609 | { | |
600 | unsigned char cat = 0; |
|
610 | unsigned char cat = 0; | |
601 |
|
611 | |||
602 | cat = packet->Value[5] & 0x0f; |
|
612 | cat = packet->Value[5] & 0x0f; | |
603 |
|
613 | |||
604 | return cat; |
|
614 | return cat; | |
605 | } |
|
615 | } | |
606 |
|
616 | |||
607 | unsigned char TMStatistics::getTYPE(TMPacketToRead *packet) |
|
617 | unsigned char TMStatistics::getTYPE(TMPacketToRead *packet) | |
608 | { |
|
618 | { | |
609 | unsigned char typ = 0; |
|
619 | unsigned char typ = 0; | |
610 |
|
620 | |||
611 | typ = packet->Value[11]; // TYPE |
|
621 | typ = packet->Value[11]; // TYPE | |
612 |
|
622 | |||
613 | return typ; |
|
623 | return typ; | |
614 | } |
|
624 | } | |
615 |
|
625 | |||
616 | unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet) |
|
626 | unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet) | |
617 | { |
|
627 | { | |
618 | unsigned char sub = 0; |
|
628 | unsigned char sub = 0; | |
619 |
|
629 | |||
620 | sub = packet->Value[12]; // SUBTYPE |
|
630 | sub = packet->Value[12]; // SUBTYPE | |
621 |
|
631 | |||
622 | return sub; |
|
632 | return sub; | |
623 | } |
|
633 | } | |
624 |
|
634 | |||
625 | unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet) |
|
635 | unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet) | |
626 | { |
|
636 | { | |
627 | unsigned int length = 0; |
|
637 | unsigned int length = 0; | |
628 |
|
638 | |||
629 | length = packet->Value[8] * 256 + packet->Value[9]; |
|
639 | length = packet->Value[8] * 256 + packet->Value[9]; | |
630 |
|
640 | |||
631 | return length; |
|
641 | return length; | |
632 | } |
|
642 | } | |
633 |
|
643 | |||
634 | unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet) |
|
644 | unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet) | |
635 | { |
|
645 | { | |
636 | unsigned int coarse = 0; |
|
646 | unsigned int coarse = 0; | |
637 |
|
647 | |||
638 | coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) |
|
648 | coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
639 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; |
|
649 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
640 |
|
650 | |||
641 | return coarse; |
|
651 | return coarse; | |
642 | } |
|
652 | } | |
643 |
|
653 | |||
644 | unsigned int TMStatistics::getFineTime(TMPacketToRead *packet) |
|
654 | unsigned int TMStatistics::getFineTime(TMPacketToRead *packet) | |
645 | { |
|
655 | { | |
646 | unsigned int fine = 0; |
|
656 | unsigned int fine = 0; | |
647 |
|
657 | |||
648 | fine = packet->Value[18] * pow(2, 8) + packet->Value[19]; |
|
658 | fine = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
649 |
|
659 | |||
650 | return fine; |
|
660 | return fine; | |
651 | } |
|
661 | } | |
652 |
|
662 | |||
653 | unsigned int TMStatistics::getSID(TMPacketToRead *packet, |
|
663 | unsigned int TMStatistics::getSID(TMPacketToRead *packet, | |
654 | unsigned char pid, unsigned char cat, |
|
664 | unsigned char pid, unsigned char cat, | |
655 | unsigned char typ, unsigned char sub) |
|
665 | unsigned char typ, unsigned char sub) | |
656 | { |
|
666 | { | |
657 | unsigned int sid = 0; |
|
667 | unsigned int sid = 0; | |
658 | QByteArray packetAsAnArray; |
|
668 | QByteArray packetAsAnArray; | |
|
669 | QString packetName; | |||
|
670 | QTime currentTime; | |||
|
671 | QDate currentDate; | |||
659 |
|
672 | |||
660 | if ((pid == 76) & (cat == 1) & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK)) |
|
673 | if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE) | |
|
674 | & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK)) | |||
661 | sid = packet->Value[20] * 256 + packet->Value[21]; |
|
675 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
662 | else if ((pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK)) |
|
676 | else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK) | |
|
677 | & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK)) | |||
663 | sid = SID_HK; |
|
678 | sid = SID_HK; | |
664 | else if ((pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP)) |
|
679 | else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP) | |
|
680 | & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP)) | |||
665 | sid = SID_PARAMETER_DUMP; |
|
681 | sid = SID_PARAMETER_DUMP; | |
666 | else if ((pid == 76) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) |
|
682 | else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE) | |
|
683 | & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) | |||
667 | sid = packet->Value[20]; |
|
684 | sid = packet->Value[20]; | |
668 | else if ((pid == 79) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) |
|
685 | else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE) | |
|
686 | & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) | |||
669 | sid = packet->Value[20]; |
|
687 | sid = packet->Value[20]; | |
670 |
|
688 | |||
671 | if (logFileEn == true) |
|
689 | if (logFileEn == true) | |
672 | { |
|
690 | { | |
673 | packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex(); |
|
691 | packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex(); | |
674 | *(this->logFileStrm) |
|
692 | *(this->logFileStrm) | |
675 | << QDate::currentDate().toString() + " " |
|
693 | << QDate::currentDate().toString() + " " | |
676 | << QTime::currentTime().toString() << endl |
|
694 | << QTime::currentTime().toString() << endl | |
677 | << packetAsAnArray |
|
695 | << packetAsAnArray | |
678 | << endl |
|
696 | << endl | |
679 | << endl; |
|
697 | << endl; | |
680 | } |
|
698 | } | |
681 |
|
699 | |||
|
700 | if (packetLogFileEn == true) | |||
|
701 | { | |||
|
702 | currentTime = QTime::currentTime(); | |||
|
703 | currentDate = QDate::currentDate(); | |||
|
704 | packetName = getPacketName( typ, sub, sid); | |||
|
705 | ||||
|
706 | *(this->packetLogFileStrm) | |||
|
707 | << QString::number(currentDate.year()) + " " | |||
|
708 | << QString::number(currentDate.month()) + " " | |||
|
709 | << QString::number(currentDate.day()) + " " | |||
|
710 | << QTime::currentTime().toString() + ":" | |||
|
711 | << QString::number(currentTime.msec()) + " " | |||
|
712 | << packetName | |||
|
713 | << " time = 0x " + QString::number( | |||
|
714 | (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17], | |||
|
715 | 16).right(8) | |||
|
716 | << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16) | |||
|
717 | << endl; | |||
|
718 | } | |||
|
719 | ||||
682 | return sid; |
|
720 | return sid; | |
683 | } |
|
721 | } | |
684 |
|
722 | |||
685 | void TMStatistics::buildFileName() |
|
723 | void TMStatistics::buildFileName() | |
686 | { |
|
724 | { | |
687 | QString date; |
|
725 | QString date; | |
688 | QString time; |
|
726 | QString time; | |
689 | QString prefix; |
|
727 | QString prefix; | |
690 |
|
728 | |||
691 | date = QDate::currentDate().toString(); |
|
729 | date = QDate::currentDate().toString(); | |
692 | time = QTime::currentTime().toString(); |
|
730 | time = QTime::currentTime().toString(); | |
693 |
|
731 | |||
694 | prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ; |
|
732 | prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ; | |
695 |
|
733 | |||
696 |
|
||||
697 | if(this->logFile->isOpen()) this->logFile->close(); |
|
734 | if(this->logFile->isOpen()) this->logFile->close(); | |
698 | this->logFile->setFileName( prefix + "packet_record.data"); |
|
735 | this->logFile->setFileName( prefix + "packet_record.data"); | |
699 | if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile); |
|
736 | if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile); | |
700 | } |
|
737 | } | |
701 |
|
738 | |||
702 |
void TMStatistics:: |
|
739 | void TMStatistics::buildPacketLogFileName() | |
703 | { |
|
740 | { | |
704 | if (logFileEn == false) |
|
741 | QString date; | |
|
742 | QString time; | |||
|
743 | QString prefix; | |||
|
744 | ||||
|
745 | date = QDate::currentDate().toString(); | |||
|
746 | time = QTime::currentTime().toString(); | |||
|
747 | ||||
|
748 | prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ; | |||
|
749 | ||||
|
750 | if(this->packetLogFile->isOpen()) this->packetLogFile->close(); | |||
|
751 | this->packetLogFile->setFileName( prefix + "packet_log.data"); | |||
|
752 | if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile); | |||
|
753 | } | |||
|
754 | ||||
|
755 | void TMStatistics::storePackets( int state ) | |||
|
756 | { | |||
|
757 | if (state == Qt::Checked) | |||
705 | { |
|
758 | { | |
706 | buildFileName(); |
|
759 | buildFileName(); | |
707 | button_record->setText(tr("STOP")); |
|
|||
708 | logFileEn = true; |
|
760 | logFileEn = true; | |
709 | } |
|
761 | } | |
710 | else |
|
762 | else | |
711 | { |
|
763 | { | |
712 | if(this->logFile->isOpen()) this->logFile->close(); |
|
764 | if(this->logFile->isOpen()) this->logFile->close(); | |
713 | button_record->setText(tr("REC")); |
|
|||
714 | logFileEn = false; |
|
765 | logFileEn = false; | |
715 | } |
|
766 | } | |
716 | } |
|
767 | } | |
717 |
|
768 | |||
|
769 | void TMStatistics::logPackets( int state ) | |||
|
770 | { | |||
|
771 | if (state == Qt::Checked) | |||
|
772 | { | |||
|
773 | buildPacketLogFileName(); | |||
|
774 | packetLogFileEn = true; | |||
|
775 | } | |||
|
776 | else | |||
|
777 | { | |||
|
778 | if(this->packetLogFile->isOpen()) this->packetLogFile->close(); | |||
|
779 | packetLogFileEn = false; | |||
|
780 | } | |||
|
781 | } | |||
|
782 | ||||
718 | void TMStatistics::readSettings() |
|
783 | void TMStatistics::readSettings() | |
719 | { |
|
784 | { | |
720 | QSettings settings("lpp", "lfrsgse"); |
|
785 | QSettings settings("lpp", "lfrsgse"); | |
721 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); |
|
786 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); | |
|
787 | label_currentDir->setText(defaultStorageDirectory); | |||
722 | } |
|
788 | } | |
723 |
|
789 | |||
724 | void TMStatistics::writeSettings() |
|
790 | void TMStatistics::writeSettings() | |
725 | { |
|
791 | { | |
726 | QSettings settings("lpp", "lfrsgse"); |
|
792 | QSettings settings("lpp", "lfrsgse"); | |
727 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); |
|
793 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); | |
728 | } |
|
794 | } | |
729 |
|
795 | |||
730 | void TMStatistics::chooseDir() |
|
796 | void TMStatistics::chooseDir() | |
731 | { |
|
797 | { | |
732 | defaultStorageDirectory = QFileDialog::getExistingDirectory(this, |
|
798 | defaultStorageDirectory = QFileDialog::getExistingDirectory(this, | |
733 | "choose the directory", |
|
799 | "choose the directory", | |
734 | QDir::homePath(), |
|
800 | QDir::homePath(), | |
735 | QFileDialog::ShowDirsOnly); |
|
801 | QFileDialog::ShowDirsOnly); | |
|
802 | label_currentDir->setText(defaultStorageDirectory); | |||
736 | } |
|
803 | } | |
737 |
|
804 | |||
738 | void TMStatistics::closeEvent(QCloseEvent *event) |
|
805 | void TMStatistics::closeEvent(QCloseEvent *event) | |
739 | { |
|
806 | { | |
740 | if(this->logFile->isOpen()) |
|
807 | if(this->logFile->isOpen()) | |
741 | { |
|
808 | { | |
742 | this->logFileStrm->flush(); |
|
809 | this->logFileStrm->flush(); | |
743 | this->logFile->waitForBytesWritten(3000); |
|
810 | this->logFile->waitForBytesWritten(3000); | |
744 | this->logFile->close(); |
|
811 | this->logFile->close(); | |
745 | } |
|
812 | } | |
746 | writeSettings(); |
|
813 | writeSettings(); | |
747 | event->accept(); |
|
814 | event->accept(); | |
748 | } |
|
815 | } | |
749 |
|
816 | |||
|
817 | QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid) | |||
|
818 | { | |||
|
819 | QString packetName = "default"; | |||
|
820 | if (type == TM_TYPE_TC_EXE) | |||
|
821 | { | |||
|
822 | if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS"; | |||
|
823 | if (subtype == TM_SUBTYPE_EXE_NOK) | |||
|
824 | { | |||
|
825 | if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT"; | |||
|
826 | if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE"; | |||
|
827 | if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED"; | |||
|
828 | if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR"; | |||
|
829 | if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED"; | |||
|
830 | } | |||
|
831 | } | |||
|
832 | if (type == TM_TYPE_HK) | |||
|
833 | { | |||
|
834 | if (subtype == TM_SUBTYPE_HK) | |||
|
835 | { | |||
|
836 | if (sid == SID_HK) packetName = "TM_LFR_HK"; | |||
|
837 | if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP"; | |||
|
838 | } | |||
|
839 | } | |||
|
840 | if (type == TM_TYPE_LFR_SCIENCE) | |||
|
841 | { | |||
|
842 | if (subtype == TM_SUBTYPE_SCIENCE) | |||
|
843 | { | |||
|
844 | if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0"; | |||
|
845 | if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1"; | |||
|
846 | if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2"; | |||
|
847 | if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3"; | |||
|
848 | if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2"; | |||
|
849 | if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1"; | |||
|
850 | if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2"; | |||
|
851 | if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0"; | |||
|
852 | if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1"; | |||
|
853 | if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2"; | |||
|
854 | if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0"; | |||
|
855 | if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1"; | |||
|
856 | if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2"; | |||
|
857 | if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0"; | |||
|
858 | if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1"; | |||
|
859 | if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2"; | |||
|
860 | if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0"; | |||
|
861 | if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0"; | |||
|
862 | if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1"; | |||
|
863 | if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1"; | |||
|
864 | if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0"; | |||
|
865 | if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0"; | |||
|
866 | if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0"; | |||
|
867 | if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0"; | |||
|
868 | if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1"; | |||
|
869 | if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1"; | |||
|
870 | } | |||
|
871 | } | |||
|
872 | ||||
|
873 | return packetName; | |||
|
874 | } |
@@ -1,237 +1,249 | |||||
1 | #ifndef TMSTATISTICS_H |
|
1 | #ifndef TMSTATISTICS_H | |
2 | #define TMSTATISTICS_H |
|
2 | #define TMSTATISTICS_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QLabel> |
|
5 | #include <QLabel> | |
6 | #include <QPushButton> |
|
6 | #include <QPushButton> | |
7 | #include <QGridLayout> |
|
7 | #include <QGridLayout> | |
8 | #include <QVBoxLayout> |
|
8 | #include <QVBoxLayout> | |
9 | #include <QGroupBox> |
|
9 | #include <QGroupBox> | |
10 | #include <QFile> |
|
10 | #include <QFile> | |
11 | #include <QTextStream> |
|
11 | #include <QTextStream> | |
12 | #include <tmpackettoread.h> |
|
12 | #include <tmpackettoread.h> | |
13 | #include <ccsds_types.h> |
|
13 | #include <ccsds_types.h> | |
|
14 | #include <QMap> | |||
|
15 | #include <QCheckBox> | |||
14 |
|
16 | |||
15 | #define STATISTICS_FONT_SIZE 9 |
|
17 | #define STATISTICS_FONT_SIZE 9 | |
16 |
|
18 | |||
17 | class TMStatistics : public QWidget |
|
19 | class TMStatistics : public QWidget | |
18 | { |
|
20 | { | |
19 | Q_OBJECT |
|
21 | Q_OBJECT | |
20 | public: |
|
22 | public: | |
21 |
|
23 | |||
22 | explicit TMStatistics(QWidget *parent = 0); |
|
24 | explicit TMStatistics(QWidget *parent = 0); | |
23 | void initConstants(); |
|
25 | void initConstants(); | |
24 | void buildMonitor_BURST(); |
|
26 | void buildMonitor_BURST(); | |
25 | void buildMonitor_SBM1(); |
|
27 | void buildMonitor_SBM1(); | |
26 | void buildMonitor_SBM2(); |
|
28 | void buildMonitor_SBM2(); | |
27 | void buildMonitor_NORM(); |
|
29 | void buildMonitor_NORM(); | |
28 | void buildMonitor(); |
|
30 | void buildMonitor(); | |
29 | void incrementUnknown(); |
|
31 | void incrementUnknown(); | |
30 | // |
|
32 | // | |
31 | void preProcessPacket(TMPacketToRead *packet); |
|
33 | void preProcessPacket(TMPacketToRead *packet); | |
32 | unsigned char getPID(TMPacketToRead *packet); |
|
34 | unsigned char getPID(TMPacketToRead *packet); | |
33 | unsigned char getCAT(TMPacketToRead *packet); |
|
35 | unsigned char getCAT(TMPacketToRead *packet); | |
34 | unsigned char getTYPE(TMPacketToRead *packet); |
|
36 | unsigned char getTYPE(TMPacketToRead *packet); | |
35 | unsigned char getSUBTYPE(TMPacketToRead *packet); |
|
37 | unsigned char getSUBTYPE(TMPacketToRead *packet); | |
36 | unsigned int getLENGTH(TMPacketToRead *packet); |
|
38 | unsigned int getLENGTH(TMPacketToRead *packet); | |
37 | unsigned int getCoarseTime(TMPacketToRead *packet); |
|
39 | unsigned int getCoarseTime(TMPacketToRead *packet); | |
38 | unsigned int getFineTime(TMPacketToRead *packet); |
|
40 | unsigned int getFineTime(TMPacketToRead *packet); | |
39 | unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub); |
|
41 | unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub); | |
|
42 | QString getPacketName(unsigned char type, unsigned char subtype, unsigned int sid); | |||
40 | void closeEvent(QCloseEvent *event); |
|
43 | void closeEvent(QCloseEvent *event); | |
41 |
|
44 | |||
42 | unsigned int UNKNOWN_nb; |
|
45 | unsigned int UNKNOWN_nb; | |
43 | unsigned int SUCC_nb; |
|
46 | unsigned int SUCC_nb; | |
44 | unsigned int INCO_nb; |
|
47 | unsigned int INCO_nb; | |
45 | unsigned int NOTE_nb; |
|
48 | unsigned int NOTE_nb; | |
46 | unsigned int NOTI_nb; |
|
49 | unsigned int NOTI_nb; | |
47 | unsigned int ERRO_nb; |
|
50 | unsigned int ERRO_nb; | |
48 | unsigned int CORR_nb; |
|
51 | unsigned int CORR_nb; | |
49 | unsigned int HK_nb; |
|
52 | unsigned int HK_nb; | |
50 | unsigned int DUMP_nb; |
|
53 | unsigned int DUMP_nb; | |
51 | unsigned int NORM_SWF_F0_nb; |
|
54 | unsigned int NORM_SWF_F0_nb; | |
52 | unsigned int NORM_SWF_F1_nb; |
|
55 | unsigned int NORM_SWF_F1_nb; | |
53 | unsigned int NORM_SWF_F2_nb; |
|
56 | unsigned int NORM_SWF_F2_nb; | |
54 | unsigned int NORM_CWF_F3_nb; |
|
57 | unsigned int NORM_CWF_F3_nb; | |
55 | unsigned int NORM_ASM_F0_nb; |
|
58 | unsigned int NORM_ASM_F0_nb; | |
56 | unsigned int NORM_ASM_F1_nb; |
|
59 | unsigned int NORM_ASM_F1_nb; | |
57 | unsigned int NORM_ASM_F2_nb; |
|
60 | unsigned int NORM_ASM_F2_nb; | |
58 | unsigned int NORM_BP1_F0_nb; |
|
61 | unsigned int NORM_BP1_F0_nb; | |
59 | unsigned int NORM_BP1_F1_nb; |
|
62 | unsigned int NORM_BP1_F1_nb; | |
60 | unsigned int NORM_BP1_F2_nb; |
|
63 | unsigned int NORM_BP1_F2_nb; | |
61 | unsigned int NORM_BP2_F0_nb; |
|
64 | unsigned int NORM_BP2_F0_nb; | |
62 | unsigned int NORM_BP2_F1_nb; |
|
65 | unsigned int NORM_BP2_F1_nb; | |
63 | unsigned int NORM_BP2_F2_nb; |
|
66 | unsigned int NORM_BP2_F2_nb; | |
64 | // |
|
67 | // | |
65 | unsigned int BURST_CWF_F2_nb; |
|
68 | unsigned int BURST_CWF_F2_nb; | |
66 | unsigned int BURST_BP1_F0_nb; |
|
69 | unsigned int BURST_BP1_F0_nb; | |
67 | unsigned int BURST_BP2_F0_nb; |
|
70 | unsigned int BURST_BP2_F0_nb; | |
68 | unsigned int BURST_BP1_F1_nb; |
|
71 | unsigned int BURST_BP1_F1_nb; | |
69 | unsigned int BURST_BP2_F1_nb; |
|
72 | unsigned int BURST_BP2_F1_nb; | |
70 | unsigned int SBM1_CWF_F1_nb; |
|
73 | unsigned int SBM1_CWF_F1_nb; | |
71 | unsigned int SBM1_BP1_F0_nb; |
|
74 | unsigned int SBM1_BP1_F0_nb; | |
72 | unsigned int SBM1_BP2_F0_nb; |
|
75 | unsigned int SBM1_BP2_F0_nb; | |
73 | unsigned int SBM2_CWF_F2_nb; |
|
76 | unsigned int SBM2_CWF_F2_nb; | |
74 | unsigned int SBM2_BP1_F0_nb; |
|
77 | unsigned int SBM2_BP1_F0_nb; | |
75 | unsigned int SBM2_BP2_F0_nb; |
|
78 | unsigned int SBM2_BP2_F0_nb; | |
76 | unsigned int SBM2_BP1_F1_nb; |
|
79 | unsigned int SBM2_BP1_F1_nb; | |
77 | unsigned int SBM2_BP2_F1_nb; |
|
80 | unsigned int SBM2_BP2_F1_nb; | |
78 |
|
81 | |||
79 | //******* |
|
82 | //******* | |
80 | // QLabel |
|
83 | // QLabel | |
81 | QLabel *label_UNKNOWN; |
|
84 | QLabel *label_UNKNOWN; | |
82 | QLabel *label_UNKNOWN_nb; |
|
85 | QLabel *label_UNKNOWN_nb; | |
|
86 | QLabel *label_currentDir; | |||
83 |
|
87 | |||
84 | //*************** |
|
88 | //*************** | |
85 | // TM_LFR_TC_EXE_ |
|
89 | // TM_LFR_TC_EXE_ | |
86 | QLabel *label_SUCC; |
|
90 | QLabel *label_SUCC; | |
87 | QLabel *label_INCO; |
|
91 | QLabel *label_INCO; | |
88 | QLabel *label_NOTE; |
|
92 | QLabel *label_NOTE; | |
89 | QLabel *label_NOTI; |
|
93 | QLabel *label_NOTI; | |
90 | QLabel *label_ERRO; |
|
94 | QLabel *label_ERRO; | |
91 | QLabel *label_CORR; |
|
95 | QLabel *label_CORR; | |
92 | QLabel *label_HK; |
|
96 | QLabel *label_HK; | |
93 | QLabel *label_DUMP; |
|
97 | QLabel *label_DUMP; | |
94 | // |
|
98 | // | |
95 | QLabel *label_SUCC_nb; |
|
99 | QLabel *label_SUCC_nb; | |
96 | QLabel *label_INCO_nb; |
|
100 | QLabel *label_INCO_nb; | |
97 | QLabel *label_NOTE_nb; |
|
101 | QLabel *label_NOTE_nb; | |
98 | QLabel *label_NOTI_nb; |
|
102 | QLabel *label_NOTI_nb; | |
99 | QLabel *label_ERRO_nb; |
|
103 | QLabel *label_ERRO_nb; | |
100 | QLabel *label_CORR_nb; |
|
104 | QLabel *label_CORR_nb; | |
101 | QLabel *label_HK_nb; |
|
105 | QLabel *label_HK_nb; | |
102 | QLabel *label_DUMP_nb; |
|
106 | QLabel *label_DUMP_nb; | |
103 |
|
107 | |||
104 | //*********************** |
|
108 | //*********************** | |
105 | // TM_LFR_SCIENCE_NORMAL_ |
|
109 | // TM_LFR_SCIENCE_NORMAL_ | |
106 | QLabel *label_NORM_SWF_F0; |
|
110 | QLabel *label_NORM_SWF_F0; | |
107 | QLabel *label_NORM_SWF_F1; |
|
111 | QLabel *label_NORM_SWF_F1; | |
108 | QLabel *label_NORM_SWF_F2; |
|
112 | QLabel *label_NORM_SWF_F2; | |
109 | QLabel *label_NORM_CWF_F3; |
|
113 | QLabel *label_NORM_CWF_F3; | |
110 | QLabel *label_NORM_ASM_F0; |
|
114 | QLabel *label_NORM_ASM_F0; | |
111 | QLabel *label_NORM_ASM_F1; |
|
115 | QLabel *label_NORM_ASM_F1; | |
112 | QLabel *label_NORM_ASM_F2; |
|
116 | QLabel *label_NORM_ASM_F2; | |
113 | QLabel *label_NORM_BP1_F0; |
|
117 | QLabel *label_NORM_BP1_F0; | |
114 | QLabel *label_NORM_BP1_F1; |
|
118 | QLabel *label_NORM_BP1_F1; | |
115 | QLabel *label_NORM_BP1_F2; |
|
119 | QLabel *label_NORM_BP1_F2; | |
116 | QLabel *label_NORM_BP2_F0; |
|
120 | QLabel *label_NORM_BP2_F0; | |
117 | QLabel *label_NORM_BP2_F1; |
|
121 | QLabel *label_NORM_BP2_F1; | |
118 | QLabel *label_NORM_BP2_F2; |
|
122 | QLabel *label_NORM_BP2_F2; | |
119 | // |
|
123 | // | |
120 | QLabel *label_NORM_SWF_F0_nb; |
|
124 | QLabel *label_NORM_SWF_F0_nb; | |
121 | QLabel *label_NORM_SWF_F1_nb; |
|
125 | QLabel *label_NORM_SWF_F1_nb; | |
122 | QLabel *label_NORM_SWF_F2_nb; |
|
126 | QLabel *label_NORM_SWF_F2_nb; | |
123 | QLabel *label_NORM_CWF_F3_nb; |
|
127 | QLabel *label_NORM_CWF_F3_nb; | |
124 | QLabel *label_NORM_ASM_F0_nb; |
|
128 | QLabel *label_NORM_ASM_F0_nb; | |
125 | QLabel *label_NORM_ASM_F1_nb; |
|
129 | QLabel *label_NORM_ASM_F1_nb; | |
126 | QLabel *label_NORM_ASM_F2_nb; |
|
130 | QLabel *label_NORM_ASM_F2_nb; | |
127 | QLabel *label_NORM_BP1_F0_nb; |
|
131 | QLabel *label_NORM_BP1_F0_nb; | |
128 | QLabel *label_NORM_BP1_F1_nb; |
|
132 | QLabel *label_NORM_BP1_F1_nb; | |
129 | QLabel *label_NORM_BP1_F2_nb; |
|
133 | QLabel *label_NORM_BP1_F2_nb; | |
130 | QLabel *label_NORM_BP2_F0_nb; |
|
134 | QLabel *label_NORM_BP2_F0_nb; | |
131 | QLabel *label_NORM_BP2_F1_nb; |
|
135 | QLabel *label_NORM_BP2_F1_nb; | |
132 | QLabel *label_NORM_BP2_F2_nb; |
|
136 | QLabel *label_NORM_BP2_F2_nb; | |
133 |
|
137 | |||
134 | //********************** |
|
138 | //********************** | |
135 | // TM_LFR_SCIENCE_BURST_ |
|
139 | // TM_LFR_SCIENCE_BURST_ | |
136 | QLabel *label_BURST_CWF_F2; |
|
140 | QLabel *label_BURST_CWF_F2; | |
137 | QLabel *label_BURST_BP1_F0; |
|
141 | QLabel *label_BURST_BP1_F0; | |
138 | QLabel *label_BURST_BP2_F0; |
|
142 | QLabel *label_BURST_BP2_F0; | |
139 | QLabel *label_BURST_BP1_F1; |
|
143 | QLabel *label_BURST_BP1_F1; | |
140 | QLabel *label_BURST_BP2_F1; |
|
144 | QLabel *label_BURST_BP2_F1; | |
141 | // |
|
145 | // | |
142 | QLabel *label_BURST_CWF_F2_nb; |
|
146 | QLabel *label_BURST_CWF_F2_nb; | |
143 | QLabel *label_BURST_BP1_F0_nb; |
|
147 | QLabel *label_BURST_BP1_F0_nb; | |
144 | QLabel *label_BURST_BP2_F0_nb; |
|
148 | QLabel *label_BURST_BP2_F0_nb; | |
145 | QLabel *label_BURST_BP1_F1_nb; |
|
149 | QLabel *label_BURST_BP1_F1_nb; | |
146 | QLabel *label_BURST_BP2_F1_nb; |
|
150 | QLabel *label_BURST_BP2_F1_nb; | |
147 |
|
151 | |||
148 | //********************* |
|
152 | //********************* | |
149 | // TM_LFR_SCIENCE_SBM1_ |
|
153 | // TM_LFR_SCIENCE_SBM1_ | |
150 | QLabel *label_SBM1_CWF_F1; |
|
154 | QLabel *label_SBM1_CWF_F1; | |
151 | QLabel *label_SBM1_BP1_F0; |
|
155 | QLabel *label_SBM1_BP1_F0; | |
152 | QLabel *label_SBM1_BP2_F0; |
|
156 | QLabel *label_SBM1_BP2_F0; | |
153 | // |
|
157 | // | |
154 | QLabel *label_SBM1_CWF_F1_nb; |
|
158 | QLabel *label_SBM1_CWF_F1_nb; | |
155 | QLabel *label_SBM1_BP1_F0_nb; |
|
159 | QLabel *label_SBM1_BP1_F0_nb; | |
156 | QLabel *label_SBM1_BP2_F0_nb; |
|
160 | QLabel *label_SBM1_BP2_F0_nb; | |
157 |
|
161 | |||
158 | //********************* |
|
162 | //********************* | |
159 | // TM_LFR_SCIENCE_SBM2_ |
|
163 | // TM_LFR_SCIENCE_SBM2_ | |
160 | QLabel *label_SBM2_CWF_F2; |
|
164 | QLabel *label_SBM2_CWF_F2; | |
161 | QLabel *label_SBM2_BP1_F0; |
|
165 | QLabel *label_SBM2_BP1_F0; | |
162 | QLabel *label_SBM2_BP2_F0; |
|
166 | QLabel *label_SBM2_BP2_F0; | |
163 | QLabel *label_SBM2_BP1_F1; |
|
167 | QLabel *label_SBM2_BP1_F1; | |
164 | QLabel *label_SBM2_BP2_F1; |
|
168 | QLabel *label_SBM2_BP2_F1; | |
165 | // |
|
169 | // | |
166 | QLabel *label_SBM2_CWF_F2_nb; |
|
170 | QLabel *label_SBM2_CWF_F2_nb; | |
167 | QLabel *label_SBM2_BP1_F0_nb; |
|
171 | QLabel *label_SBM2_BP1_F0_nb; | |
168 | QLabel *label_SBM2_BP2_F0_nb; |
|
172 | QLabel *label_SBM2_BP2_F0_nb; | |
169 | QLabel *label_SBM2_BP1_F1_nb; |
|
173 | QLabel *label_SBM2_BP1_F1_nb; | |
170 | QLabel *label_SBM2_BP2_F1_nb; |
|
174 | QLabel *label_SBM2_BP2_F1_nb; | |
171 |
|
175 | |||
172 | //******** |
|
176 | //******** | |
173 | // LAST TM |
|
177 | // LAST TM | |
174 | QLabel *label_PID; |
|
178 | QLabel *label_PID; | |
175 | QLabel *label_CAT; |
|
179 | QLabel *label_CAT; | |
176 | QLabel *label_TYP; |
|
180 | QLabel *label_TYP; | |
177 | QLabel *label_SUB; |
|
181 | QLabel *label_SUB; | |
178 | QLabel *label_SID; |
|
182 | QLabel *label_SID; | |
179 | QLabel *label_SIZ; |
|
183 | QLabel *label_SIZ; | |
180 | QLabel *label_coarse_time; |
|
184 | QLabel *label_coarse_time; | |
181 | QLabel *label_fine_time; |
|
185 | QLabel *label_fine_time; | |
182 | // |
|
186 | // | |
183 | QLabel *label_PID_is; |
|
187 | QLabel *label_PID_is; | |
184 | QLabel *label_CAT_is; |
|
188 | QLabel *label_CAT_is; | |
185 | QLabel *label_TYP_is; |
|
189 | QLabel *label_TYP_is; | |
186 | QLabel *label_SUB_is; |
|
190 | QLabel *label_SUB_is; | |
187 | QLabel *label_SID_is; |
|
191 | QLabel *label_SID_is; | |
188 | QLabel *label_SIZ_is; |
|
192 | QLabel *label_SIZ_is; | |
189 | QLabel *label_coarse_time_val; |
|
193 | QLabel *label_coarse_time_val; | |
190 | QLabel *label_fine_time_val; |
|
194 | QLabel *label_fine_time_val; | |
191 |
|
195 | |||
192 | // Layouts |
|
196 | // Layouts | |
193 | QGridLayout *mainLayout; |
|
197 | QGridLayout *mainLayout; | |
194 | QGridLayout *layout_stat; // TM stastictics |
|
198 | QGridLayout *layout_stat; // TM stastictics | |
195 | QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_ |
|
199 | QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_ | |
196 | QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_ |
|
200 | QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_ | |
197 | QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_ |
|
201 | QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_ | |
198 | QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_ |
|
202 | QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_ | |
199 | QGridLayout *layout_last; // last TM description |
|
203 | QGridLayout *layout_last; // last TM description | |
200 | QVBoxLayout *layout_record; |
|
204 | QVBoxLayout *layout_record; | |
201 |
|
205 | |||
202 | // QPushButton |
|
206 | // QPushButton | |
203 | QPushButton *button_reset_stat; |
|
207 | QPushButton *button_reset_stat; | |
204 | QPushButton *button_record; |
|
|||
205 | QPushButton *button_chooseDir; |
|
208 | QPushButton *button_chooseDir; | |
206 |
|
209 | |||
|
210 | //QCheckBox | |||
|
211 | QCheckBox *checkbox_record; | |||
|
212 | QCheckBox *checkbox_packetLog; | |||
|
213 | ||||
207 | QFile *logFile; |
|
214 | QFile *logFile; | |
|
215 | QFile *packetLogFile; | |||
208 | QTextStream *logFileStrm; |
|
216 | QTextStream *logFileStrm; | |
|
217 | QTextStream *packetLogFileStrm; | |||
209 | bool logFileEn; |
|
218 | bool logFileEn; | |
|
219 | bool packetLogFileEn; | |||
210 | QString defaultStorageDirectory; |
|
220 | QString defaultStorageDirectory; | |
211 |
|
221 | |||
212 | // QGroupBox |
|
222 | // QGroupBox | |
213 | QGroupBox *groupbox_stat; |
|
223 | QGroupBox *groupbox_stat; | |
214 | QGroupBox *groupbox_NORM; |
|
224 | QGroupBox *groupbox_NORM; | |
215 | QGroupBox *groupbox_BURST; |
|
225 | QGroupBox *groupbox_BURST; | |
216 | QGroupBox *groupbox_SBM1; |
|
226 | QGroupBox *groupbox_SBM1; | |
217 | QGroupBox *groupbox_SBM2; |
|
227 | QGroupBox *groupbox_SBM2; | |
218 | QGroupBox *groupbox_last; |
|
228 | QGroupBox *groupbox_last; | |
219 | QGroupBox *groupbox_record; |
|
229 | QGroupBox *groupbox_record; | |
220 |
|
230 | |||
221 | signals: |
|
231 | signals: | |
222 |
|
232 | |||
223 | public slots: |
|
233 | public slots: | |
224 | void resetStatistics(); |
|
234 | void resetStatistics(); | |
225 | void updateStatistics(unsigned char pid, unsigned char cat, |
|
235 | void updateStatistics(unsigned char pid, unsigned char cat, | |
226 | unsigned char typ, unsigned char sub, |
|
236 | unsigned char typ, unsigned char sub, | |
227 | unsigned int sid, unsigned int length, |
|
237 | unsigned int sid, unsigned int length, | |
228 | unsigned int coarse_t, unsigned int fine_t); |
|
238 | unsigned int coarse_t, unsigned int fine_t); | |
229 | void storePackets(); |
|
239 | void storePackets(int state); | |
|
240 | void logPackets(int state); | |||
230 | void buildFileName(); |
|
241 | void buildFileName(); | |
|
242 | void buildPacketLogFileName(); | |||
231 | void readSettings(); |
|
243 | void readSettings(); | |
232 | void writeSettings(); |
|
244 | void writeSettings(); | |
233 | void chooseDir(); |
|
245 | void chooseDir(); | |
234 |
|
246 | |||
235 | }; |
|
247 | }; | |
236 |
|
248 | |||
237 | #endif // TMSTATISTICS_H |
|
249 | #endif // TMSTATISTICS_H |
@@ -1,243 +1,264 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: spwtimegenerator |
|
2 | # Makefile for building: spwtimegenerator | |
3 |
# Generated by qmake (2.01a) (Qt 4.8. |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.5) on: Fri Sep 20 14:17:00 2013 | |
4 | # Project: spwtimegenerator.pro |
|
4 | # Project: spwtimegenerator.pro | |
5 | # Template: app |
|
5 | # Template: app | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
10 |
|
10 | |||
11 | CC = gcc |
|
11 | CC = gcc | |
12 | CXX = g++ |
|
12 | CXX = g++ | |
13 | DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED |
|
13 | DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED | |
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES) |
|
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES) | |
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES) |
|
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES) | |
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I../spw_usb_driver_v2.61/inc -I. |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I../spw_usb_driver_v2.61/inc -I../parameterdump -I../../DEV_PLE/header -I/usr/include/lppmon/paulcommon -I. | |
17 | LINK = g++ |
|
17 | LINK = g++ | |
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro |
|
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so -lQtGui -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -lpaulcommon ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so -lQtGui -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = |
|
29 | STRIP = | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = ./ |
|
42 | OBJECTS_DIR = ./ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = main.cpp \ |
|
46 | SOURCES = main.cpp \ | |
47 | mainwindow.cpp \ |
|
47 | mainwindow.cpp \ | |
48 |
mainwindowui.cpp |
|
48 | mainwindowui.cpp \ | |
49 | moc_mainwindowui.cpp |
|
49 | ../parameterdump/tcpackettosend.cpp moc_mainwindow.cpp \ | |
|
50 | moc_mainwindowui.cpp \ | |||
|
51 | moc_tcpackettosend.cpp | |||
50 | OBJECTS = main.o \ |
|
52 | OBJECTS = main.o \ | |
51 | mainwindow.o \ |
|
53 | mainwindow.o \ | |
52 | mainwindowui.o \ |
|
54 | mainwindowui.o \ | |
|
55 | tcpackettosend.o \ | |||
53 | moc_mainwindow.o \ |
|
56 | moc_mainwindow.o \ | |
54 | moc_mainwindowui.o |
|
57 | moc_mainwindowui.o \ | |
|
58 | moc_tcpackettosend.o | |||
55 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
59 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
56 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
60 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
57 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
61 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
58 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
62 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
59 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
63 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
60 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
64 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
61 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
65 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
62 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
66 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
63 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
67 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
64 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
68 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
65 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
69 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
66 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
70 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
67 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
71 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
68 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
72 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
|
73 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |||
69 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
74 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
70 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
75 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
71 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
76 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
72 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
77 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
73 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
78 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
74 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
79 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
75 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
80 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
76 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
81 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
77 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
82 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
78 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
83 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
79 | spwtimegenerator.pro |
|
84 | spwtimegenerator.pro | |
80 | QMAKE_TARGET = spwtimegenerator |
|
85 | QMAKE_TARGET = spwtimegenerator | |
81 | DESTDIR = |
|
86 | DESTDIR = | |
82 | TARGET = spwtimegenerator |
|
87 | TARGET = spwtimegenerator | |
83 |
|
88 | |||
84 | first: all |
|
89 | first: all | |
85 | ####### Implicit rules |
|
90 | ####### Implicit rules | |
86 |
|
91 | |||
87 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
92 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
88 |
|
93 | |||
89 | .cpp.o: |
|
94 | .cpp.o: | |
90 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
95 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
91 |
|
96 | |||
92 | .cc.o: |
|
97 | .cc.o: | |
93 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
98 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
94 |
|
99 | |||
95 | .cxx.o: |
|
100 | .cxx.o: | |
96 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
101 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
97 |
|
102 | |||
98 | .C.o: |
|
103 | .C.o: | |
99 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
104 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
100 |
|
105 | |||
101 | .c.o: |
|
106 | .c.o: | |
102 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
107 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
103 |
|
108 | |||
104 | ####### Build rules |
|
109 | ####### Build rules | |
105 |
|
110 | |||
106 | all: Makefile $(TARGET) |
|
111 | all: Makefile $(TARGET) | |
107 |
|
112 | |||
108 | $(TARGET): $(OBJECTS) |
|
113 | $(TARGET): $(OBJECTS) | |
109 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
114 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | |
110 |
|
115 | |||
111 | Makefile: spwtimegenerator.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
116 | Makefile: spwtimegenerator.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
112 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
117 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
113 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
118 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
114 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
119 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
115 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
120 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
116 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
121 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
117 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
122 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
118 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
123 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
119 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
124 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
120 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
125 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
121 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
126 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
122 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
127 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
123 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
128 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
124 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
129 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
|
130 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |||
125 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
131 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
126 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
132 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
127 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
133 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
128 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
134 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
129 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
135 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
130 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
136 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
131 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
137 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
132 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
138 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
133 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
139 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
134 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
140 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
135 | /usr/lib64/libQtGui.prl \ |
|
141 | /usr/lib64/libQtGui.prl \ | |
136 | /usr/lib64/libQtCore.prl |
|
142 | /usr/lib64/libQtCore.prl | |
137 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro |
|
143 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |
138 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
144 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
139 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
145 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
140 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
146 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
141 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
147 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
142 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
148 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
143 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
149 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
144 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
150 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
145 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
151 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
146 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
152 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
147 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
153 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
148 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
154 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
149 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
155 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
150 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
156 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
151 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
157 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
|
158 | /usr/lib64/qt4/mkspecs/features/shared.prf: | |||
152 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
159 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
153 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
160 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
154 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
161 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
155 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
162 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
156 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
163 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
157 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
164 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
158 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
165 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
159 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
166 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
160 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
167 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
161 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
168 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
162 | /usr/lib64/libQtGui.prl: |
|
169 | /usr/lib64/libQtGui.prl: | |
163 | /usr/lib64/libQtCore.prl: |
|
170 | /usr/lib64/libQtCore.prl: | |
164 | qmake: FORCE |
|
171 | qmake: FORCE | |
165 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro |
|
172 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |
166 |
|
173 | |||
167 | dist: |
|
174 | dist: | |
168 | @$(CHK_DIR_EXISTS) .tmp/spwtimegenerator1.0.0 || $(MKDIR) .tmp/spwtimegenerator1.0.0 |
|
175 | @$(CHK_DIR_EXISTS) .tmp/spwtimegenerator1.0.0 || $(MKDIR) .tmp/spwtimegenerator1.0.0 | |
169 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp .tmp/spwtimegenerator1.0.0/ && (cd `dirname .tmp/spwtimegenerator1.0.0` && $(TAR) spwtimegenerator1.0.0.tar spwtimegenerator1.0.0 && $(COMPRESS) spwtimegenerator1.0.0.tar) && $(MOVE) `dirname .tmp/spwtimegenerator1.0.0`/spwtimegenerator1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/spwtimegenerator1.0.0 |
|
176 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h ../../DEV_PLE/header/ccsds_types.h ../../DEV_PLE/header/TC_types.h ../parameterdump/tcpackettosend.h .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp ../parameterdump/tcpackettosend.cpp .tmp/spwtimegenerator1.0.0/ && (cd `dirname .tmp/spwtimegenerator1.0.0` && $(TAR) spwtimegenerator1.0.0.tar spwtimegenerator1.0.0 && $(COMPRESS) spwtimegenerator1.0.0.tar) && $(MOVE) `dirname .tmp/spwtimegenerator1.0.0`/spwtimegenerator1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/spwtimegenerator1.0.0 | |
170 |
|
177 | |||
171 |
|
178 | |||
172 | clean:compiler_clean |
|
179 | clean:compiler_clean | |
173 | -$(DEL_FILE) $(OBJECTS) |
|
180 | -$(DEL_FILE) $(OBJECTS) | |
174 | -$(DEL_FILE) *~ core *.core |
|
181 | -$(DEL_FILE) *~ core *.core | |
175 |
|
182 | |||
176 |
|
183 | |||
177 | ####### Sub-libraries |
|
184 | ####### Sub-libraries | |
178 |
|
185 | |||
179 | distclean: clean |
|
186 | distclean: clean | |
180 | -$(DEL_FILE) $(TARGET) |
|
187 | -$(DEL_FILE) $(TARGET) | |
181 | -$(DEL_FILE) Makefile |
|
188 | -$(DEL_FILE) Makefile | |
182 |
|
189 | |||
183 |
|
190 | |||
184 | check: first |
|
191 | check: first | |
185 |
|
192 | |||
186 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
193 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
187 |
|
194 | |||
188 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
195 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
189 |
|
196 | |||
190 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp |
|
197 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_tcpackettosend.cpp | |
191 | compiler_moc_header_clean: |
|
198 | compiler_moc_header_clean: | |
192 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp |
|
199 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_tcpackettosend.cpp | |
193 | moc_mainwindow.cpp: mainwindowui.h \ |
|
200 | moc_mainwindow.cpp: mainwindowui.h \ | |
|
201 | systemtime.h \ | |||
194 | mainwindow.h |
|
202 | mainwindow.h | |
195 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp |
|
203 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp | |
196 |
|
204 | |||
197 |
moc_mainwindowui.cpp: |
|
205 | moc_mainwindowui.cpp: systemtime.h \ | |
|
206 | mainwindowui.h | |||
198 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp |
|
207 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp | |
199 |
|
208 | |||
|
209 | moc_tcpackettosend.cpp: ../parameterdump/tcpackettosend.h | |||
|
210 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../parameterdump/tcpackettosend.h -o moc_tcpackettosend.cpp | |||
|
211 | ||||
200 | compiler_rcc_make_all: |
|
212 | compiler_rcc_make_all: | |
201 | compiler_rcc_clean: |
|
213 | compiler_rcc_clean: | |
202 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
214 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
203 | compiler_image_collection_clean: |
|
215 | compiler_image_collection_clean: | |
204 | -$(DEL_FILE) qmake_image_collection.cpp |
|
216 | -$(DEL_FILE) qmake_image_collection.cpp | |
205 | compiler_moc_source_make_all: |
|
217 | compiler_moc_source_make_all: | |
206 | compiler_moc_source_clean: |
|
218 | compiler_moc_source_clean: | |
207 | compiler_uic_make_all: |
|
219 | compiler_uic_make_all: | |
208 | compiler_uic_clean: |
|
220 | compiler_uic_clean: | |
209 | compiler_yacc_decl_make_all: |
|
221 | compiler_yacc_decl_make_all: | |
210 | compiler_yacc_decl_clean: |
|
222 | compiler_yacc_decl_clean: | |
211 | compiler_yacc_impl_make_all: |
|
223 | compiler_yacc_impl_make_all: | |
212 | compiler_yacc_impl_clean: |
|
224 | compiler_yacc_impl_clean: | |
213 | compiler_lex_make_all: |
|
225 | compiler_lex_make_all: | |
214 | compiler_lex_clean: |
|
226 | compiler_lex_clean: | |
215 | compiler_clean: compiler_moc_header_clean |
|
227 | compiler_clean: compiler_moc_header_clean | |
216 |
|
228 | |||
217 | ####### Compile |
|
229 | ####### Compile | |
218 |
|
230 | |||
219 | main.o: main.cpp mainwindow.h \ |
|
231 | main.o: main.cpp mainwindow.h \ | |
220 | mainwindowui.h |
|
232 | mainwindowui.h \ | |
|
233 | systemtime.h | |||
221 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp |
|
234 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp | |
222 |
|
235 | |||
223 | mainwindow.o: mainwindow.cpp mainwindow.h \ |
|
236 | mainwindow.o: mainwindow.cpp mainwindow.h \ | |
224 | mainwindowui.h |
|
237 | mainwindowui.h \ | |
|
238 | systemtime.h | |||
225 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp |
|
239 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp | |
226 |
|
240 | |||
227 | mainwindowui.o: mainwindowui.cpp mainwindowui.h |
|
241 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ | |
|
242 | systemtime.h | |||
228 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp |
|
243 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp | |
229 |
|
244 | |||
|
245 | tcpackettosend.o: ../parameterdump/tcpackettosend.cpp ../parameterdump/tcpackettosend.h | |||
|
246 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tcpackettosend.o ../parameterdump/tcpackettosend.cpp | |||
|
247 | ||||
230 | moc_mainwindow.o: moc_mainwindow.cpp |
|
248 | moc_mainwindow.o: moc_mainwindow.cpp | |
231 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp |
|
249 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp | |
232 |
|
250 | |||
233 | moc_mainwindowui.o: moc_mainwindowui.cpp |
|
251 | moc_mainwindowui.o: moc_mainwindowui.cpp | |
234 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp |
|
252 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp | |
235 |
|
253 | |||
|
254 | moc_tcpackettosend.o: moc_tcpackettosend.cpp | |||
|
255 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tcpackettosend.o moc_tcpackettosend.cpp | |||
|
256 | ||||
236 | ####### Install |
|
257 | ####### Install | |
237 |
|
258 | |||
238 | install: FORCE |
|
259 | install: FORCE | |
239 |
|
260 | |||
240 | uninstall: FORCE |
|
261 | uninstall: FORCE | |
241 |
|
262 | |||
242 | FORCE: |
|
263 | FORCE: | |
243 |
|
264 |
@@ -1,193 +1,318 | |||||
1 | #include "mainwindow.h" |
|
1 | #include "mainwindow.h" | |
2 |
|
2 | |||
3 | MainWindow::MainWindow(QWidget *parent) : |
|
3 | MainWindow::MainWindow(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | hDevice = NULL; |
|
6 | hDevice = NULL; | |
7 | UI = new mainwindowui(); |
|
7 | UI = new mainwindowui(); | |
8 | time = new QTimer(); |
|
8 | time = new QTimer(); | |
|
9 | systemTime = 0x80000000; | |||
|
10 | flag_sendTimePacket = false; | |||
|
11 | ||||
|
12 | packetToSend = new TCPacketToSend(); | |||
|
13 | ||||
|
14 | time->setInterval(1000); | |||
9 |
|
15 | |||
10 | connect(UI->starDundeeStatusQueryRetryButton, SIGNAL(clicked()), this, SLOT(reTestSPWLink())); |
|
16 | connect(UI->starDundeeStatusQueryRetryButton, SIGNAL(clicked()), this, SLOT(reTestSPWLink())); | |
11 | connect(UI->startTimeButton, SIGNAL(clicked()), this, SLOT(startSpacewireTime())); |
|
17 | connect(this, SIGNAL(sendMessage(QString)), this->UI, SLOT(displayMessage(QString))); | |
|
18 | connect(this, SIGNAL(systemTimeHasChanged(long)), this->UI->systemTime, SLOT(systemTimeHasChanged(long))); | |||
|
19 | ||||
|
20 | connect(UI->startTimeButton, SIGNAL(clicked()), this, SLOT(sendTimecodesPeriodically())); | |||
12 | connect(UI->sendTimecodeButton, SIGNAL(clicked()), this, SLOT(sendOneTimecode())); |
|
21 | connect(UI->sendTimecodeButton, SIGNAL(clicked()), this, SLOT(sendOneTimecode())); | |
13 |
connect(UI-> |
|
22 | connect(UI->button_sendSystemTime, SIGNAL(clicked()), this, SLOT(sendSystemTime())); | |
14 | connect(this, SIGNAL(sendMessage(QString)), this->UI, SLOT(displayMessage(QString))); |
|
23 | connect(UI->button_sendArbitraryTime, SIGNAL(clicked()), this, SLOT(sendArbitraryTime())); | |
|
24 | ||||
|
25 | connect(this->time, SIGNAL(timeout()), this, SLOT(periodicalTimecodeTimeout())); | |||
15 |
|
26 | |||
16 | this->setLayout(UI->layout()); |
|
27 | this->setLayout(UI->layout()); | |
17 |
|
28 | |||
18 | } |
|
29 | } | |
19 |
|
30 | |||
20 | MainWindow::~MainWindow() |
|
31 | MainWindow::~MainWindow() | |
21 | { |
|
32 | { | |
22 |
|
33 | |||
23 | } |
|
34 | } | |
24 |
|
35 | |||
25 | void MainWindow::startSpacewireTime() |
|
|||
26 | { |
|
|||
27 | unsigned int result; |
|
|||
28 | if (hDevice==NULL) |
|
|||
29 | { |
|
|||
30 | result = Open(); |
|
|||
31 | } |
|
|||
32 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) |
|
|||
33 | { |
|
|||
34 | emit sendMessage("OK *** in Start *** start sending packet periodically"); |
|
|||
35 | return; |
|
|||
36 | } |
|
|||
37 | else |
|
|||
38 | { |
|
|||
39 | emit sendMessage("ERR *** in Start *** "); |
|
|||
40 | return; |
|
|||
41 | } |
|
|||
42 | } |
|
|||
43 |
|
||||
44 | void MainWindow::sendOneTimecode() |
|
36 | void MainWindow::sendOneTimecode() | |
45 | { |
|
37 | { | |
46 | unsigned int result; |
|
38 | unsigned int result; | |
47 | U32 timecodeReg, val; |
|
39 | U32 timecodeReg, val; | |
48 |
|
40 | |||
49 | if (hDevice==NULL) |
|
41 | if (hDevice==NULL) | |
50 | { |
|
42 | { | |
51 | result = Open(); |
|
43 | result = Open(); | |
52 | } |
|
44 | } | |
53 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) |
|
45 | ||
54 | { |
|
46 | if (!getLinkStatus(UI->linkNumber_SPINBOX->value())) | |
55 | emit sendMessage("OK *** in sendOneTimecode *** stardundee brick running"); |
|
|||
56 | } |
|
|||
57 | else |
|
|||
58 | { |
|
47 | { | |
59 | emit sendMessage("ERR *** in sendOneTimecode *** stardundee brick not running"); |
|
48 | emit sendMessage("ERR *** in sendOneTimecode *** stardundee brick not running"); | |
60 | } |
|
49 | } | |
|
50 | ||||
61 | if(!USBSpaceWire_TC_EnableExternalTimecodeSelection(hDevice,0)) |
|
51 | if(!USBSpaceWire_TC_EnableExternalTimecodeSelection(hDevice,0)) | |
62 | { |
|
52 | { | |
63 | emit sendMessage("ERR *** disable external timecode selection"); |
|
53 | emit sendMessage("ERR *** disable external timecode selection"); | |
64 | return; |
|
54 | return; | |
65 | } |
|
55 | } | |
66 | emit sendMessage("OK *** in sendOneTimecode *** next valid tick will be performed"); |
|
56 | ||
67 | if(!USBSpaceWire_TC_PerformTickIn(hDevice, 0)) |
|
57 | if(!USBSpaceWire_TC_PerformTickIn(hDevice, 0)) | |
68 | { |
|
58 | { | |
69 | emit sendMessage("ERR *** in sendOneTimecode *** perform TickIn"); |
|
59 | emit sendMessage("ERR *** in sendOneTimecode *** perform TickIn"); | |
70 | return; |
|
60 | return; | |
71 | } |
|
61 | } | |
72 | emit sendMessage("OK *** in sendOneTimecode *** tick performed"); |
|
62 | ||
73 | // Read the timecode register |
|
63 | // Read the timecode register | |
74 | if (CFGSpaceWire_GetTimecodeRegister(hDevice, &timecodeReg) != CFG_TRANSFER_SUCCESS) |
|
64 | if (CFGSpaceWire_GetTimecodeRegister(hDevice, &timecodeReg) != CFG_TRANSFER_SUCCESS) | |
75 | { |
|
65 | { | |
76 | emit sendMessage("Could not read the timecode register"); |
|
66 | emit sendMessage("Could not read the timecode register"); | |
77 | } |
|
67 | } | |
78 | else |
|
68 | else | |
79 | { |
|
69 | { | |
80 | CFGSpaceWire_TCGetValue(timecodeReg, &val); |
|
70 | CFGSpaceWire_TCGetValue(timecodeReg, &val); | |
81 | emit sendMessage("The timecode value is currently: " + QString::number(val)); |
|
71 | //emit sendMessage("The timecode value is currently: " + QString::number(val)); | |
|
72 | this->UI->currentTimecodeValue_LABEL->setText("Current Timecode Value: " + QString::number(val)); | |||
82 | CFGSpaceWire_TCGetFlags(timecodeReg, &val); |
|
73 | CFGSpaceWire_TCGetFlags(timecodeReg, &val); | |
83 | emit sendMessage("The timecode flag value is currently: " + QString::number(val)); |
|
74 | this->UI->currentTimecodeFlag_LABEL->setText("Current Timecode Flag: " + QString::number(val)); | |
|
75 | //emit sendMessage("The timecode flag value is currently: " + QString::number(val)); | |||
84 | } |
|
76 | } | |
85 |
|
77 | |||
86 | } |
|
78 | } | |
87 |
|
79 | |||
88 |
void MainWindow::send |
|
80 | void MainWindow::sendTimecodesPeriodically() | |
|
81 | { | |||
|
82 | if(time->isActive()) | |||
|
83 | { | |||
|
84 | time->stop(); | |||
|
85 | this->UI->startTimeButton->setText("start sending timecodes periodically"); | |||
|
86 | } | |||
|
87 | else | |||
|
88 | { | |||
|
89 | time->start(); | |||
|
90 | this->UI->startTimeButton->setText("stop sending timecodes periodically"); | |||
|
91 | } | |||
|
92 | } | |||
|
93 | ||||
|
94 | void MainWindow::periodicalTimecodeTimeout() | |||
89 | { |
|
95 | { | |
|
96 | sendOneTimecode(); | |||
|
97 | systemTime = systemTime + 1; | |||
|
98 | if (flag_sendTimePacket == true) | |||
|
99 | { | |||
|
100 | flag_sendTimePacket = false; | |||
|
101 | QTimer::singleShot(700, this, SLOT(sendTimePacketTimeout())); | |||
|
102 | } | |||
|
103 | emit(systemTimeHasChanged(systemTime)); | |||
|
104 | } | |||
90 |
|
105 | |||
|
106 | void MainWindow::sendTimePacketTimeout() | |||
|
107 | { | |||
|
108 | sendUpdateTime( systemTime + 1 ); | |||
|
109 | } | |||
|
110 | ||||
|
111 | void MainWindow::sendSystemTime() | |||
|
112 | { | |||
|
113 | flag_sendTimePacket = true; | |||
|
114 | } | |||
|
115 | ||||
|
116 | void MainWindow::sendArbitraryTime() | |||
|
117 | { | |||
|
118 | flag_sendTimePacket = true; | |||
|
119 | systemTime = this->UI->arbitraryTime; | |||
|
120 | emit (systemTimeHasChanged( systemTime)); | |||
91 | } |
|
121 | } | |
92 |
|
122 | |||
93 | unsigned int MainWindow::Open() |
|
123 | unsigned int MainWindow::Open() | |
94 | { |
|
124 | { | |
95 | U32 dwTickEnableStatus; |
|
125 | U32 dwTickEnableStatus; | |
96 |
|
126 | |||
97 | if (!USBSpaceWire_Open(&hDevice, UI->usbDeviceNumber_SPINBOX->value())) // Open the USB device |
|
127 | if (!USBSpaceWire_Open(&hDevice, UI->usbDeviceNumber_SPINBOX->value())) // Open the USB device | |
98 | { |
|
128 | { | |
99 | emit sendMessage("ERR *** in Open *** USBSpaceWire_Open(&hDevice, 0))"); |
|
129 | emit sendMessage("ERR *** in Open *** USBSpaceWire_Open(&hDevice, 0))"); | |
100 | return 0; |
|
130 | return 0; | |
101 | } |
|
131 | } | |
102 | emit sendMessage("OK *** in Open *** USBSpaceWire_Open successful, device number: " |
|
132 | emit sendMessage("OK *** in Open *** USBSpaceWire_Open successful, device number: " | |
103 | + QString::number(UI->usbDeviceNumber_SPINBOX->value())); |
|
133 | + QString::number(UI->usbDeviceNumber_SPINBOX->value())); | |
104 |
|
134 | |||
105 | USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode |
|
135 | USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode | |
106 | CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP for the StarDundee brick configuration |
|
136 | CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP for the StarDundee brick configuration | |
107 | CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices |
|
137 | CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices | |
108 |
|
138 | |||
109 | // Set the path and return path to the device |
|
139 | // Set the path and return path to the device | |
110 | CFGSpaceWire_StackClear(); |
|
140 | CFGSpaceWire_StackClear(); | |
111 | CFGSpaceWire_AddrStackPush(0); |
|
141 | CFGSpaceWire_AddrStackPush(0); | |
112 | CFGSpaceWire_AddrStackPush(254); |
|
142 | CFGSpaceWire_AddrStackPush(254); | |
113 | CFGSpaceWire_RetAddrStackPush(254); |
|
143 | CFGSpaceWire_RetAddrStackPush(254); | |
114 |
|
144 | |||
115 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())==0) |
|
145 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())==0) | |
116 | { |
|
146 | { | |
117 | return UI->starDundeeStatusQueryDialog->exec(); |
|
147 | return UI->starDundeeStatusQueryDialog->exec(); | |
118 | } |
|
148 | } | |
|
149 | ||||
119 | if (!USBSpaceWire_TC_Reset(hDevice)) |
|
150 | if (!USBSpaceWire_TC_Reset(hDevice)) | |
120 | { |
|
151 | { | |
121 | emit sendMessage("ERR *** in Open *** Could not reset timecodes\n"); |
|
152 | emit sendMessage("ERR *** in Open *** Could not reset timecodes\n"); | |
122 | } |
|
153 | } | |
123 | emit sendMessage("OK *** in Open *** reset timecodes"); |
|
|||
124 |
|
154 | |||
125 | // Clear the tick enable register |
|
155 | // Clear the tick enable register | |
126 | if (CFGSpaceWire_SetTickEnableStatus(hDevice, 6) != CFG_TRANSFER_SUCCESS) |
|
156 | if (CFGSpaceWire_SetTickEnableStatus(hDevice, 6) != CFG_TRANSFER_SUCCESS) | |
127 | emit sendMessage("Could not clear the tick enable register"); |
|
157 | emit sendMessage("Could not clear the tick enable register"); | |
128 | else |
|
158 | else | |
129 | emit sendMessage("Cleared the tick enable register"); |
|
159 | emit sendMessage("Cleared the tick enable register"); | |
130 |
|
160 | |||
131 | CFGSpaceWire_GetTickEnableStatus(hDevice, &dwTickEnableStatus); |
|
161 | CFGSpaceWire_GetTickEnableStatus(hDevice, &dwTickEnableStatus); | |
132 | emit sendMessage("OK *** in Open *** CFGSpaceWire_GetTickEnableStatus, code is " + QString::number(dwTickEnableStatus, 2)); |
|
162 | emit sendMessage("OK *** in Open *** CFGSpaceWire_GetTickEnableStatus, code is " + QString::number(dwTickEnableStatus, 2)); | |
133 |
|
163 | |||
134 | } |
|
164 | } | |
135 |
|
165 | |||
136 | unsigned int MainWindow::getLinkStatus(unsigned char link) |
|
166 | unsigned int MainWindow::getLinkStatus(unsigned char link) | |
137 | { |
|
167 | { | |
|
168 | unsigned int resultOpen; | |||
|
169 | ||||
138 | U32 statusControl = 0, errorStatus = 0, portType = 0; |
|
170 | U32 statusControl = 0, errorStatus = 0, portType = 0; | |
139 | U32 linkStatus = 0, operatingSpeed = 0, outputPortConnection = 0; |
|
171 | U32 linkStatus = 0, operatingSpeed = 0, outputPortConnection = 0; | |
140 | char isLinkRunning = 0, isAutoStart = 0, isStart = 0, isDisabled = 0, isTristate = 0; |
|
172 | char isLinkRunning = 0, isAutoStart = 0, isStart = 0, isDisabled = 0, isTristate = 0; | |
141 |
|
173 | |||
|
174 | if (hDevice==NULL) | |||
|
175 | { | |||
|
176 | resultOpen = Open(); | |||
|
177 | } | |||
|
178 | ||||
142 | // Read the link status control register |
|
179 | // Read the link status control register | |
143 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS) |
|
180 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS) | |
144 | { |
|
181 | { | |
145 | emit sendMessage("Could not read link status control for link" + QString::number(link)); |
|
182 | emit sendMessage("Could not read link status control for link" + QString::number(link)); | |
146 | } |
|
183 | } | |
147 | else |
|
184 | else | |
148 | { |
|
185 | { | |
149 | // Display the link status control register properties |
|
186 | // Display the link status control register properties | |
150 | CFGSpaceWire_LSPortType(statusControl, &portType); |
|
187 | CFGSpaceWire_LSPortType(statusControl, &portType); | |
151 | if (portType == CFG_CONFIGURATION_PORT) |
|
188 | if (portType == CFG_CONFIGURATION_PORT) | |
152 | { |
|
189 | { | |
153 | CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus); |
|
190 | CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus); | |
154 | //emit appendToLog("Configuration port error status = " + QString::number(errorStatus)); |
|
191 | //emit appendToLog("Configuration port error status = " + QString::number(errorStatus)); | |
155 | } |
|
192 | } | |
156 | else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT) |
|
193 | else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT) | |
157 | { |
|
194 | { | |
158 | CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus); |
|
195 | CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus); | |
159 | //emit appendToLog("External port error status = " + QString::number(errorStatus)); |
|
196 | //emit appendToLog("External port error status = " + QString::number(errorStatus)); | |
160 | } |
|
197 | } | |
161 | else |
|
198 | else | |
162 | { |
|
199 | { | |
163 | CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus); |
|
200 | CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus); | |
164 | //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus)); |
|
201 | //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus)); | |
165 | } |
|
202 | } | |
166 | CFGSpaceWire_LSLinkState(statusControl, &linkStatus); |
|
203 | CFGSpaceWire_LSLinkState(statusControl, &linkStatus); | |
167 | CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning); |
|
204 | CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning); | |
168 | CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart); |
|
205 | CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart); | |
169 | CFGSpaceWire_LSIsStart(statusControl, &isStart); |
|
206 | CFGSpaceWire_LSIsStart(statusControl, &isStart); | |
170 | CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled); |
|
207 | CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled); | |
171 | CFGSpaceWire_LSIsTristate(statusControl, &isTristate); |
|
208 | CFGSpaceWire_LSIsTristate(statusControl, &isTristate); | |
172 | CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed); |
|
209 | CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed); | |
173 | CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection); |
|
210 | CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection); | |
174 | //emit appendToLog("The link state is = " + QString::number(linkStatus)); |
|
211 | //emit appendToLog("The link state is = " + QString::number(linkStatus)); | |
175 | //emit appendToLog("The link is running = " + QString::number(isLinkRunning)); |
|
212 | //emit appendToLog("The link is running = " + QString::number(isLinkRunning)); | |
176 | //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart)); |
|
213 | //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart)); | |
177 | //emit appendToLog("The start bit is enabled = " + QString::number(isStart)); |
|
214 | //emit appendToLog("The start bit is enabled = " + QString::number(isStart)); | |
178 | //emit appendToLog("The link is disabled = " + QString::number(isDisabled)); |
|
215 | //emit appendToLog("The link is disabled = " + QString::number(isDisabled)); | |
179 | //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart)); |
|
216 | //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart)); | |
180 | //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed)); |
|
217 | //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed)); | |
181 | //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection)); |
|
218 | //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection)); | |
182 | } |
|
219 | } | |
183 | if (linkStatus == 5) return 1; |
|
220 | if (linkStatus == 5) return 1; | |
184 | else return 0; |
|
221 | else return 0; | |
185 | } |
|
222 | } | |
186 |
|
223 | |||
187 | void MainWindow::reTestSPWLink() // SLOT |
|
224 | void MainWindow::reTestSPWLink() // SLOT | |
188 | { |
|
225 | { | |
189 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) |
|
226 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) | |
190 | { |
|
227 | { | |
191 | UI->starDundeeStatusQueryDialog->accept(); |
|
228 | UI->starDundeeStatusQueryDialog->accept(); | |
192 | } |
|
229 | } | |
193 | } |
|
230 | } | |
|
231 | ||||
|
232 | void MainWindow::sendUpdateTime(long time) | |||
|
233 | { | |||
|
234 | Packet_TC_LFR_UPDATE_TIME_t packet; | |||
|
235 | unsigned char crcAsTwoBytes[2]; | |||
|
236 | ||||
|
237 | packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8); | |||
|
238 | packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID ); | |||
|
239 | packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8); | |||
|
240 | packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL ); | |||
|
241 | packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_TIME >> 8); | |||
|
242 | packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_TIME ); | |||
|
243 | ||||
|
244 | packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19; | |||
|
245 | packet.serviceType = TC_TYPE_LFR_UPDATE_TIME; | |||
|
246 | packet.serviceSubType = TC_SUBTYPE_UPDATE_TIME; | |||
|
247 | packet.sourceID = SID_DEFAULT; | |||
|
248 | packet.cp_rpw_time[0] = (unsigned char) (time >> 24); | |||
|
249 | packet.cp_rpw_time[1] = (unsigned char) (time >> 16); | |||
|
250 | packet.cp_rpw_time[2] = (unsigned char) (time >> 8); | |||
|
251 | packet.cp_rpw_time[3] = (unsigned char) (time); | |||
|
252 | packet.cp_rpw_time[4] = 0; // fine time MSB | |||
|
253 | packet.cp_rpw_time[5] = 0; // fine time LSB | |||
|
254 | ||||
|
255 | packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes, | |||
|
256 | PACKET_LENGTH_TC_LFR_UPDATE_TIME + CCSDS_TC_TM_PACKET_OFFSET - 2); | |||
|
257 | packet.crc[0] = crcAsTwoBytes[0]; | |||
|
258 | packet.crc[1] = crcAsTwoBytes[1]; | |||
|
259 | ||||
|
260 | WriteSPW((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_TIME + CCSDS_TC_TM_PACKET_OFFSET, | |||
|
261 | CCSDS_NODE_ADDRESS, CCSDS_USER_APP); | |||
|
262 | } | |||
|
263 | ||||
|
264 | unsigned int MainWindow::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) | |||
|
265 | { | |||
|
266 | char protocoleIdentifier = 0x02; | |||
|
267 | char reserved = 0x00; | |||
|
268 | char *SPWData; | |||
|
269 | unsigned int totalSize; | |||
|
270 | ||||
|
271 | if (count>248) | |||
|
272 | { | |||
|
273 | emit sendMessage("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n"); | |||
|
274 | return 1; | |||
|
275 | } | |||
|
276 | ||||
|
277 | if ( getLinkStatus( this->UI->linkNumber_SPINBOX->value() ) == 0 ) | |||
|
278 | { | |||
|
279 | emit sendMessage("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n"); | |||
|
280 | return 1; | |||
|
281 | } | |||
|
282 | ||||
|
283 | totalSize = count + 4 + PATH_ADDRESSING_OFFSET; // The StarDundee brick is in PATH addressing | |||
|
284 | SPWData = (char*) malloc(totalSize); | |||
|
285 | // SPW HEADER | |||
|
286 | SPWData[0] = this->UI->linkNumber_SPINBOX->value(); // 1 by default, value can be 1 or 2 | |||
|
287 | SPWData[0+PATH_ADDRESSING_OFFSET] = targetLogicalAddress; | |||
|
288 | SPWData[1+PATH_ADDRESSING_OFFSET] = protocoleIdentifier; | |||
|
289 | SPWData[2+PATH_ADDRESSING_OFFSET] = reserved; | |||
|
290 | SPWData[3+PATH_ADDRESSING_OFFSET] = userApplication; | |||
|
291 | // CCSDS PACKET | |||
|
292 | for (unsigned int i = 0; i<count; i++) | |||
|
293 | { | |||
|
294 | SPWData[i+4+PATH_ADDRESSING_OFFSET] = Value[i]; | |||
|
295 | } | |||
|
296 | ||||
|
297 | //**************** | |||
|
298 | // SEND THE PACKET | |||
|
299 | result = USBSpaceWire_SendPacket(hDevice, | |||
|
300 | SPWData, | |||
|
301 | totalSize, | |||
|
302 | BWAIT_1, &pIdentifier); | |||
|
303 | if (result != TRANSFER_SUCCESS) | |||
|
304 | { | |||
|
305 | emit sendMessage("ERROR *** WriteSPW when sending packet of size " | |||
|
306 | + QString::number(totalSize) +", with code: " + QString::number(result)); | |||
|
307 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |||
|
308 | free(SPWData); | |||
|
309 | return 0; | |||
|
310 | } | |||
|
311 | ||||
|
312 | //************** | |||
|
313 | // Free the send | |||
|
314 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |||
|
315 | free(SPWData); | |||
|
316 | ||||
|
317 | return 1; | |||
|
318 | } |
@@ -1,40 +1,60 | |||||
1 | #ifndef MAINWINDOW_H |
|
1 | #ifndef MAINWINDOW_H | |
2 | #define MAINWINDOW_H |
|
2 | #define MAINWINDOW_H | |
3 |
|
3 | |||
|
4 | #include <mainwindowui.h> | |||
|
5 | ||||
4 | #include <QtGui/QMainWindow> |
|
6 | #include <QtGui/QMainWindow> | |
5 | #include "spw_usb_api.h" |
|
|||
6 | #include "spw_config_library.h" |
|
|||
7 | #include <mainwindowui.h> |
|
|||
8 | #include <QDialog> |
|
7 | #include <QDialog> | |
9 | #include <QObject> |
|
8 | #include <QObject> | |
10 | #include <QTimer> |
|
9 | #include <QTimer> | |
11 |
|
10 | |||
|
11 | #include "spw_usb_api.h" | |||
|
12 | #include "spw_config_library.h" | |||
|
13 | #include "TC_types.h" | |||
|
14 | #include "tcpackettosend.h" | |||
|
15 | ||||
|
16 | #define BWAIT_0 0 | |||
|
17 | #define BWAIT_1 1 | |||
|
18 | #define PATH_ADDRESSING_OFFSET 1 | |||
|
19 | ||||
12 | class MainWindow : public QWidget |
|
20 | class MainWindow : public QWidget | |
13 | { |
|
21 | { | |
14 | Q_OBJECT |
|
22 | Q_OBJECT | |
15 |
|
23 | |||
16 | public: |
|
24 | public: | |
17 | MainWindow(QWidget *parent = 0); |
|
25 | MainWindow(QWidget *parent = 0); | |
18 | ~MainWindow(); |
|
26 | ~MainWindow(); | |
|
27 | unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | |||
|
28 | TCPacketToSend *packetToSend; | |||
19 |
|
29 | |||
20 | private: |
|
30 | private: | |
21 | unsigned int getLinkStatus(unsigned char link); |
|
31 | unsigned int getLinkStatus(unsigned char link); | |
22 |
|
32 | |||
|
33 | USB_SPACEWIRE_ID pIdentifier; | |||
|
34 | USB_SPACEWIRE_STATUS result; // The result of the send operation | |||
23 | star_device_handle hDevice; // Handle to the SpaceWire device |
|
35 | star_device_handle hDevice; // Handle to the SpaceWire device | |
24 | bool isRunning; |
|
36 | bool isRunning; | |
25 |
|
37 | |||
26 | mainwindowui *UI; |
|
38 | mainwindowui *UI; | |
27 | QTimer *time; |
|
39 | QTimer *time; | |
28 |
|
40 | |||
|
41 | long systemTime; | |||
|
42 | bool flag_sendTimePacket; | |||
|
43 | ||||
29 | signals: |
|
44 | signals: | |
30 | void sendMessage(QString); |
|
45 | void sendMessage(QString); | |
|
46 | void systemTimeHasChanged(long time); | |||
31 |
|
47 | |||
32 | public slots: |
|
48 | public slots: | |
33 | unsigned int Open(); |
|
49 | unsigned int Open(); | |
34 | void startSpacewireTime(); |
|
|||
35 | void sendOneTimecode(); |
|
50 | void sendOneTimecode(); | |
36 |
void send |
|
51 | void sendTimecodesPeriodically(); | |
|
52 | void periodicalTimecodeTimeout(); | |||
|
53 | void sendTimePacketTimeout(); | |||
|
54 | void sendSystemTime(); | |||
|
55 | void sendArbitraryTime(); | |||
|
56 | void sendUpdateTime(long time); | |||
37 | void reTestSPWLink(); |
|
57 | void reTestSPWLink(); | |
38 | }; |
|
58 | }; | |
39 |
|
59 | |||
40 | #endif // MAINWINDOW_H |
|
60 | #endif // MAINWINDOW_H |
@@ -1,57 +1,73 | |||||
1 | #include "mainwindowui.h" |
|
1 | #include "mainwindowui.h" | |
2 |
|
2 | |||
3 | mainwindowui::mainwindowui(QWidget *parent) : |
|
3 | mainwindowui::mainwindowui(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
|
6 | arbitraryTime = 0x80000000; | |||
|
7 | ||||
6 | starDundeeStatusQueryDialog = new QDialog; |
|
8 | starDundeeStatusQueryDialog = new QDialog; | |
7 |
|
9 | |||
8 | connection_LAYOUT = new QGridLayout; |
|
10 | connection_LAYOUT = new QGridLayout; | |
9 |
|
11 | |||
10 | usbDeviceNumber_LABEL = new QLabel(tr("USB device number: ")); |
|
12 | usbDeviceNumber_LABEL = new QLabel(tr("USB device number: ")); | |
11 | linkNumber_LABEL = new QLabel(tr("SpaceWire link number: ")); |
|
13 | linkNumber_LABEL = new QLabel(tr("SpaceWire link number: ")); | |
12 | starDundeeStatusQueryDialogLabel = new QLabel(tr("SpaceWire link not running")); |
|
14 | starDundeeStatusQueryDialogLabel = new QLabel(tr("SpaceWire link not running")); | |
|
15 | currentTimecodeValue_LABEL = new QLabel(tr("Current Timecode Value: -")); | |||
|
16 | currentTimecodeFlag_LABEL = new QLabel(tr("Current Timecode Flag: -")); | |||
13 |
|
17 | |||
14 | //*** QPUSHBUTTON ***// |
|
18 | //*** QPUSHBUTTON ***// | |
|
19 | button_sendSystemTime = new QPushButton(tr("Send System Time")); | |||
|
20 | button_sendArbitraryTime = new QPushButton(tr("Send Arbitrary Time")); | |||
15 | starDundeeStatusQueryRetryButton = new QPushButton(tr("Retry")); |
|
21 | starDundeeStatusQueryRetryButton = new QPushButton(tr("Retry")); | |
16 | starDundeeStatusQueryAbortButton = new QPushButton(tr("Abort")); |
|
22 | starDundeeStatusQueryAbortButton = new QPushButton(tr("Abort")); | |
17 |
startTimeButton = new QPushButton(tr("start sending time |
|
23 | startTimeButton = new QPushButton(tr("start sending timecodes periodically")); | |
18 | sendTimecodeButton = new QPushButton(tr("send one timecode")); |
|
24 | sendTimecodeButton = new QPushButton(tr("send one timecode")); | |
19 | sendPacketAndTimecodeButton = new QPushButton(tr("send time packet and timecode")); |
|
|||
20 |
|
25 | |||
21 | usbDeviceNumber_SPINBOX = new QSpinBox; |
|
26 | usbDeviceNumber_SPINBOX = new QSpinBox; | |
22 | usbDeviceNumber_SPINBOX->setRange(0,32); |
|
27 | usbDeviceNumber_SPINBOX->setRange(0,32); | |
23 | usbDeviceNumber_SPINBOX->setValue(0); |
|
28 | usbDeviceNumber_SPINBOX->setValue(0); | |
24 | linkNumber_SPINBOX = new QSpinBox; |
|
29 | linkNumber_SPINBOX = new QSpinBox; | |
25 | linkNumber_SPINBOX->setRange(1,2); |
|
30 | linkNumber_SPINBOX->setRange(1,2); | |
26 | linkNumber_SPINBOX->setValue(1); |
|
31 | linkNumber_SPINBOX->setValue(1); | |
27 |
|
32 | |||
28 | console = new QTextEdit; |
|
33 | console = new QTextEdit; | |
|
34 | systemTime = new SystemTime; | |||
29 |
|
35 | |||
30 | // STAR DUNDEE STATUS QUERY DIALOG |
|
36 | // STAR DUNDEE STATUS QUERY DIALOG | |
31 | starDundeeStatusQueryDialogLayout = new QGridLayout; |
|
37 | starDundeeStatusQueryDialogLayout = new QGridLayout; | |
32 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryDialogLabel, 0, 0, 1, 2); |
|
38 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryDialogLabel, 0, 0, 1, 2); | |
33 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryRetryButton, 1, 0, 0); |
|
39 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryRetryButton, 1, 0, 0); | |
34 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryAbortButton, 1, 1, 0); |
|
40 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryAbortButton, 1, 1, 0); | |
35 | starDundeeStatusQueryDialog->setLayout(starDundeeStatusQueryDialogLayout); |
|
41 | starDundeeStatusQueryDialog->setLayout(starDundeeStatusQueryDialogLayout); | |
36 |
|
42 | |||
37 | connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1); |
|
43 | connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1); | |
38 | connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1); |
|
44 | connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1); | |
39 | connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1); |
|
45 | connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1); | |
40 | connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1); |
|
46 | connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1); | |
41 | connection_LAYOUT->addWidget(sendTimecodeButton, 2, 0, 1, 2); |
|
47 | connection_LAYOUT->addWidget(sendTimecodeButton, 2, 0, 1, 2); | |
42 |
connection_LAYOUT->addWidget(s |
|
48 | connection_LAYOUT->addWidget(startTimeButton, 3, 0, 1, 2); | |
43 |
connection_LAYOUT->addWidget( |
|
49 | connection_LAYOUT->addWidget(currentTimecodeValue_LABEL, 4, 0, 1, 2); | |
44 |
connection_LAYOUT->addWidget(c |
|
50 | connection_LAYOUT->addWidget(currentTimecodeFlag_LABEL, 5, 0, 1, 2); | |
|
51 | connection_LAYOUT->addWidget(button_sendSystemTime, 6, 0, 1, 1); | |||
|
52 | connection_LAYOUT->addWidget(button_sendArbitraryTime, 6, 1, 1, 1); | |||
|
53 | connection_LAYOUT->addWidget(systemTime, 7, 0, 1, 2); | |||
|
54 | connection_LAYOUT->addWidget(console, 0, 2, 7, 2); | |||
45 |
|
55 | |||
46 | //connection_LAYOUT->setRowStretch(6, 1); |
|
56 | //connection_LAYOUT->setRowStretch(6, 1); | |
47 | connection_LAYOUT->setColumnStretch(2, 1); |
|
57 | connection_LAYOUT->setColumnStretch(2, 1); | |
48 |
|
58 | |||
49 | this->setLayout(connection_LAYOUT); |
|
59 | this->setLayout(connection_LAYOUT); | |
50 |
|
60 | |||
51 | connect(starDundeeStatusQueryAbortButton, SIGNAL(clicked()), starDundeeStatusQueryDialog, SLOT(reject())); |
|
61 | connect(starDundeeStatusQueryAbortButton, SIGNAL(clicked()), starDundeeStatusQueryDialog, SLOT(reject())); | |
|
62 | connect(this->systemTime, SIGNAL(timeToSendChanged(long)), this, SLOT(updateTimeToSend(long))); | |||
52 | } |
|
63 | } | |
53 |
|
64 | |||
54 | void mainwindowui::displayMessage(QString message) |
|
65 | void mainwindowui::displayMessage(QString message) | |
55 | { |
|
66 | { | |
56 | this->console->append(message); |
|
67 | this->console->append(message); | |
57 | } |
|
68 | } | |
|
69 | ||||
|
70 | void::mainwindowui::updateTimeToSend(long timeToSend) | |||
|
71 | { | |||
|
72 | arbitraryTime = timeToSend; | |||
|
73 | } |
@@ -1,45 +1,56 | |||||
1 | #ifndef MAINWINDOWUI_H |
|
1 | #ifndef MAINWINDOWUI_H | |
2 | #define MAINWINDOWUI_H |
|
2 | #define MAINWINDOWUI_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QLabel> |
|
5 | #include <QLabel> | |
6 | #include <QSpinBox> |
|
6 | #include <QSpinBox> | |
7 | #include <QGridLayout> |
|
7 | #include <QGridLayout> | |
8 | #include <QPushButton> |
|
8 | #include <QPushButton> | |
9 | #include <QTextEdit> |
|
9 | #include <QTextEdit> | |
10 | #include <QDialog> |
|
10 | #include <QDialog> | |
11 |
|
11 | |||
|
12 | #include "systemtime.h" | |||
|
13 | ||||
12 | class mainwindowui : public QWidget |
|
14 | class mainwindowui : public QWidget | |
13 | { |
|
15 | { | |
14 | Q_OBJECT |
|
16 | Q_OBJECT | |
15 | public: |
|
17 | public: | |
16 | explicit mainwindowui(QWidget *parent = 0); |
|
18 | explicit mainwindowui(QWidget *parent = 0); | |
17 |
|
19 | |||
18 | signals: |
|
20 | signals: | |
19 |
|
21 | |||
20 | public slots: |
|
22 | public slots: | |
21 | void displayMessage(QString message); |
|
23 | void displayMessage(QString message); | |
|
24 | void updateTimeToSend(long timeToSend); | |||
22 |
|
25 | |||
23 | public: |
|
26 | public: | |
|
27 | long arbitraryTime; | |||
|
28 | ||||
24 | QLabel *usbDeviceNumber_LABEL; |
|
29 | QLabel *usbDeviceNumber_LABEL; | |
25 | QLabel *linkNumber_LABEL; |
|
30 | QLabel *linkNumber_LABEL; | |
26 | QLabel *starDundeeStatusQueryDialogLabel; |
|
31 | QLabel *starDundeeStatusQueryDialogLabel; | |
|
32 | QLabel *currentTimecodeValue_LABEL; | |||
|
33 | QLabel *currentTimecodeFlag_LABEL; | |||
|
34 | ||||
27 |
|
35 | |||
28 | QSpinBox *usbDeviceNumber_SPINBOX; |
|
36 | QSpinBox *usbDeviceNumber_SPINBOX; | |
29 | QSpinBox *linkNumber_SPINBOX; |
|
37 | QSpinBox *linkNumber_SPINBOX; | |
30 |
|
38 | |||
31 | QGridLayout *connection_LAYOUT; |
|
39 | QGridLayout *connection_LAYOUT; | |
32 | QGridLayout *starDundeeStatusQueryDialogLayout; |
|
40 | QGridLayout *starDundeeStatusQueryDialogLayout; | |
33 |
|
41 | |||
34 | QDialog *starDundeeStatusQueryDialog; |
|
42 | QDialog *starDundeeStatusQueryDialog; | |
35 |
|
43 | |||
|
44 | QPushButton *button_sendSystemTime; | |||
|
45 | QPushButton *button_sendArbitraryTime; | |||
36 | QPushButton *startTimeButton; |
|
46 | QPushButton *startTimeButton; | |
37 | QPushButton *sendTimecodeButton; |
|
47 | QPushButton *sendTimecodeButton; | |
38 | QPushButton *sendPacketAndTimecodeButton; |
|
|||
39 | QPushButton *starDundeeStatusQueryRetryButton; |
|
48 | QPushButton *starDundeeStatusQueryRetryButton; | |
40 | QPushButton *starDundeeStatusQueryAbortButton; |
|
49 | QPushButton *starDundeeStatusQueryAbortButton; | |
41 |
|
50 | |||
|
51 | SystemTime *systemTime; | |||
|
52 | ||||
42 | QTextEdit* console; |
|
53 | QTextEdit* console; | |
43 | }; |
|
54 | }; | |
44 |
|
55 | |||
45 | #endif // MAINWINDOWUI_H |
|
56 | #endif // MAINWINDOWUI_H |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,26 +1,37 | |||||
1 | #------------------------------------------------- |
|
1 | #------------------------------------------------- | |
2 | # |
|
2 | # | |
3 | # Project created by QtCreator 2013-03-29T07:55:31 |
|
3 | # Project created by QtCreator 2013-03-29T07:55:31 | |
4 | # |
|
4 | # | |
5 | #------------------------------------------------- |
|
5 | #------------------------------------------------- | |
6 |
|
6 | |||
7 | QT += core gui |
|
7 | QT += core gui | |
8 |
|
8 | |||
9 | TARGET = spwtimegenerator |
|
9 | TARGET = spwtimegenerator | |
10 | TEMPLATE = app |
|
10 | TEMPLATE = app | |
11 |
|
11 | |||
|
12 | INCLUDEPATH += \ | |||
|
13 | $${PWD} \ | |||
|
14 | ../spw_usb_driver_v2.61/inc \ | |||
|
15 | ../parameterdump \ | |||
|
16 | ../../DEV_PLE/header \ | |||
|
17 | $$[QT_INSTALL_HEADERS]/lppmon/paulcommon | |||
|
18 | ||||
12 | SOURCES += main.cpp\ |
|
19 | SOURCES += main.cpp\ | |
13 | mainwindow.cpp \ |
|
20 | mainwindow.cpp \ | |
14 | mainwindowui.cpp |
|
21 | mainwindowui.cpp \ | |
|
22 | ../parameterdump/tcpackettosend.cpp | |||
15 |
|
23 | |||
16 | HEADERS += mainwindow.h \ |
|
24 | HEADERS += mainwindow.h \ | |
17 | mainwindowui.h \ |
|
25 | mainwindowui.h \ | |
18 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ |
|
26 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ | |
19 | ../spw_usb_driver_v2.61/inc/spw_config_library.h |
|
27 | ../spw_usb_driver_v2.61/inc/spw_config_library.h \ | |
|
28 | ../../DEV_PLE/header/ccsds_types.h \ | |||
|
29 | ../../DEV_PLE/header/TC_types.h \ | |||
|
30 | ../parameterdump/tcpackettosend.h | |||
|
31 | ||||
|
32 | LIBS += -lpaulcommon | |||
20 |
|
33 | |||
21 | LIBS += ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so \ |
|
34 | LIBS += ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so \ | |
22 | ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so |
|
35 | ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so | |
23 |
|
36 | |||
24 | INCLUDEPATH += \ |
|
37 | ||
25 | $${PWD} \ |
|
|||
26 | ../spw_usb_driver_v2.61/inc |
|
@@ -1,265 +1,257 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by Qt |
|
3 | <!-- Written by QtCreator 2.8.0, 2013-09-20T16:01:50. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | <valuemap type="QVariantMap"> |
|
11 | <valuemap type="QVariantMap"> | |
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |||
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
15 | <value type="QString" key="language">Cpp</value> |
|
16 | <value type="QString" key="language">Cpp</value> | |
16 | <valuemap type="QVariantMap" key="value"> |
|
17 | <valuemap type="QVariantMap" key="value"> | |
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
18 | </valuemap> |
|
19 | </valuemap> | |
19 | </valuemap> |
|
20 | </valuemap> | |
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
21 | <value type="QString" key="language">QmlJS</value> |
|
22 | <value type="QString" key="language">QmlJS</value> | |
22 | <valuemap type="QVariantMap" key="value"> |
|
23 | <valuemap type="QVariantMap" key="value"> | |
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
24 | </valuemap> |
|
25 | </valuemap> | |
25 | </valuemap> |
|
26 | </valuemap> | |
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |||
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
43 | </valuemap> |
|
45 | </valuemap> | |
44 | </data> |
|
46 | </data> | |
45 | <data> |
|
47 | <data> | |
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
47 | <valuemap type="QVariantMap"/> |
|
49 | <valuemap type="QVariantMap"/> | |
48 | </data> |
|
50 | </data> | |
49 | <data> |
|
51 | <data> | |
50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
52 | <variable>ProjectExplorer.Project.Target.0</variable> | |
51 | <valuemap type="QVariantMap"> |
|
53 | <valuemap type="QVariantMap"> | |
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
54 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id"> |
|
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
|||
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
71 | </valuemap> | |
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
77 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |||
|
78 | <value type="QString">-w</value> | |||
|
79 | <value type="QString">-r</value> | |||
|
80 | </valuelist> | |||
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
81 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
82 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
77 | </valuemap> |
|
84 | </valuemap> | |
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
82 | </valuemap> |
|
89 | </valuemap> | |
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
96 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |||
|
97 | <value type="QString">-w</value> | |||
|
98 | <value type="QString">-r</value> | |||
|
99 | </valuelist> | |||
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
100 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
101 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
91 | </valuemap> |
|
103 | </valuemap> | |
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
96 | </valuemap> |
|
108 | </valuemap> | |
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> |
|
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
|||
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
118 | </valuemap> | |
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
119 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
|||
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
122 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
126 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
127 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
128 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
129 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
119 | </valuemap> |
|
130 | </valuemap> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
131 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
|
132 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
133 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
134 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
136 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |||
|
137 | <value type="QString">-w</value> | |||
|
138 | <value type="QString">-r</value> | |||
|
139 | </valuelist> | |||
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
140 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
141 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
142 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
127 | </valuemap> |
|
143 | </valuemap> | |
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
144 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
146 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
147 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
132 | </valuemap> |
|
148 | </valuemap> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
149 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
150 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
151 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |||
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
153 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
154 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
155 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |||
|
156 | <value type="QString">-w</value> | |||
|
157 | <value type="QString">-r</value> | |||
|
158 | </valuelist> | |||
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
159 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
160 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
161 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
141 | </valuemap> |
|
162 | </valuemap> | |
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
163 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
165 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
166 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
146 | </valuemap> |
|
167 | </valuemap> | |
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
168 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
169 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
170 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
171 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
174 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> |
|
175 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
|||
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
176 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
177 | </valuemap> | |
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
178 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
179 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
180 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
181 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
182 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
183 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
184 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
165 | </valuemap> |
|
185 | </valuemap> | |
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
186 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
187 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
188 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
189 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
170 | </valuemap> |
|
190 | </valuemap> | |
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
191 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
|
192 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |||
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
193 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
194 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
|||
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
|||
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
196 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
|||
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
|||
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
|||
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
|||
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
199 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
200 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
|||
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
201 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
|||
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
|||
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
202 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
203 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
|||
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
|||
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
204 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
205 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
|||
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
206 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
|||
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
|||
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
207 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
208 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
202 | <value type="int">0</value> |
|
209 | <value type="int">0</value> | |
203 | <value type="int">1</value> |
|
210 | <value type="int">1</value> | |
204 | <value type="int">2</value> |
|
211 | <value type="int">2</value> | |
205 | <value type="int">3</value> |
|
212 | <value type="int">3</value> | |
206 | <value type="int">4</value> |
|
213 | <value type="int">4</value> | |
207 | <value type="int">5</value> |
|
214 | <value type="int">5</value> | |
208 | <value type="int">6</value> |
|
215 | <value type="int">6</value> | |
209 | <value type="int">7</value> |
|
216 | <value type="int">7</value> | |
210 | <value type="int">8</value> |
|
217 | <value type="int">8</value> | |
211 | <value type="int">9</value> |
|
218 | <value type="int">9</value> | |
212 | <value type="int">10</value> |
|
219 | <value type="int">10</value> | |
213 | <value type="int">11</value> |
|
220 | <value type="int">11</value> | |
214 | <value type="int">12</value> |
|
221 | <value type="int">12</value> | |
215 | <value type="int">13</value> |
|
222 | <value type="int">13</value> | |
216 | <value type="int">14</value> |
|
223 | <value type="int">14</value> | |
217 | </valuelist> |
|
224 | </valuelist> | |
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
225 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
219 | <value type="int">0</value> |
|
226 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
220 | <value type="int">1</value> |
|
|||
221 | <value type="int">2</value> |
|
|||
222 | <value type="int">3</value> |
|
|||
223 | <value type="int">4</value> |
|
|||
224 | <value type="int">5</value> |
|
|||
225 | <value type="int">6</value> |
|
|||
226 | <value type="int">7</value> |
|
|||
227 | <value type="int">8</value> |
|
|||
228 | <value type="int">9</value> |
|
|||
229 | <value type="int">10</value> |
|
|||
230 | <value type="int">11</value> |
|
|||
231 | <value type="int">12</value> |
|
|||
232 | <value type="int">13</value> |
|
|||
233 | <value type="int">14</value> |
|
|||
234 | </valuelist> |
|
|||
235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> |
|
227 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> | |
236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
228 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
237 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
229 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator/spwtimegenerator.pro</value> | |
238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
|||
239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
230 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator.pro</value> |
|
231 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator.pro</value> | |
241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
232 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
233 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |
243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
|||
244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
234 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
235 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
236 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
|
237 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> | |||
|
238 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |||
247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
239 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
248 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
240 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
249 | </valuemap> |
|
241 | </valuemap> | |
250 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
242 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
251 | </valuemap> |
|
243 | </valuemap> | |
252 | </data> |
|
244 | </data> | |
253 | <data> |
|
245 | <data> | |
254 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
246 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
255 | <value type="int">1</value> |
|
247 | <value type="int">1</value> | |
256 | </data> |
|
248 | </data> | |
257 | <data> |
|
249 | <data> | |
258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
250 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
259 |
<value type="Q |
|
251 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
260 | </data> |
|
252 | </data> | |
261 | <data> |
|
253 | <data> | |
262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
254 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
263 |
<value type="int">1 |
|
255 | <value type="int">14</value> | |
264 | </data> |
|
256 | </data> | |
265 | </qtcreator> |
|
257 | </qtcreator> |
General Comments 0
You need to be logged in to leave comments.
Login now