@@ -0,0 +1,224 | |||
|
1 | #include "parameterdump.h" | |
|
2 | ||
|
3 | ParameterDump::ParameterDump(QWidget *parent) : | |
|
4 | QWidget(parent) | |
|
5 | { | |
|
6 | this->buildTabParameterDump(); | |
|
7 | ||
|
8 | this->setLayout(layout_parameterDump); | |
|
9 | } | |
|
10 | ||
|
11 | void ParameterDump::buildTabParameterDump() | |
|
12 | { | |
|
13 | buildCOMM(); | |
|
14 | buildNORM(); | |
|
15 | buildBURST(); | |
|
16 | buildSBM1(); | |
|
17 | buildSBM2(); | |
|
18 | ||
|
19 | layout_parameterDump = new QGridLayout(); | |
|
20 | ||
|
21 | layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1); | |
|
22 | layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1); | |
|
23 | layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1); | |
|
24 | layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1); | |
|
25 | layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1); | |
|
26 | ||
|
27 | layout_parameterDump->setRowStretch(3, 1); | |
|
28 | layout_parameterDump->setColumnStretch(2, 1); | |
|
29 | } | |
|
30 | ||
|
31 | void ParameterDump::buildCOMM() | |
|
32 | { | |
|
33 | groupbox_COMM = new QGroupBox(tr("COMMON_PAR")); | |
|
34 | layout_COMM = new QGridLayout(); | |
|
35 | ||
|
36 | sy_lfr_bw = new QLabel("sy_lfr_bw "); | |
|
37 | sy_lfr_sp0 = new QLabel("sy_lfr_sp0 "); | |
|
38 | sy_lfr_sp1 = new QLabel("sy_lfr_sp1 "); | |
|
39 | sy_lfr_r0 = new QLabel("sy_lfr_r0 "); | |
|
40 | sy_lfr_r1 = new QLabel("sy_lfr_r1 "); | |
|
41 | ||
|
42 | spinbox_sy_lfr_bw = new QSpinBox(); | |
|
43 | spinbox_sy_lfr_sp0 = new QSpinBox(); | |
|
44 | spinbox_sy_lfr_sp1 = new QSpinBox(); | |
|
45 | spinbox_sy_lfr_r0 = new QSpinBox(); | |
|
46 | spinbox_sy_lfr_r1 = new QSpinBox(); | |
|
47 | ||
|
48 | spinbox_sy_lfr_bw->setRange(0, 1); | |
|
49 | spinbox_sy_lfr_sp0->setRange(0, 1); | |
|
50 | spinbox_sy_lfr_sp1->setRange(0, 1); | |
|
51 | spinbox_sy_lfr_r0->setRange(0, 1); | |
|
52 | spinbox_sy_lfr_r1->setRange(0, 1); | |
|
53 | ||
|
54 | spinbox_sy_lfr_bw->setValue(1); | |
|
55 | spinbox_sy_lfr_sp0->setValue(0); | |
|
56 | spinbox_sy_lfr_sp1->setValue(0); | |
|
57 | spinbox_sy_lfr_r0->setValue(0); | |
|
58 | spinbox_sy_lfr_r1->setValue(0); | |
|
59 | ||
|
60 | layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1); | |
|
61 | layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1); | |
|
62 | layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1); | |
|
63 | layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1); | |
|
64 | layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1); | |
|
65 | ||
|
66 | layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1); | |
|
67 | layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1); | |
|
68 | layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1); | |
|
69 | layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1); | |
|
70 | layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1); | |
|
71 | ||
|
72 | layout_COMM->setColumnStretch(2, 1); | |
|
73 | layout_COMM->setRowStretch(5, 1); | |
|
74 | ||
|
75 | groupbox_COMM->setLayout(layout_COMM); | |
|
76 | } | |
|
77 | ||
|
78 | void ParameterDump::buildNORM() | |
|
79 | { | |
|
80 | groupbox_NORM = new QGroupBox(tr("NORMAL_PAR")); | |
|
81 | layout_NORM = new QGridLayout(); | |
|
82 | ||
|
83 | sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l "); | |
|
84 | sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p "); | |
|
85 | sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p "); | |
|
86 | sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 "); | |
|
87 | sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 "); | |
|
88 | ||
|
89 | spinbox_sy_lfr_n_swf_l = new QSpinBox(); | |
|
90 | spinbox_sy_lfr_n_swf_p = new QSpinBox(); | |
|
91 | spinbox_sy_lfr_n_asm_p = new QSpinBox(); | |
|
92 | spinbox_sy_lfr_n_bp_p0 = new QSpinBox(); | |
|
93 | spinbox_sy_lfr_n_bp_p1 = new QSpinBox(); | |
|
94 | ||
|
95 | spinbox_sy_lfr_n_swf_l->setRange(256, 65535); | |
|
96 | spinbox_sy_lfr_n_swf_p->setRange(16, 65535); | |
|
97 | spinbox_sy_lfr_n_asm_p->setRange(16, 65535); | |
|
98 | spinbox_sy_lfr_n_bp_p0->setRange(4, 3600); | |
|
99 | spinbox_sy_lfr_n_bp_p1->setRange(20, 3600); | |
|
100 | ||
|
101 | spinbox_sy_lfr_n_swf_l->setValue(2048); | |
|
102 | spinbox_sy_lfr_n_swf_p->setValue(300); | |
|
103 | spinbox_sy_lfr_n_asm_p->setValue(3600); | |
|
104 | spinbox_sy_lfr_n_bp_p0->setValue(4); | |
|
105 | spinbox_sy_lfr_n_bp_p1->setValue(20); | |
|
106 | ||
|
107 | layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1); | |
|
108 | layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1); | |
|
109 | layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1); | |
|
110 | layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1); | |
|
111 | layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1); | |
|
112 | ||
|
113 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1); | |
|
114 | layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1); | |
|
115 | layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1); | |
|
116 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1); | |
|
117 | layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1); | |
|
118 | ||
|
119 | layout_NORM->setColumnStretch(2, 1); | |
|
120 | layout_NORM->setRowStretch(5, 1); | |
|
121 | ||
|
122 | groupbox_NORM->setLayout(layout_NORM); | |
|
123 | } | |
|
124 | ||
|
125 | void ParameterDump::buildBURST() | |
|
126 | { | |
|
127 | groupbox_BURST = new QGroupBox(tr("BURST_PAR")); | |
|
128 | layout_BURST = new QGridLayout(); | |
|
129 | ||
|
130 | sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 "); | |
|
131 | sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 "); | |
|
132 | ||
|
133 | spinbox_sy_lfr_b_bp_p0 = new QSpinBox(); | |
|
134 | spinbox_sy_lfr_b_bp_p1 = new QSpinBox(); | |
|
135 | ||
|
136 | layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1); | |
|
137 | layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1); | |
|
138 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1); | |
|
139 | layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1); | |
|
140 | ||
|
141 | layout_BURST->setColumnStretch(2, 1); | |
|
142 | layout_BURST->setRowStretch(3, 1); | |
|
143 | ||
|
144 | groupbox_BURST->setLayout(layout_BURST); | |
|
145 | } | |
|
146 | ||
|
147 | void ParameterDump::buildSBM1() | |
|
148 | { | |
|
149 | groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR")); | |
|
150 | layout_SBM1 = new QGridLayout(); | |
|
151 | ||
|
152 | sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 "); | |
|
153 | sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 "); | |
|
154 | ||
|
155 | spinbox_sy_lfr_s1_bp_p0 = new QSpinBox(); | |
|
156 | spinbox_sy_lfr_s1_bp_p1 = new QSpinBox(); | |
|
157 | ||
|
158 | layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1); | |
|
159 | layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1); | |
|
160 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1); | |
|
161 | layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1); | |
|
162 | ||
|
163 | layout_SBM1->setColumnStretch(2, 1); | |
|
164 | layout_SBM1->setRowStretch(3, 1); | |
|
165 | ||
|
166 | groupbox_SBM1->setLayout(layout_SBM1); | |
|
167 | } | |
|
168 | ||
|
169 | void ParameterDump::buildSBM2() | |
|
170 | { | |
|
171 | groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR")); | |
|
172 | layout_SBM2 = new QGridLayout(); | |
|
173 | ||
|
174 | sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 "); | |
|
175 | sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 "); | |
|
176 | ||
|
177 | spinbox_sy_lfr_s2_bp_p0 = new QSpinBox(); | |
|
178 | spinbox_sy_lfr_s2_bp_p1 = new QSpinBox(); | |
|
179 | ||
|
180 | layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1); | |
|
181 | layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1); | |
|
182 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1); | |
|
183 | layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1); | |
|
184 | ||
|
185 | layout_SBM2->setColumnStretch(2, 1); | |
|
186 | layout_SBM2->setRowStretch(3, 1); | |
|
187 | ||
|
188 | groupbox_SBM2->setLayout(layout_SBM2); | |
|
189 | } | |
|
190 | ||
|
191 | void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead) | |
|
192 | { | |
|
193 | ||
|
194 | Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket; | |
|
195 | ||
|
196 | parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value; | |
|
197 | ||
|
198 | sy_lfr_bw->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 ) ); | |
|
199 | sy_lfr_sp0->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 ) ); | |
|
200 | sy_lfr_sp1->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 ) ); | |
|
201 | sy_lfr_r0->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 ) ); | |
|
202 | sy_lfr_r1->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) ) ); | |
|
203 | ||
|
204 | sy_lfr_n_swf_l->setText(" sy_lfr_n_swf_l: " | |
|
205 | + QString::number( parameterPacket->sy_lfr_n_swf_l[0] * 256 | |
|
206 | + parameterPacket->sy_lfr_n_swf_l[1] ) ); | |
|
207 | sy_lfr_n_swf_p->setText(" sy_lfr_n_swf_p: " | |
|
208 | + QString::number( parameterPacket->sy_lfr_n_swf_p[0] * 256 | |
|
209 | + parameterPacket->sy_lfr_n_swf_p[1] ) ); | |
|
210 | sy_lfr_n_asm_p->setText(" sy_lfr_n_asm_p: " | |
|
211 | + QString::number( parameterPacket->sy_lfr_n_asm_p[0] * 256 | |
|
212 | + parameterPacket->sy_lfr_n_asm_p[1] ) ); | |
|
213 | sy_lfr_n_bp_p0->setText(" sy_lfr_n_bp_p0: " + QString::number( parameterPacket->sy_lfr_n_bp_p0 ) ); | |
|
214 | sy_lfr_n_bp_p1->setText(" sy_lfr_n_bp_p1: " + QString::number( parameterPacket->sy_lfr_n_bp_p1 ) ); | |
|
215 | ||
|
216 | sy_lfr_b_bp_p0->setText(" sy_lfr_b_p0: " + QString::number( parameterPacket->sy_lfr_b_bp_p0 ) ); | |
|
217 | sy_lfr_b_bp_p1->setText(" sy_lfr_b_p1: " + QString::number( parameterPacket->sy_lfr_b_bp_p1 ) ); | |
|
218 | ||
|
219 | sy_lfr_s1_bp_p0->setText(" sy_lfr_s1_p0: " + QString::number( parameterPacket->sy_lfr_s1_bp_p0 ) ); | |
|
220 | sy_lfr_s1_bp_p1->setText(" sy_lfr_s1_p1: " + QString::number( parameterPacket->sy_lfr_s1_bp_p1 ) ); | |
|
221 | ||
|
222 | sy_lfr_s2_bp_p0->setText(" sy_lfr_s2_p0: " + QString::number( parameterPacket->sy_lfr_s2_bp_p0 ) ); | |
|
223 | sy_lfr_s2_bp_p1->setText(" sy_lfr_s2_p1: " + QString::number( parameterPacket->sy_lfr_s2_bp_p1 ) ); | |
|
224 | } |
@@ -0,0 +1,90 | |||
|
1 | #ifndef PARAMETERDUMP_H | |
|
2 | #define PARAMETERDUMP_H | |
|
3 | ||
|
4 | #include <QWidget> | |
|
5 | #include <QLabel> | |
|
6 | #include <QGroupBox> | |
|
7 | #include <QGridLayout> | |
|
8 | #include <QSpinBox> | |
|
9 | ||
|
10 | #include <tmpackettoread.h> | |
|
11 | #include <ccsds_types.h> | |
|
12 | ||
|
13 | class ParameterDump : public QWidget | |
|
14 | { | |
|
15 | Q_OBJECT | |
|
16 | public: | |
|
17 | explicit ParameterDump(QWidget *parent = 0); | |
|
18 | ||
|
19 | void buildTabParameterDump(); | |
|
20 | void buildCOMM(); | |
|
21 | void buildNORM(); | |
|
22 | void buildBURST(); | |
|
23 | void buildSBM1(); | |
|
24 | void buildSBM2(); | |
|
25 | void updateParameterDump(TMPacketToRead *tmPacketToRead); | |
|
26 | ||
|
27 | QGroupBox* groupbox_parameterDump; | |
|
28 | QGroupBox* groupbox_COMM; | |
|
29 | QGroupBox* groupbox_NORM; | |
|
30 | QGroupBox* groupbox_BURST; | |
|
31 | QGroupBox* groupbox_SBM1; | |
|
32 | QGroupBox* groupbox_SBM2; | |
|
33 | ||
|
34 | QGridLayout* layout_parameterDump; | |
|
35 | QGridLayout* layout_COMM; | |
|
36 | QGridLayout* layout_NORM; | |
|
37 | QGridLayout* layout_BURST; | |
|
38 | QGridLayout* layout_SBM1; | |
|
39 | QGridLayout* layout_SBM2; | |
|
40 | // | |
|
41 | QLabel* sy_lfr_bw; | |
|
42 | QLabel* sy_lfr_sp0; | |
|
43 | QLabel* sy_lfr_sp1; | |
|
44 | QLabel* sy_lfr_r0; | |
|
45 | QLabel* sy_lfr_r1; | |
|
46 | // | |
|
47 | QLabel* sy_lfr_n_swf_l; | |
|
48 | QLabel* sy_lfr_n_swf_p; | |
|
49 | QLabel* sy_lfr_n_asm_p; | |
|
50 | QLabel* sy_lfr_n_bp_p0; | |
|
51 | QLabel* sy_lfr_n_bp_p1; | |
|
52 | // | |
|
53 | QLabel* sy_lfr_b_bp_p0; | |
|
54 | QLabel* sy_lfr_b_bp_p1; | |
|
55 | // | |
|
56 | QLabel* sy_lfr_s1_bp_p0; | |
|
57 | QLabel* sy_lfr_s1_bp_p1; | |
|
58 | // | |
|
59 | QLabel* sy_lfr_s2_bp_p0; | |
|
60 | QLabel* sy_lfr_s2_bp_p1; | |
|
61 | ||
|
62 | QSpinBox* spinbox_sy_lfr_bw; | |
|
63 | QSpinBox* spinbox_sy_lfr_sp0; | |
|
64 | QSpinBox* spinbox_sy_lfr_sp1; | |
|
65 | QSpinBox* spinbox_sy_lfr_r0; | |
|
66 | QSpinBox* spinbox_sy_lfr_r1; | |
|
67 | // | |
|
68 | QSpinBox* spinbox_sy_lfr_n_swf_l; | |
|
69 | QSpinBox* spinbox_sy_lfr_n_swf_p; | |
|
70 | QSpinBox* spinbox_sy_lfr_n_asm_p; | |
|
71 | QSpinBox* spinbox_sy_lfr_n_bp_p0; | |
|
72 | QSpinBox* spinbox_sy_lfr_n_bp_p1; | |
|
73 | // | |
|
74 | QSpinBox* spinbox_sy_lfr_b_bp_p0; | |
|
75 | QSpinBox* spinbox_sy_lfr_b_bp_p1; | |
|
76 | // | |
|
77 | QSpinBox* spinbox_sy_lfr_s1_bp_p0; | |
|
78 | QSpinBox* spinbox_sy_lfr_s1_bp_p1; | |
|
79 | // | |
|
80 | QSpinBox* spinbox_sy_lfr_s2_bp_p0; | |
|
81 | QSpinBox* spinbox_sy_lfr_s2_bp_p1; | |
|
82 | ||
|
83 | signals: | |
|
84 | ||
|
85 | public slots: | |
|
86 | ||
|
87 | ||
|
88 | }; | |
|
89 | ||
|
90 | #endif // PARAMETERDUMP_H |
@@ -0,0 +1,33 | |||
|
1 | #include "spectrapacket.h" | |
|
2 | ||
|
3 | SpectraPacket::SpectraPacket(QObject *parent, unsigned int size) : | |
|
4 | QObject(parent) | |
|
5 | { | |
|
6 | unsigned int i; | |
|
7 | ||
|
8 | this->nbSamples = size; | |
|
9 | // | |
|
10 | s11 = (float*) malloc(sizeof(float) * size); | |
|
11 | s22 = (float*) malloc(sizeof(float) * size); | |
|
12 | s33 = (float*) malloc(sizeof(float) * size); | |
|
13 | s44 = (float*) malloc(sizeof(float) * size); | |
|
14 | s55 = (float*) malloc(sizeof(float) * size); | |
|
15 | ||
|
16 | for (i=0; i< size; i++) | |
|
17 | { | |
|
18 | s11[i] = 0.; | |
|
19 | s22[i] = 0.; | |
|
20 | s33[i] = 0.; | |
|
21 | s44[i] = 0.; | |
|
22 | s55[i] = 0.; | |
|
23 | } | |
|
24 | } | |
|
25 | ||
|
26 | SpectraPacket::~SpectraPacket() | |
|
27 | { | |
|
28 | free(s11); | |
|
29 | free(s22); | |
|
30 | free(s33); | |
|
31 | free(s44); | |
|
32 | free(s55); | |
|
33 | } |
@@ -0,0 +1,26 | |||
|
1 | #ifndef SPECTRAPACKET_H | |
|
2 | #define SPECTRAPACKET_H | |
|
3 | ||
|
4 | #include <QObject> | |
|
5 | #include <params.h> | |
|
6 | ||
|
7 | class SpectraPacket : public QObject | |
|
8 | { | |
|
9 | Q_OBJECT | |
|
10 | public: | |
|
11 | explicit SpectraPacket(QObject *parent = 0, unsigned int size = 0); | |
|
12 | ~SpectraPacket(); | |
|
13 | unsigned int nbSamples; | |
|
14 | float *s11; | |
|
15 | float *s22; | |
|
16 | float *s33; | |
|
17 | float *s44; | |
|
18 | float *s55; | |
|
19 | ||
|
20 | signals: | |
|
21 | ||
|
22 | public slots: | |
|
23 | ||
|
24 | }; | |
|
25 | ||
|
26 | #endif // SPECTRAPACKET_H |
This diff has been collapsed as it changes many lines, (580 lines changed) Show them Hide them | |||
@@ -0,0 +1,580 | |||
|
1 | #include "pagespectra.h" | |
|
2 | #include <stdio.h> | |
|
3 | ||
|
4 | PageSpectra::PageSpectra(QWidget *parent) : | |
|
5 | QMainWindow(parent) | |
|
6 | { | |
|
7 | unsigned int i = 0; | |
|
8 | ||
|
9 | for (i = 0; i<6; i++) | |
|
10 | { | |
|
11 | localIndex[i] = 0; | |
|
12 | } | |
|
13 | ||
|
14 | pageTitle = "default"; | |
|
15 | wfPlot_v = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
16 | wfPlot_e1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
17 | wfPlot_e2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
18 | wfPlot_b1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
19 | wfPlot_b2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
20 | // | |
|
21 | wfPlot_v->customPlot->setTitle("s11"); | |
|
22 | wfPlot_e1->customPlot->setTitle("s22"); | |
|
23 | wfPlot_e2->customPlot->setTitle("s33"); | |
|
24 | wfPlot_b1->customPlot->setTitle("s44"); | |
|
25 | wfPlot_b2->customPlot->setTitle("s55"); | |
|
26 | // | |
|
27 | /*mainLayout = new QGridLayout; | |
|
28 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); | |
|
29 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); | |
|
30 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); | |
|
31 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); | |
|
32 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); | |
|
33 | mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);*/ | |
|
34 | // | |
|
35 | dockV = NULL; | |
|
36 | dockE1 = NULL; | |
|
37 | dockE2 = NULL; | |
|
38 | dockB1 = NULL; | |
|
39 | dockB2 = NULL; | |
|
40 | ||
|
41 | titleWidgetV = new QWidget(); | |
|
42 | titleWidgetE1 = new QWidget(); | |
|
43 | titleWidgetE2 = new QWidget(); | |
|
44 | titleWidgetB1 = new QWidget(); | |
|
45 | titleWidgetB2 = new QWidget(); | |
|
46 | ||
|
47 | logFileName = new QLabel(); | |
|
48 | logFile = new QFile(); | |
|
49 | logFileV = new QFile(); | |
|
50 | logFileE1 = new QFile(); | |
|
51 | logFileE2 = new QFile(); | |
|
52 | logFileB1 = new QFile(); | |
|
53 | logFileB2 = new QFile(); | |
|
54 | ||
|
55 | logFileEn = false; | |
|
56 | storageEnabledV = false; | |
|
57 | storageEnabledE1 = false; | |
|
58 | storageEnabledE2 = false; | |
|
59 | storageEnabledB1 = false; | |
|
60 | storageEnabledB2 = false; | |
|
61 | ||
|
62 | createToolBar(); | |
|
63 | readSettings(); | |
|
64 | } | |
|
65 | ||
|
66 | void PageSpectra::displayOnPlot(short *data, unsigned char num) | |
|
67 | { | |
|
68 | QByteArray dataByteArray; | |
|
69 | unsigned int i; | |
|
70 | ||
|
71 | switch(num){ | |
|
72 | case 0: | |
|
73 | wfPlot_v->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
74 | if ( (storageEnabledV == true) && (logFileV->isOpen()) ) | |
|
75 | { | |
|
76 | for (i=0; i<DEFAULT_SIZE; i++) | |
|
77 | { | |
|
78 | dataByteArray.clear(); | |
|
79 | dataByteArray.append(QByteArray::number(localIndex[0])); | |
|
80 | dataByteArray.append(' '); | |
|
81 | dataByteArray.append(QByteArray::number(data[i])); | |
|
82 | *(this->logFileStrmV) << dataByteArray << endl; | |
|
83 | localIndex[0]++; | |
|
84 | } | |
|
85 | } | |
|
86 | break; | |
|
87 | case 1: | |
|
88 | wfPlot_e1->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
89 | break; | |
|
90 | case 2: | |
|
91 | wfPlot_e2->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
92 | break; | |
|
93 | case 3: | |
|
94 | wfPlot_b1->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
95 | break; | |
|
96 | case 4: | |
|
97 | wfPlot_b2->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
98 | break; | |
|
99 | default: | |
|
100 | break; | |
|
101 | } | |
|
102 | } | |
|
103 | ||
|
104 | void PageSpectra::displayOnPlotFloat(float *data, unsigned char num) | |
|
105 | { | |
|
106 | QByteArray dataByteArray; | |
|
107 | unsigned int i; | |
|
108 | ||
|
109 | switch(num){ | |
|
110 | case 0: | |
|
111 | wfPlot_v->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
112 | if ( (storageEnabledV == true) && (logFileV->isOpen()) ) | |
|
113 | { | |
|
114 | for (i=0; i<DEFAULT_SIZE; i++) | |
|
115 | { | |
|
116 | dataByteArray.clear(); | |
|
117 | dataByteArray.append(QByteArray::number(localIndex[0])); | |
|
118 | dataByteArray.append(' '); | |
|
119 | dataByteArray.append(QByteArray::number(data[i])); | |
|
120 | *(this->logFileStrmV) << dataByteArray << endl; | |
|
121 | localIndex[0]++; | |
|
122 | } | |
|
123 | } | |
|
124 | break; | |
|
125 | case 1: | |
|
126 | wfPlot_e1->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
127 | break; | |
|
128 | case 2: | |
|
129 | wfPlot_e2->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
130 | break; | |
|
131 | case 3: | |
|
132 | wfPlot_b1->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
133 | break; | |
|
134 | case 4: | |
|
135 | wfPlot_b2->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE); | |
|
136 | break; | |
|
137 | default: | |
|
138 | break; | |
|
139 | } | |
|
140 | } | |
|
141 | ||
|
142 | void PageSpectra::createToolBar() | |
|
143 | { | |
|
144 | radio_v = new QRadioButton(tr("s11")); | |
|
145 | radio_e1 = new QRadioButton(tr("s22")); | |
|
146 | radio_e2 = new QRadioButton(tr("s33")); | |
|
147 | radio_b1 = new QRadioButton(tr("s44")); | |
|
148 | radio_b2 = new QRadioButton(tr("s44")); | |
|
149 | radio_tabify = new QRadioButton(tr("tabify")); | |
|
150 | ||
|
151 | radio_v->setAutoExclusive(false); | |
|
152 | radio_e1->setAutoExclusive(false); | |
|
153 | radio_e2->setAutoExclusive(false); | |
|
154 | radio_b1->setAutoExclusive(false); | |
|
155 | radio_b2->setAutoExclusive(false); | |
|
156 | radio_tabify->setAutoExclusive(false); | |
|
157 | ||
|
158 | button_selectAll = new QPushButton(tr("select all")); | |
|
159 | button_storeWfrm = new QPushButton(tr("REC")); | |
|
160 | button_chooseDir = new QPushButton(tr("choose dir")); | |
|
161 | ||
|
162 | myToolBar = new QToolBar("select"); | |
|
163 | ||
|
164 | myToolBar->addWidget(radio_v); | |
|
165 | myToolBar->addWidget(radio_e1); | |
|
166 | myToolBar->addWidget(radio_e2); | |
|
167 | myToolBar->addWidget(radio_b1); | |
|
168 | myToolBar->addWidget(radio_b2); | |
|
169 | myToolBar->addSeparator(); | |
|
170 | myToolBar->addWidget(button_selectAll); | |
|
171 | myToolBar->addWidget(radio_tabify); | |
|
172 | myToolBar->addSeparator(); | |
|
173 | myToolBar->addWidget(button_storeWfrm); | |
|
174 | myToolBar->addWidget(button_chooseDir); | |
|
175 | ||
|
176 | addToolBar(Qt::LeftToolBarArea, myToolBar); | |
|
177 | ||
|
178 | radio_tabify->setChecked(true); | |
|
179 | ||
|
180 | connect(this->radio_v, SIGNAL(clicked(bool)), this, SLOT(actionRadioV(bool))); | |
|
181 | connect(this->radio_e1, SIGNAL(clicked(bool)), this, SLOT(actionRadioE1(bool))); | |
|
182 | connect(this->radio_e2, SIGNAL(clicked(bool)), this, SLOT(actionRadioE2(bool))); | |
|
183 | connect(this->radio_b1, SIGNAL(clicked(bool)), this, SLOT(actionRadioB1(bool))); | |
|
184 | connect(this->radio_b2, SIGNAL(clicked(bool)), this, SLOT(actionRadioB2(bool))); | |
|
185 | connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll())); | |
|
186 | connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks())); | |
|
187 | connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm())); | |
|
188 | connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir())); | |
|
189 | } | |
|
190 | ||
|
191 | void PageSpectra::actionRadioV(bool state) | |
|
192 | { | |
|
193 | if (state == true) | |
|
194 | { | |
|
195 | if (dockV == NULL) | |
|
196 | { | |
|
197 | dockV = new QDockWidget("V", this); | |
|
198 | dockV->setWidget(wfPlot_v); | |
|
199 | dockV->setTitleBarWidget(titleWidgetV); | |
|
200 | } | |
|
201 | } | |
|
202 | else | |
|
203 | { | |
|
204 | this->removeDockWidget(dockV); | |
|
205 | } | |
|
206 | organizeDocks(); | |
|
207 | } | |
|
208 | ||
|
209 | void PageSpectra::actionRadioE1(bool state) | |
|
210 | { | |
|
211 | if (state == true) | |
|
212 | { | |
|
213 | if (dockE1 == NULL) | |
|
214 | { | |
|
215 | dockE1 = new QDockWidget("E1", this); | |
|
216 | dockE1->setWidget(wfPlot_e1); | |
|
217 | dockE1->setTitleBarWidget(titleWidgetE1); | |
|
218 | } | |
|
219 | } | |
|
220 | else | |
|
221 | { | |
|
222 | this->removeDockWidget(dockE1); | |
|
223 | } | |
|
224 | organizeDocks(); | |
|
225 | } | |
|
226 | ||
|
227 | void PageSpectra::actionRadioE2(bool state) | |
|
228 | { | |
|
229 | if (state == true) | |
|
230 | { | |
|
231 | if (dockE2 == NULL) | |
|
232 | { | |
|
233 | dockE2 = new QDockWidget("E2", this); | |
|
234 | dockE2->setWidget(wfPlot_e2); | |
|
235 | dockE2->setTitleBarWidget(titleWidgetE2); | |
|
236 | } | |
|
237 | } | |
|
238 | else | |
|
239 | { | |
|
240 | this->removeDockWidget(dockE2); | |
|
241 | } | |
|
242 | organizeDocks(); | |
|
243 | } | |
|
244 | ||
|
245 | void PageSpectra::actionRadioB1(bool state) | |
|
246 | { | |
|
247 | if (state == true) | |
|
248 | { | |
|
249 | if (dockB1 == NULL) | |
|
250 | { | |
|
251 | dockB1 = new QDockWidget("B1", this); | |
|
252 | dockB1->setWidget(wfPlot_b1); | |
|
253 | dockB1->setTitleBarWidget(titleWidgetB1); | |
|
254 | } | |
|
255 | } | |
|
256 | else | |
|
257 | { | |
|
258 | this->removeDockWidget(dockB1); | |
|
259 | } | |
|
260 | organizeDocks(); | |
|
261 | } | |
|
262 | ||
|
263 | void PageSpectra::actionRadioB2(bool state) | |
|
264 | { | |
|
265 | if (state == true) | |
|
266 | { | |
|
267 | if (dockB2 == NULL) | |
|
268 | { | |
|
269 | dockB2 = new QDockWidget("B2", this); | |
|
270 | dockB2->setWidget(wfPlot_b2); | |
|
271 | dockB2->setTitleBarWidget(titleWidgetB2); | |
|
272 | } | |
|
273 | } | |
|
274 | else | |
|
275 | { | |
|
276 | this->removeDockWidget(dockB2); | |
|
277 | } | |
|
278 | organizeDocks(); | |
|
279 | } | |
|
280 | ||
|
281 | void PageSpectra::buildDockList() | |
|
282 | { | |
|
283 | dockList.clear(); | |
|
284 | ||
|
285 | if (radio_v->isChecked()) | |
|
286 | { | |
|
287 | dockList.append(dockV); | |
|
288 | removeDockWidget(dockV); | |
|
289 | } | |
|
290 | if (radio_e1->isChecked()) | |
|
291 | { | |
|
292 | dockList.append(dockE1); | |
|
293 | removeDockWidget(dockE1); | |
|
294 | } | |
|
295 | if (radio_e2->isChecked()) | |
|
296 | { | |
|
297 | dockList.append(dockE2); | |
|
298 | removeDockWidget(dockE2); | |
|
299 | } | |
|
300 | if (radio_b1->isChecked()) | |
|
301 | { | |
|
302 | dockList.append(dockB1); | |
|
303 | removeDockWidget(dockB1); | |
|
304 | } | |
|
305 | if (radio_b2->isChecked()) | |
|
306 | { | |
|
307 | dockList.append(dockB2); | |
|
308 | removeDockWidget(dockB2); | |
|
309 | } | |
|
310 | } | |
|
311 | ||
|
312 | void PageSpectra::organizeDocks() | |
|
313 | { | |
|
314 | if (radio_tabify->isChecked()) | |
|
315 | { | |
|
316 | tabify(); | |
|
317 | } | |
|
318 | else | |
|
319 | { | |
|
320 | unTabify(); | |
|
321 | } | |
|
322 | wfPlot_v->resize(wfPlot_v->minimumSizeHint()); | |
|
323 | wfPlot_e1->resize(wfPlot_e1->minimumSizeHint()); | |
|
324 | wfPlot_e2->resize(wfPlot_e2->minimumSizeHint()); | |
|
325 | wfPlot_b1->resize(wfPlot_b1->minimumSizeHint()); | |
|
326 | wfPlot_b2->resize(wfPlot_b2->minimumSizeHint()); | |
|
327 | this->resize(this->minimumSizeHint()); | |
|
328 | } | |
|
329 | ||
|
330 | void PageSpectra::unTabify() | |
|
331 | { | |
|
332 | buildDockList(); | |
|
333 | ||
|
334 | switch(dockList.size()) | |
|
335 | { | |
|
336 | case 0: | |
|
337 | break; | |
|
338 | case 1: | |
|
339 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
340 | dockList.at(0)->show(); | |
|
341 | break; | |
|
342 | case 2: | |
|
343 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
344 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); | |
|
345 | dockList.at(0)->show(); | |
|
346 | dockList.at(1)->show(); | |
|
347 | break; | |
|
348 | case 3: | |
|
349 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
350 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); | |
|
351 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2)); | |
|
352 | dockList.at(0)->show(); | |
|
353 | dockList.at(1)->show(); | |
|
354 | dockList.at(2)->show(); | |
|
355 | break; | |
|
356 | case 4: | |
|
357 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
358 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); | |
|
359 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2)); | |
|
360 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3)); | |
|
361 | dockList.at(0)->show(); | |
|
362 | dockList.at(1)->show(); | |
|
363 | dockList.at(2)->show(); | |
|
364 | dockList.at(3)->show(); | |
|
365 | break; | |
|
366 | case 5: | |
|
367 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
368 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); | |
|
369 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(2)); | |
|
370 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3)); | |
|
371 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4)); | |
|
372 | dockList.at(0)->show(); | |
|
373 | dockList.at(1)->show(); | |
|
374 | dockList.at(2)->show(); | |
|
375 | dockList.at(3)->show(); | |
|
376 | dockList.at(4)->show(); | |
|
377 | break; | |
|
378 | default: | |
|
379 | break; | |
|
380 | } | |
|
381 | } | |
|
382 | ||
|
383 | void PageSpectra::tabify() | |
|
384 | { | |
|
385 | buildDockList(); | |
|
386 | ||
|
387 | switch(dockList.size()) | |
|
388 | { | |
|
389 | case 0: | |
|
390 | break; | |
|
391 | case 1: | |
|
392 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
393 | dockList.at(0)->show(); | |
|
394 | break; | |
|
395 | case 2: | |
|
396 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); | |
|
397 | tabifyDockWidget(dockList.at(0), dockList.at(1)); | |
|
398 | dockList.at(0)->show(); | |
|
399 | dockList.at(1)->show(); | |
|
400 | break; | |
|
401 | case 3: | |
|
402 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); | |
|
403 | tabifyDockWidget(dockList.at(0), dockList.at(1)); | |
|
404 | tabifyDockWidget(dockList.at(1), dockList.at(2)); | |
|
405 | dockList.at(0)->show(); | |
|
406 | dockList.at(1)->show(); | |
|
407 | dockList.at(2)->show(); | |
|
408 | break; | |
|
409 | case 4: | |
|
410 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); | |
|
411 | tabifyDockWidget(dockList.at(0), dockList.at(1)); | |
|
412 | tabifyDockWidget(dockList.at(1), dockList.at(2)); | |
|
413 | tabifyDockWidget(dockList.at(2), dockList.at(3)); | |
|
414 | dockList.at(0)->show(); | |
|
415 | dockList.at(1)->show(); | |
|
416 | dockList.at(2)->show(); | |
|
417 | dockList.at(3)->show(); | |
|
418 | break; | |
|
419 | case 5: | |
|
420 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); | |
|
421 | tabifyDockWidget(dockList.at(0), dockList.at(1)); | |
|
422 | tabifyDockWidget(dockList.at(1), dockList.at(2)); | |
|
423 | tabifyDockWidget(dockList.at(2), dockList.at(3)); | |
|
424 | tabifyDockWidget(dockList.at(3), dockList.at(4)); | |
|
425 | dockList.at(0)->show(); | |
|
426 | dockList.at(1)->show(); | |
|
427 | dockList.at(2)->show(); | |
|
428 | dockList.at(3)->show(); | |
|
429 | dockList.at(4)->show(); | |
|
430 | break; | |
|
431 | case 6: | |
|
432 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); | |
|
433 | tabifyDockWidget(dockList.at(0), dockList.at(1)); | |
|
434 | tabifyDockWidget(dockList.at(1), dockList.at(2)); | |
|
435 | tabifyDockWidget(dockList.at(2), dockList.at(3)); | |
|
436 | tabifyDockWidget(dockList.at(3), dockList.at(4)); | |
|
437 | tabifyDockWidget(dockList.at(4), dockList.at(5)); | |
|
438 | dockList.at(0)->show(); | |
|
439 | dockList.at(1)->show(); | |
|
440 | dockList.at(2)->show(); | |
|
441 | dockList.at(3)->show(); | |
|
442 | dockList.at(4)->show(); | |
|
443 | dockList.at(5)->show(); | |
|
444 | break; | |
|
445 | default: | |
|
446 | break; | |
|
447 | } | |
|
448 | } | |
|
449 | ||
|
450 | void PageSpectra::selectAll() | |
|
451 | { | |
|
452 | radio_v->click(); | |
|
453 | radio_e1->click(); | |
|
454 | radio_e2->click(); | |
|
455 | radio_b1->click(); | |
|
456 | radio_b2->click(); | |
|
457 | } | |
|
458 | ||
|
459 | void PageSpectra::storeWfrm() | |
|
460 | { | |
|
461 | if (logFileEn == false) | |
|
462 | { | |
|
463 | buildFileNames(); | |
|
464 | button_storeWfrm->setText(tr("STOP")); | |
|
465 | logFileEn = true; | |
|
466 | } | |
|
467 | else | |
|
468 | { | |
|
469 | if(this->logFileV->isOpen()) this->logFileV->close(); | |
|
470 | if(this->logFileE1->isOpen()) this->logFileE1->close(); | |
|
471 | if(this->logFileE2->isOpen()) this->logFileE2->close(); | |
|
472 | // disable all storage | |
|
473 | storageEnabledV = false; | |
|
474 | storageEnabledE1 = false; | |
|
475 | storageEnabledE2 = false; | |
|
476 | storageEnabledB1 = false; | |
|
477 | storageEnabledB2 = false; | |
|
478 | button_storeWfrm->setText(tr("REC")); | |
|
479 | logFileEn = false; | |
|
480 | } | |
|
481 | } | |
|
482 | ||
|
483 | void PageSpectra::buildFileNames() | |
|
484 | { | |
|
485 | QString date; | |
|
486 | QString time; | |
|
487 | QString prefix; | |
|
488 | ||
|
489 | date = QDate::currentDate().toString(); | |
|
490 | time = QTime::currentTime().toString(); | |
|
491 | ||
|
492 | prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" + pageTitle ; | |
|
493 | ||
|
494 | if (radio_v->isChecked()) | |
|
495 | { | |
|
496 | if(this->logFileV->isOpen()) this->logFileV->close(); | |
|
497 | this->logFileV->setFileName( prefix + "_V.data"); | |
|
498 | if(this->logFileV->open(QIODevice::WriteOnly)) this->logFileStrmV = new QTextStream(this->logFileV); | |
|
499 | storageEnabledV = true; | |
|
500 | } | |
|
501 | if (radio_e1->isChecked()) | |
|
502 | { | |
|
503 | if(this->logFileE1->isOpen()) this->logFileE1->close(); | |
|
504 | this->logFileE1->setFileName( prefix + "_E1.data"); | |
|
505 | if(this->logFileE1->open(QIODevice::WriteOnly)) this->logFileStrmE1 = new QTextStream(this->logFileE1); | |
|
506 | storageEnabledE1 = true; | |
|
507 | } | |
|
508 | if (radio_e2->isChecked()) | |
|
509 | { | |
|
510 | if(this->logFileE2->isOpen()) this->logFileE2->close(); | |
|
511 | this->logFileE2->setFileName( prefix + "_E2.data"); | |
|
512 | if(this->logFileE2->open(QIODevice::WriteOnly)) this->logFileStrmE2 = new QTextStream(this->logFileE2); | |
|
513 | storageEnabledE2 = true; | |
|
514 | } | |
|
515 | if (radio_b1->isChecked()) | |
|
516 | { | |
|
517 | ||
|
518 | } | |
|
519 | if (radio_b2->isChecked()) | |
|
520 | { | |
|
521 | ||
|
522 | } | |
|
523 | } | |
|
524 | ||
|
525 | void PageSpectra::logFileEnDisable(bool state) | |
|
526 | { | |
|
527 | if(state==true) | |
|
528 | { | |
|
529 | this->logFileEn = true; | |
|
530 | } | |
|
531 | else if(state==false) | |
|
532 | { | |
|
533 | this->logFileEn = false; | |
|
534 | } | |
|
535 | } | |
|
536 | ||
|
537 | bool PageSpectra::islogfileenable() | |
|
538 | { | |
|
539 | return this->logFileEn; | |
|
540 | } | |
|
541 | ||
|
542 | void PageSpectra::appendToLogFile(const QString & text) | |
|
543 | { | |
|
544 | if(this->logFileEn && this->logFile->isOpen()) | |
|
545 | { | |
|
546 | *(this->logFileStrm) << text << endl; | |
|
547 | } | |
|
548 | } | |
|
549 | ||
|
550 | void PageSpectra::closeEvent(QCloseEvent *event) | |
|
551 | { | |
|
552 | if(this->logFile->isOpen()) | |
|
553 | { | |
|
554 | this->logFileStrm->flush(); | |
|
555 | this->logFile->waitForBytesWritten(3000); | |
|
556 | this->logFile->close(); | |
|
557 | } | |
|
558 | writeSettings(); | |
|
559 | event->accept(); | |
|
560 | } | |
|
561 | ||
|
562 | void PageSpectra::readSettings() | |
|
563 | { | |
|
564 | QSettings settings("lpp", "lfrsgse"); | |
|
565 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); | |
|
566 | } | |
|
567 | ||
|
568 | void PageSpectra::writeSettings() | |
|
569 | { | |
|
570 | QSettings settings("lpp", "lfrsgse"); | |
|
571 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); | |
|
572 | } | |
|
573 | ||
|
574 | void PageSpectra::chooseDir() | |
|
575 | { | |
|
576 | defaultStorageDirectory = QFileDialog::getExistingDirectory(this, | |
|
577 | "choose the directory", | |
|
578 | QDir::homePath(), | |
|
579 | QFileDialog::ShowDirsOnly); | |
|
580 | } |
@@ -0,0 +1,127 | |||
|
1 | #ifndef PAGESPECTRA_H | |
|
2 | #define PAGESPECTRA_H | |
|
3 | ||
|
4 | #include "wfdisplay_global.h" | |
|
5 | ||
|
6 | #include <QtGui/QMainWindow> | |
|
7 | #include <QRadioButton> | |
|
8 | #include <QPushButton> | |
|
9 | #include <QDockWidget> | |
|
10 | #include <QToolBar> | |
|
11 | #include <QLabel> | |
|
12 | #include <QFile> | |
|
13 | #include <QTextStream> | |
|
14 | #include <QFileDialog> | |
|
15 | #include <QSettings> | |
|
16 | ||
|
17 | #include <wfplot.h> | |
|
18 | #include <wfdisplay_params.h> | |
|
19 | ||
|
20 | class WFDISPLAYSHARED_EXPORT PageSpectra : public QMainWindow | |
|
21 | { | |
|
22 | Q_OBJECT | |
|
23 | public: | |
|
24 | explicit PageSpectra(QWidget *parent = 0); | |
|
25 | ||
|
26 | void createToolBar(); | |
|
27 | void buildDockList(); | |
|
28 | void unTabify(); | |
|
29 | void tabify(); | |
|
30 | // STORE | |
|
31 | void buildFileNames(); | |
|
32 | bool islogfileenable(); | |
|
33 | void appendToLogFile(const QString & text); | |
|
34 | void closeEvent(QCloseEvent *event); | |
|
35 | void readSettings(); | |
|
36 | void writeSettings(); | |
|
37 | ||
|
38 | bool logFileEn; | |
|
39 | bool storageEnabledV; | |
|
40 | bool storageEnabledE1; | |
|
41 | bool storageEnabledE2; | |
|
42 | bool storageEnabledB1; | |
|
43 | bool storageEnabledB2; | |
|
44 | ||
|
45 | QLabel *logFileName; | |
|
46 | QLabel *logFileNameV; | |
|
47 | QLabel *logFileNameE1; | |
|
48 | QLabel *logFileNameE2; | |
|
49 | QLabel *logFileNameB1; | |
|
50 | QLabel *logFileNameB2; | |
|
51 | ||
|
52 | QWidget *titleWidgetV; | |
|
53 | QWidget *titleWidgetE1; | |
|
54 | QWidget *titleWidgetE2; | |
|
55 | QWidget *titleWidgetB1; | |
|
56 | QWidget *titleWidgetB2; | |
|
57 | ||
|
58 | QList<QDockWidget*> dockList; | |
|
59 | ||
|
60 | QDockWidget *dockV; | |
|
61 | QDockWidget *dockE1; | |
|
62 | QDockWidget *dockE2; | |
|
63 | QDockWidget *dockB1; | |
|
64 | QDockWidget *dockB2; | |
|
65 | ||
|
66 | QRadioButton *radio_v; | |
|
67 | QRadioButton *radio_e1; | |
|
68 | QRadioButton *radio_e2; | |
|
69 | QRadioButton *radio_b1; | |
|
70 | QRadioButton *radio_b2; | |
|
71 | QRadioButton *radio_tabify; | |
|
72 | ||
|
73 | QPushButton *button_selectAll; | |
|
74 | QPushButton *button_storeWfrm; | |
|
75 | QPushButton *button_chooseDir; | |
|
76 | ||
|
77 | QToolBar *myToolBar; | |
|
78 | ||
|
79 | WFPlot *wfPlot_v; | |
|
80 | WFPlot *wfPlot_e1; | |
|
81 | WFPlot *wfPlot_e2; | |
|
82 | WFPlot *wfPlot_b1; | |
|
83 | WFPlot *wfPlot_b2; | |
|
84 | ||
|
85 | QFile *logFile; | |
|
86 | QFile *logFileV; | |
|
87 | QFile *logFileE1; | |
|
88 | QFile *logFileE2; | |
|
89 | QFile *logFileB1; | |
|
90 | QFile *logFileB2; | |
|
91 | ||
|
92 | QTextStream *logFileStrm; | |
|
93 | QTextStream *logFileStrmV; | |
|
94 | QTextStream *logFileStrmE1; | |
|
95 | QTextStream *logFileStrmE2; | |
|
96 | QTextStream *logFileStrmB1; | |
|
97 | QTextStream *logFileStrmB2; | |
|
98 | ||
|
99 | QString pageTitle; | |
|
100 | QString defaultStorageDirectory; | |
|
101 | ||
|
102 | unsigned int localIndex[5]; | |
|
103 | ||
|
104 | //QGridLayout *mainLayout; | |
|
105 | ||
|
106 | void displayOnPlot(short *data, unsigned char num); | |
|
107 | void displayOnPlotFloat(float *data, unsigned char num); | |
|
108 | ||
|
109 | signals: | |
|
110 | void setLogFileName(QString FileName); | |
|
111 | ||
|
112 | public slots: | |
|
113 | void actionRadioV(bool state); | |
|
114 | void actionRadioE1(bool state); | |
|
115 | void actionRadioE2(bool state); | |
|
116 | void actionRadioB1(bool state); | |
|
117 | void actionRadioB2(bool state); | |
|
118 | void organizeDocks(); | |
|
119 | void selectAll(); | |
|
120 | void storeWfrm(); | |
|
121 | void logFileEnDisable(bool state); | |
|
122 | void chooseDir(); | |
|
123 | ||
|
124 | ||
|
125 | }; | |
|
126 | ||
|
127 | #endif // PAGESPECTRA_H |
@@ -1,6 +1,6 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: PAULs_LPPMON_PLUGINS |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 16:20:32 2013 | |
|
4 | 4 | # Project: PAULs_LPPMON_PLUGINS.pro |
|
5 | 5 | # Template: subdirs |
|
6 | 6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
@@ -29,10 +29,10 SUBTARGETS = \ | |||
|
29 | 29 | |
|
30 | 30 | rmapplugin/$(MAKEFILE): |
|
31 | 31 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
32 |
cd rmapplugin/ && $(QMAKE) |
|
|
32 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
|
33 | 33 | sub-rmapplugin-qmake_all: FORCE |
|
34 | 34 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
35 |
cd rmapplugin/ && $(QMAKE) |
|
|
35 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
|
36 | 36 | sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE |
|
37 | 37 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
38 | 38 | sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE |
@@ -1,6 +1,6 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt |
|
|
3 | <!-- Written by QtCreator 2.7.0, 2013-07-25T10:36:01. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -11,14 +11,15 | |||
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
|
14 | 15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 |
<value type="Q |
|
|
16 | <value type="QByteArray" key="language">Cpp</value> | |
|
16 | 17 | <valuemap type="QVariantMap" key="value"> |
|
17 | 18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 19 | </valuemap> |
|
19 | 20 | </valuemap> |
|
20 | 21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 |
<value type="Q |
|
|
22 | <value type="QByteArray" key="language">QmlJS</value> | |
|
22 | 23 | <valuemap type="QVariantMap" key="value"> |
|
23 | 24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 25 | </valuemap> |
@@ -27,6 +28,7 | |||
|
27 | 28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
|
30 | 32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
@@ -49,60 +51,69 | |||
|
49 | 51 | <data> |
|
50 | 52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 53 | <valuemap type="QVariantMap"> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
|
54 |
<value type="Q |
|
|
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> | |
|
56 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
|
55 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
56 | 58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 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 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
62 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 |
<value type="Q |
|
|
66 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
65 | 67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
66 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
67 | 69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 71 | </valuemap> |
|
70 | 72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
71 | 74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 |
<value type="Q |
|
|
76 | <value type="QByteArray" 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 | 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">-r -w </value> | |
|
76 | 83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 84 | </valuemap> |
|
78 | 85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 |
<value type="Q |
|
|
88 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
82 | 89 | </valuemap> |
|
83 | 90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
85 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 |
<value type="Q |
|
|
95 | <value type="QByteArray" 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 | 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">-r -w clean</value> | |
|
90 | 102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 103 | </valuemap> |
|
92 | 104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 |
<value type="Q |
|
|
107 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
96 | 108 | </valuemap> |
|
97 | 109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
|
101 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 |
<value type="Q |
|
|
114 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
103 | 115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/ |
|
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
|
106 | 117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 118 | </valuemap> |
|
108 | 119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
@@ -111,60 +122,29 | |||
|
111 | 122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
112 | 123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
113 | 124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 |
<value type="Q |
|
|
125 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
|
115 | 126 | </valuemap> |
|
116 | 127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
117 | 128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
118 | 129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
119 |
<value type="Q |
|
|
130 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
|
120 | 131 | </valuemap> |
|
121 | 132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
122 | 133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
123 | 134 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
|
125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
|
126 | 135 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
127 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
|
129 | 137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
|
131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
|
132 | 138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
133 | 139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
|
135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
|
136 | 140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
137 | 141 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
|
139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
|
140 | 142 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
141 | 143 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
|
143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
|
144 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
145 | 145 | <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> | |
|
148 | 146 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
149 | 147 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
|
151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
|
152 | <value type="int">0</value> | |
|
153 | <value type="int">1</value> | |
|
154 | <value type="int">2</value> | |
|
155 | <value type="int">3</value> | |
|
156 | <value type="int">4</value> | |
|
157 | <value type="int">5</value> | |
|
158 | <value type="int">6</value> | |
|
159 | <value type="int">7</value> | |
|
160 | <value type="int">8</value> | |
|
161 | <value type="int">9</value> | |
|
162 | <value type="int">10</value> | |
|
163 | <value type="int">11</value> | |
|
164 | <value type="int">12</value> | |
|
165 | <value type="int">13</value> | |
|
166 | <value type="int">14</value> | |
|
167 | </valuelist> | |
|
168 | 148 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
169 | 149 | <value type="int">0</value> |
|
170 | 150 | <value type="int">1</value> |
@@ -184,15 +164,16 | |||
|
184 | 164 | </valuelist> |
|
185 | 165 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
186 | 166 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> |
|
187 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> | |
|
167 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> | |
|
188 | 168 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
189 | 169 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> |
|
190 | 170 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
191 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"> |
|
|
171 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> | |
|
192 | 172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
193 |
<value type="Q |
|
|
173 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
|
194 | 174 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
195 | 175 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
176 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
|
196 | 177 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
197 | 178 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
198 | 179 | </valuemap> |
@@ -205,10 +186,10 | |||
|
205 | 186 | </data> |
|
206 | 187 | <data> |
|
207 | 188 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
208 |
<value type="QString">{ |
|
|
189 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
|
209 | 190 | </data> |
|
210 | 191 | <data> |
|
211 | 192 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
212 |
<value type="int">1 |
|
|
193 | <value type="int">12</value> | |
|
213 | 194 | </data> |
|
214 | 195 | </qtcreator> |
@@ -1,9 +1,9 | |||
|
1 | 1 | ############################################################################# |
|
2 | # Makefile for building: lfrsgse | |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
2 | # Makefile for building: lfrsgse-dev | |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 15:57:53 2013 | |
|
4 | 4 | # Project: gselesia.pro |
|
5 | 5 | # Template: app |
|
6 | # Command: /usr/bin/qmake-qt4 -o Makefile gselesia.pro | |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro | |
|
7 | 7 | ############################################################################# |
|
8 | 8 | |
|
9 | 9 | ####### Compiler, tools and options |
@@ -11,8 +11,8 | |||
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 13 | DEFINES = -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 -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) | |
|
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 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES) | |
|
16 | 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../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I. |
|
17 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = -Wl,-O1 -Wl,-z,relro |
@@ -52,9 +52,11 SOURCES = main.cpp \ | |||
|
52 | 52 | ../rmapplugin/tmstatistics.cpp \ |
|
53 | 53 | ../rmapplugin/tmpackettoread.cpp \ |
|
54 | 54 | ../rmapplugin/wfpacket.cpp \ |
|
55 | ../rmapplugin/spectrapacket.cpp \ | |
|
55 | 56 | ../common_PLE/hkdisplay.cpp \ |
|
56 | 57 | lfrxmlparser.cpp \ |
|
57 |
lfrspectrogram.cpp |
|
|
58 | lfrspectrogram.cpp \ | |
|
59 | parameterdump.cpp moc_mainwindow.cpp \ | |
|
58 | 60 | moc_mainwindowui.cpp \ |
|
59 | 61 | moc_qipdialogbox.cpp \ |
|
60 | 62 | moc_lfrxmlhandler.cpp \ |
@@ -62,9 +64,11 SOURCES = main.cpp \ | |||
|
62 | 64 | moc_tmstatistics.cpp \ |
|
63 | 65 | moc_tmpackettoread.cpp \ |
|
64 | 66 | moc_wfpacket.cpp \ |
|
67 | moc_spectrapacket.cpp \ | |
|
65 | 68 | moc_hkdisplay.cpp \ |
|
66 | 69 | moc_lfrxmlparser.cpp \ |
|
67 | moc_lfrspectrogram.cpp | |
|
70 | moc_lfrspectrogram.cpp \ | |
|
71 | moc_parameterdump.cpp | |
|
68 | 72 | OBJECTS = main.o \ |
|
69 | 73 | mainwindow.o \ |
|
70 | 74 | mainwindowui.o \ |
@@ -74,9 +78,11 OBJECTS = main.o \ | |||
|
74 | 78 | tmstatistics.o \ |
|
75 | 79 | tmpackettoread.o \ |
|
76 | 80 | wfpacket.o \ |
|
81 | spectrapacket.o \ | |
|
77 | 82 | hkdisplay.o \ |
|
78 | 83 | lfrxmlparser.o \ |
|
79 | 84 | lfrspectrogram.o \ |
|
85 | parameterdump.o \ | |
|
80 | 86 | moc_mainwindow.o \ |
|
81 | 87 | moc_mainwindowui.o \ |
|
82 | 88 | moc_qipdialogbox.o \ |
@@ -85,9 +91,11 OBJECTS = main.o \ | |||
|
85 | 91 | moc_tmstatistics.o \ |
|
86 | 92 | moc_tmpackettoread.o \ |
|
87 | 93 | moc_wfpacket.o \ |
|
94 | moc_spectrapacket.o \ | |
|
88 | 95 | moc_hkdisplay.o \ |
|
89 | 96 | moc_lfrxmlparser.o \ |
|
90 | moc_lfrspectrogram.o | |
|
97 | moc_lfrspectrogram.o \ | |
|
98 | moc_parameterdump.o | |
|
91 | 99 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
92 | 100 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
93 | 101 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
@@ -113,9 +121,9 DIST = /usr/lib64/qt4/mkspecs/c | |||
|
113 | 121 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
114 | 122 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
115 | 123 | gselesia.pro |
|
116 | QMAKE_TARGET = lfrsgse | |
|
124 | QMAKE_TARGET = lfrsgse-dev | |
|
117 | 125 | DESTDIR = |
|
118 | TARGET = lfrsgse | |
|
126 | TARGET = lfrsgse-dev | |
|
119 | 127 | |
|
120 | 128 | first: all |
|
121 | 129 | ####### Implicit rules |
@@ -172,7 +180,7 Makefile: gselesia.pro /usr/lib64/qt4/m | |||
|
172 | 180 | /usr/lib64/libQtCore.prl \ |
|
173 | 181 | /usr/lib64/libQtGui.prl \ |
|
174 | 182 | /usr/lib64/libQtNetwork.prl |
|
175 | $(QMAKE) -o Makefile gselesia.pro | |
|
183 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro | |
|
176 | 184 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
177 | 185 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
178 | 186 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
@@ -202,11 +210,11 Makefile: gselesia.pro /usr/lib64/qt4/m | |||
|
202 | 210 | /usr/lib64/libQtGui.prl: |
|
203 | 211 | /usr/lib64/libQtNetwork.prl: |
|
204 | 212 | qmake: FORCE |
|
205 | @$(QMAKE) -o Makefile gselesia.pro | |
|
213 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro | |
|
206 | 214 | |
|
207 | 215 | dist: |
|
208 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0 | |
|
209 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../common_PLE/qipdialogbox.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp ../common_PLE/qipdialogbox.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp lfrspectrogram.cpp .tmp/lfrsgse1.0.0/ && (cd `dirname .tmp/lfrsgse1.0.0` && $(TAR) lfrsgse1.0.0.tar lfrsgse1.0.0 && $(COMPRESS) lfrsgse1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse1.0.0`/lfrsgse1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse1.0.0 | |
|
216 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse-dev1.0.0 || $(MKDIR) .tmp/lfrsgse-dev1.0.0 | |
|
217 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse-dev1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../common_PLE/qipdialogbox.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h parameterdump.h .tmp/lfrsgse-dev1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp ../common_PLE/qipdialogbox.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp lfrspectrogram.cpp parameterdump.cpp .tmp/lfrsgse-dev1.0.0/ && (cd `dirname .tmp/lfrsgse-dev1.0.0` && $(TAR) lfrsgse-dev1.0.0.tar lfrsgse-dev1.0.0 && $(COMPRESS) lfrsgse-dev1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse-dev1.0.0`/lfrsgse-dev1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse-dev1.0.0 | |
|
210 | 218 | |
|
211 | 219 | |
|
212 | 220 | clean:compiler_clean |
@@ -227,18 +235,20 mocclean: compiler_moc_header_clean comp | |||
|
227 | 235 | |
|
228 | 236 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
229 | 237 | |
|
230 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp | |
|
238 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp moc_parameterdump.cpp | |
|
231 | 239 | compiler_moc_header_clean: |
|
232 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp | |
|
240 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp moc_parameterdump.cpp | |
|
233 | 241 | moc_mainwindow.cpp: lfrxmlhandler.h \ |
|
234 | 242 | lfrxmlwriter.h \ |
|
235 | 243 | mainwindowui.h \ |
|
236 | 244 | lfrspectrogram.h \ |
|
245 | parameterdump.h \ | |
|
237 | 246 | lfrxmlparser.h \ |
|
238 | 247 | mainwindow.h |
|
239 | 248 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp |
|
240 | 249 | |
|
241 | 250 | moc_mainwindowui.cpp: lfrspectrogram.h \ |
|
251 | parameterdump.h \ | |
|
242 | 252 | mainwindowui.h |
|
243 | 253 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp |
|
244 | 254 | |
@@ -260,6 +270,9 moc_tmpackettoread.cpp: ../rmapplugin/tm | |||
|
260 | 270 | moc_wfpacket.cpp: ../rmapplugin/wfpacket.h |
|
261 | 271 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp |
|
262 | 272 | |
|
273 | moc_spectrapacket.cpp: ../rmapplugin/spectrapacket.h | |
|
274 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/spectrapacket.h -o moc_spectrapacket.cpp | |
|
275 | ||
|
263 | 276 | moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h |
|
264 | 277 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp |
|
265 | 278 | |
@@ -269,6 +282,9 moc_lfrxmlparser.cpp: lfrxmlparser.h | |||
|
269 | 282 | moc_lfrspectrogram.cpp: lfrspectrogram.h |
|
270 | 283 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp |
|
271 | 284 | |
|
285 | moc_parameterdump.cpp: parameterdump.h | |
|
286 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) parameterdump.h -o moc_parameterdump.cpp | |
|
287 | ||
|
272 | 288 | compiler_rcc_make_all: |
|
273 | 289 | compiler_rcc_clean: |
|
274 | 290 | compiler_image_collection_make_all: qmake_image_collection.cpp |
@@ -293,6 +309,7 main.o: main.cpp mainwindow.h \ | |||
|
293 | 309 | lfrxmlwriter.h \ |
|
294 | 310 | mainwindowui.h \ |
|
295 | 311 | lfrspectrogram.h \ |
|
312 | parameterdump.h \ | |
|
296 | 313 | lfrxmlparser.h |
|
297 | 314 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp |
|
298 | 315 | |
@@ -301,11 +318,13 mainwindow.o: mainwindow.cpp mainwindow. | |||
|
301 | 318 | lfrxmlwriter.h \ |
|
302 | 319 | mainwindowui.h \ |
|
303 | 320 | lfrspectrogram.h \ |
|
321 | parameterdump.h \ | |
|
304 | 322 | lfrxmlparser.h |
|
305 | 323 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp |
|
306 | 324 | |
|
307 | 325 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ |
|
308 | lfrspectrogram.h | |
|
326 | lfrspectrogram.h \ | |
|
327 | parameterdump.h | |
|
309 | 328 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp |
|
310 | 329 | |
|
311 | 330 | qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
@@ -326,6 +345,9 tmpackettoread.o: ../rmapplugin/tmpacket | |||
|
326 | 345 | wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h |
|
327 | 346 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp |
|
328 | 347 | |
|
348 | spectrapacket.o: ../rmapplugin/spectrapacket.cpp ../rmapplugin/spectrapacket.h | |
|
349 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o spectrapacket.o ../rmapplugin/spectrapacket.cpp | |
|
350 | ||
|
329 | 351 | hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h |
|
330 | 352 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp |
|
331 | 353 | |
@@ -335,6 +357,9 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlp | |||
|
335 | 357 | lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h |
|
336 | 358 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp |
|
337 | 359 | |
|
360 | parameterdump.o: parameterdump.cpp parameterdump.h | |
|
361 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o parameterdump.o parameterdump.cpp | |
|
362 | ||
|
338 | 363 | moc_mainwindow.o: moc_mainwindow.cpp |
|
339 | 364 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp |
|
340 | 365 | |
@@ -359,6 +384,9 moc_tmpackettoread.o: moc_tmpackettoread | |||
|
359 | 384 | moc_wfpacket.o: moc_wfpacket.cpp |
|
360 | 385 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp |
|
361 | 386 | |
|
387 | moc_spectrapacket.o: moc_spectrapacket.cpp | |
|
388 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_spectrapacket.o moc_spectrapacket.cpp | |
|
389 | ||
|
362 | 390 | moc_hkdisplay.o: moc_hkdisplay.cpp |
|
363 | 391 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp |
|
364 | 392 | |
@@ -368,6 +396,9 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp | |||
|
368 | 396 | moc_lfrspectrogram.o: moc_lfrspectrogram.cpp |
|
369 | 397 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp |
|
370 | 398 | |
|
399 | moc_parameterdump.o: moc_parameterdump.cpp | |
|
400 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_parameterdump.o moc_parameterdump.cpp | |
|
401 | ||
|
371 | 402 | ####### Install |
|
372 | 403 | |
|
373 | 404 | install: FORCE |
@@ -8,7 +8,7 QT += core gui | |||
|
8 | 8 | QT += network |
|
9 | 9 | QT += xml |
|
10 | 10 | |
|
11 | TARGET = lfrsgse | |
|
11 | TARGET = lfrsgse-dev | |
|
12 | 12 | TEMPLATE = app |
|
13 | 13 | |
|
14 | 14 | INCLUDEPATH += \ |
@@ -30,9 +30,11 SOURCES += main.cpp\ | |||
|
30 | 30 | ../rmapplugin/tmstatistics.cpp \ |
|
31 | 31 | ../rmapplugin/tmpackettoread.cpp \ |
|
32 | 32 | ../rmapplugin/wfpacket.cpp \ |
|
33 | ../rmapplugin/spectrapacket.cpp \ | |
|
33 | 34 | ../common_PLE/hkdisplay.cpp \ |
|
34 | 35 | lfrxmlparser.cpp \ |
|
35 | lfrspectrogram.cpp | |
|
36 | lfrspectrogram.cpp \ | |
|
37 | parameterdump.cpp | |
|
36 | 38 | |
|
37 | 39 | HEADERS += mainwindow.h \ |
|
38 | 40 | mainwindowui.h \ |
@@ -42,11 +44,13 HEADERS += mainwindow.h \ | |||
|
42 | 44 | ../rmapplugin/tmstatistics.h \ |
|
43 | 45 | ../rmapplugin/tmpackettoread.h \ |
|
44 | 46 | ../rmapplugin/wfpacket.h \ |
|
47 | ../rmapplugin/spectrapacket.h \ | |
|
45 | 48 | ../common_PLE/hkdisplay.h \ |
|
46 | 49 | ../rmapplugin/params.h \ |
|
47 | 50 | ../../DEV_PLE/header/ccsds_types.h \ |
|
48 | 51 | lfrxmlparser.h \ |
|
49 | lfrspectrogram.h | |
|
52 | lfrspectrogram.h \ | |
|
53 | parameterdump.h | |
|
50 | 54 | |
|
51 | 55 | |
|
52 | 56 |
@@ -1,6 +1,6 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt |
|
|
3 | <!-- Written by QtCreator 2.7.0, 2013-07-25T10:23:24. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -11,14 +11,15 | |||
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
|
14 | 15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 |
<value type="Q |
|
|
16 | <value type="QByteArray" key="language">Cpp</value> | |
|
16 | 17 | <valuemap type="QVariantMap" key="value"> |
|
17 | 18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 19 | </valuemap> |
|
19 | 20 | </valuemap> |
|
20 | 21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 |
<value type="Q |
|
|
22 | <value type="QByteArray" key="language">QmlJS</value> | |
|
22 | 23 | <valuemap type="QVariantMap" key="value"> |
|
23 | 24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 25 | </valuemap> |
@@ -27,6 +28,7 | |||
|
27 | 28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
|
30 | 32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
@@ -49,60 +51,69 | |||
|
49 | 51 | <data> |
|
50 | 52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 53 | <valuemap type="QVariantMap"> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
|
54 |
<value type="Q |
|
|
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> | |
|
56 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
|
55 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
56 | 58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 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 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
62 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 |
<value type="Q |
|
|
66 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
65 | 67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
66 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
67 | 69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 71 | </valuemap> |
|
70 | 72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
71 | 74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 |
<value type="Q |
|
|
76 | <value type="QByteArray" 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 | 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">-r -w </value> | |
|
76 | 83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 84 | </valuemap> |
|
78 | 85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 |
<value type="Q |
|
|
88 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
82 | 89 | </valuemap> |
|
83 | 90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
85 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 |
<value type="Q |
|
|
95 | <value type="QByteArray" 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 | 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">-r -w clean</value> | |
|
90 | 102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 103 | </valuemap> |
|
92 | 104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 |
<value type="Q |
|
|
107 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
96 | 108 | </valuemap> |
|
97 | 109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
|
101 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 |
<value type="Q |
|
|
114 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
103 | 115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/ |
|
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value> | |
|
106 | 117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 118 | </valuemap> |
|
108 | 119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
@@ -111,60 +122,29 | |||
|
111 | 122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
112 | 123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
113 | 124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 |
<value type="Q |
|
|
125 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
|
115 | 126 | </valuemap> |
|
116 | 127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
117 | 128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
118 | 129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
119 |
<value type="Q |
|
|
130 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
|
120 | 131 | </valuemap> |
|
121 | 132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
122 | 133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
123 | 134 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
|
125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
|
126 | 135 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
127 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
|
129 | 137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
|
131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
|
132 | 138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
133 | 139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
|
135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
|
136 | 140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
137 | 141 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
|
139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
|
140 | 142 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
141 | 143 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
|
143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
|
144 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
145 | 145 | <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> | |
|
148 | 146 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
149 | 147 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
|
151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
|
152 | <value type="int">0</value> | |
|
153 | <value type="int">1</value> | |
|
154 | <value type="int">2</value> | |
|
155 | <value type="int">3</value> | |
|
156 | <value type="int">4</value> | |
|
157 | <value type="int">5</value> | |
|
158 | <value type="int">6</value> | |
|
159 | <value type="int">7</value> | |
|
160 | <value type="int">8</value> | |
|
161 | <value type="int">9</value> | |
|
162 | <value type="int">10</value> | |
|
163 | <value type="int">11</value> | |
|
164 | <value type="int">12</value> | |
|
165 | <value type="int">13</value> | |
|
166 | <value type="int">14</value> | |
|
167 | </valuelist> | |
|
168 | 148 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
169 | 149 | <value type="int">0</value> |
|
170 | 150 | <value type="int">1</value> |
@@ -184,7 +164,7 | |||
|
184 | 164 | </valuelist> |
|
185 | 165 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> |
|
186 | 166 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
187 |
<value type="Q |
|
|
167 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value> | |
|
188 | 168 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
189 | 169 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
190 | 170 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> |
@@ -194,6 +174,7 | |||
|
194 | 174 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
195 | 175 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
196 | 176 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
177 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
|
197 | 178 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
198 | 179 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
199 | 180 | </valuemap> |
@@ -206,10 +187,10 | |||
|
206 | 187 | </data> |
|
207 | 188 | <data> |
|
208 | 189 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
209 |
<value type="QString">{ |
|
|
190 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
|
210 | 191 | </data> |
|
211 | 192 | <data> |
|
212 | 193 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
213 |
<value type="int">1 |
|
|
194 | <value type="int">12</value> | |
|
214 | 195 | </data> |
|
215 | 196 | </qtcreator> |
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -9,6 +9,8 MainWindow::MainWindow(QWidget *parent) | |||
|
9 | 9 | totalOfBytes = 0; |
|
10 | 10 | totalOfPackets = 0; |
|
11 | 11 | |
|
12 | spectraPacketNormalSpectrumF0 = new SpectraPacket(this, 128); | |
|
13 | ||
|
12 | 14 | //**** |
|
13 | 15 | // XML |
|
14 | 16 | // xml handlers |
@@ -254,149 +256,68 void MainWindow::preProcessPacket(TMPack | |||
|
254 | 256 | |
|
255 | 257 | //********************************* |
|
256 | 258 | // get the parameters of the packet |
|
257 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
|
258 | cat = packet->Value[5] & 0x0f; | |
|
259 | typ = packet->Value[11]; // TYPE | |
|
260 | sub = packet->Value[12]; // SUBTYPE | |
|
261 | sid = 0; | |
|
262 | length = packet->Value[8] * 256 + packet->Value[9]; | |
|
259 | pid = this->UI->tmStatistics->getPID( packet ); | |
|
260 | cat = this->UI->tmStatistics->getCAT( packet ); | |
|
261 | typ = this->UI->tmStatistics->getTYPE( packet ); | |
|
262 | sub = this->UI->tmStatistics->getSUBTYPE( packet ); | |
|
263 | length = this->UI->tmStatistics->getLENGTH( packet ); | |
|
264 | coarse_t = this->UI->tmStatistics->getCoarseTime( packet ); | |
|
265 | fine_t = this->UI->tmStatistics->getFineTime( packet ); | |
|
266 | sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub ); | |
|
267 | ||
|
268 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
|
269 | ||
|
263 | 270 | // compare length in the packet with the size of the packet |
|
264 | 271 | if ( (length + 1 + 10) != (packet->size)) |
|
265 | 272 | { |
|
266 | 273 | displayOnConsole("reception of " + QString::number(packet->size) |
|
267 | 274 | + " bytes instead of " + QString::number(length + 1 + 10)); |
|
268 | 275 | } |
|
269 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
|
270 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
|
271 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
|
272 | ||
|
273 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) | |
|
274 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
|
275 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) | |
|
276 | sid = 1; | |
|
277 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
278 | sid = packet->Value[20]; | |
|
279 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
280 | sid = packet->Value[20]; | |
|
281 | ||
|
282 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
|
283 | 276 | |
|
284 | 277 | //*************************************************** |
|
285 | 278 | // if the packet is an HK packet, display its content |
|
286 | if ( (pid == 76) & (cat == 4) & (typ == TYPE_HK) & (sub == SUBTYPE_HK) ) | |
|
279 | if ( (pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) ) | |
|
287 | 280 | { |
|
288 | 281 | this->UI->hkDisplay->displayPacket(packet); |
|
289 | 282 | } |
|
290 | 283 | |
|
284 | //************************************************************** | |
|
285 | // if the packet is a parameter dump packet, display its content | |
|
286 | if ( (pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) ) | |
|
287 | { | |
|
288 | //this->UI->parameterDump->updateParameterDump(packet); | |
|
289 | } | |
|
290 | ||
|
291 | 291 | //**************************************** |
|
292 | 292 | // if the packet is a waveform, display it |
|
293 | if ( (typ == 21) & (sub == 3) ) | |
|
293 | if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) ) | |
|
294 | 294 | { |
|
295 | 295 | sid = packet->Value[20]; // SID |
|
296 | 296 | switch (sid){ |
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 | } | |
|
319 | } | |
|
320 | } | |
|
321 | ||
|
322 | void MainWindow::preProcessPacketLESIA(TMPacketToRead *packet) | |
|
323 | { | |
|
324 | unsigned char pid = 0; | |
|
325 | unsigned char cat = 0; | |
|
326 | unsigned char typ = 0; | |
|
327 | unsigned char sub = 0; | |
|
328 | unsigned int sid = 0; | |
|
329 | unsigned int length = 0; | |
|
330 | unsigned int coarse_t = 0; | |
|
331 | unsigned int fine_t = 0; | |
|
332 | ||
|
333 | unsigned int offset; | |
|
334 | ||
|
335 | offset = 4; | |
|
336 | ||
|
337 | //********************************* | |
|
338 | // get the parameters of the packet | |
|
339 | pid = ((packet->Value[4-offset] & 0x07) << 4) + ((packet->Value[5-offset] & 0xf0) >> 4); | |
|
340 | cat = packet->Value[5-offset] & 0x0f; | |
|
341 | typ = packet->Value[11-offset]; // TYPE | |
|
342 | sub = packet->Value[12-offset]; // SUBTYPE | |
|
343 | sid = 0; | |
|
344 | length = packet->Value[8-offset] * 256 + packet->Value[9-offset]; | |
|
345 | // compare length in the packet with the size of the packet | |
|
346 | if ( (length + 1 + 6) != (packet->size)) | |
|
347 | { | |
|
348 | displayOnConsole("reception of " + QString::number(packet->size) | |
|
349 | + " bytes instead of " + QString::number(length + 1 + 6)); | |
|
350 | } | |
|
351 | coarse_t = packet->Value[14-offset] * pow(2, 24) + packet->Value[15-offset] * pow(2, 16) | |
|
352 | + packet->Value[16-offset] * pow(2, 8) + packet->Value[17-offset]; | |
|
353 | fine_t = packet->Value[18-offset] * pow(2, 8) + packet->Value[19-offset]; | |
|
354 | ||
|
355 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) | |
|
356 | sid = packet->Value[20-offset] * 256 + packet->Value[21-offset]; | |
|
357 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) | |
|
358 | sid = 1; | |
|
359 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
360 | sid = packet->Value[20-offset]; | |
|
361 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
362 | sid = packet->Value[20-offset]; | |
|
363 | ||
|
364 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
|
365 | ||
|
366 | //*************************************************** | |
|
367 | // if the packet is an HK packet, display its content | |
|
368 | if ( (pid == 76) & (4) & (typ == TYPE_HK) & (sub == SUBTYPE_HK) ) | |
|
369 | { | |
|
370 | this->UI->hkDisplay->displayPacketLESIA(packet); | |
|
371 | } | |
|
372 | ||
|
373 | //**************************************** | |
|
374 | // if the packet is a waveform, display it | |
|
375 | if ( (typ == 21) & (sub == 3) ) | |
|
376 | { | |
|
377 | sid = packet->Value[20-offset]; // SID | |
|
378 | switch (sid){ | |
|
379 | case SID_NORMAL_SWF_F0: | |
|
380 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); | |
|
381 | break; | |
|
382 | case SID_NORMAL_SWF_F1: | |
|
383 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); | |
|
384 | break; | |
|
385 | case SID_NORMAL_SWF_F2: | |
|
386 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); | |
|
387 | break; | |
|
388 | case SID_NORMAL_CWF_F3: | |
|
389 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); | |
|
390 | break; | |
|
391 | case SID_BURST_CWF_F2: | |
|
392 | buildWFAndDisplayBurst(packet, &wfPacketBurst); | |
|
393 | break; | |
|
394 | case SID_SBM1_CWF_F1: | |
|
395 | buildWFAndDisplaySBM1(packet, &wfPacketSBM1); | |
|
396 | break; | |
|
397 | case SID_SBM2_CWF_F2: | |
|
398 | buildWFAndDisplaySBM2(packet, &wfPacketSBM2); | |
|
399 | break; | |
|
297 | case SID_NORMAL_SWF_F0: | |
|
298 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); | |
|
299 | break; | |
|
300 | case SID_NORMAL_SWF_F1: | |
|
301 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); | |
|
302 | break; | |
|
303 | case SID_NORMAL_SWF_F2: | |
|
304 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); | |
|
305 | break; | |
|
306 | case SID_NORMAL_CWF_F3: | |
|
307 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); | |
|
308 | break; | |
|
309 | case SID_BURST_CWF_F2: | |
|
310 | buildWFAndDisplayBurst(packet, &wfPacketBurst); | |
|
311 | break; | |
|
312 | case SID_SBM1_CWF_F1: | |
|
313 | buildWFAndDisplaySBM1(packet, &wfPacketSBM1); | |
|
314 | break; | |
|
315 | case SID_SBM2_CWF_F2: | |
|
316 | buildWFAndDisplaySBM2(packet, &wfPacketSBM2); | |
|
317 | break; | |
|
318 | case SID_NORMAL_ASM_F0: | |
|
319 | buildSpectrumAndDisplayNORM_F0(packet, spectraPacketNormalSpectrumF0); | |
|
320 | break; | |
|
400 | 321 | } |
|
401 | 322 | } |
|
402 | 323 | } |
@@ -476,12 +397,12 void MainWindow::buildWFAndDisplaySBM1(T | |||
|
476 | 397 | data = &packet->Value[30]; // start of the first data block; |
|
477 | 398 | j = (pkt_nr-1) * 340; |
|
478 | 399 | for ( i=0; i<blk_nr; i++ ){ |
|
479 |
wfPacket->wf_ |
|
|
480 |
wfPacket->wf_ |
|
|
481 |
wfPacket->wf_ |
|
|
482 |
wfPacket->wf_ |
|
|
483 |
wfPacket->wf_b |
|
|
484 |
wfPacket->wf_b |
|
|
400 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |
|
401 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |
|
402 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |
|
403 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |
|
404 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |
|
405 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |
|
485 | 406 | } |
|
486 | 407 | pkt_nr = pkt_nr + 1; |
|
487 | 408 | if (blk_nr == 8) |
@@ -528,6 +449,47 void MainWindow::buildWFAndDisplaySBM2(T | |||
|
528 | 449 | } |
|
529 | 450 | } |
|
530 | 451 | |
|
452 | void MainWindow::buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket) | |
|
453 | { | |
|
454 | unsigned int i = 0; | |
|
455 | unsigned int j = 0; | |
|
456 | unsigned char *data; | |
|
457 | char *aux; | |
|
458 | unsigned char nrASM; | |
|
459 | unsigned int blkNR; | |
|
460 | ||
|
461 | nrASM = packet->Value[23]; | |
|
462 | blkNR = packet->Value[30] * 256 + packet->Value[31]; | |
|
463 | data = &packet->Value[32]; // start of the first data block; | |
|
464 | ||
|
465 | j = (nrASM-1) * blkNR; | |
|
466 | for ( i=0; i<blkNR; i++ ){ | |
|
467 | aux = (char*) &spectraPacket->s11[j + i]; | |
|
468 | aux[3] = data[ (i * 50 + 2*0) ]; | |
|
469 | aux[2] = data[ (i * 50 + 2*0) + 1]; | |
|
470 | aux = (char*) &spectraPacket->s22[j + i]; | |
|
471 | aux[3] = data[ (i * 50 + 2*9) ]; | |
|
472 | aux[2] = data[ (i * 50 + 2*9) + 1]; | |
|
473 | aux = (char*) &spectraPacket->s33[j + i]; | |
|
474 | aux[3] = data[ (i * 50 + 2*16) ]; | |
|
475 | aux[2] = data[ (i * 50 + 2*16) + 1]; | |
|
476 | aux = (char*) &spectraPacket->s44[j + i]; | |
|
477 | aux[3] = data[ (i * 50 + 2*21) ]; | |
|
478 | aux[2] = data[ (i * 50 + 2*21) + 1]; | |
|
479 | aux = (char*) &spectraPacket->s55[j + i]; | |
|
480 | aux[3] = data[ (i * 50 + 2*24) ]; | |
|
481 | aux[2] = data[ (i * 50 + 2*24) + 1]; | |
|
482 | } | |
|
483 | if (nrASM == 2) | |
|
484 | { | |
|
485 | this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s11, 0); | |
|
486 | this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s22, 1); | |
|
487 | this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s33, 2); | |
|
488 | this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s44, 3); | |
|
489 | this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s55, 4); | |
|
490 | } | |
|
491 | } | |
|
492 | ||
|
531 | 493 | void MainWindow::processIncomingPacket(TMPacketToRead *packet) |
|
532 | 494 | { |
|
533 | 495 | totalOfBytes = totalOfBytes + packet->size; |
@@ -13,6 +13,7 | |||
|
13 | 13 | #include "tmpackettoread.h" |
|
14 | 14 | #include "wfpacket.h" |
|
15 | 15 | #include "lfrxmlparser.h" |
|
16 | #include <spectrapacket.h> | |
|
16 | 17 | |
|
17 | 18 | class MainWindow : public QMainWindow |
|
18 | 19 | { |
@@ -24,12 +25,22 public: | |||
|
24 | 25 | |
|
25 | 26 | void displayNetworkInterfaces(); |
|
26 | 27 | void initSocketStatesList(); |
|
28 | // | |
|
27 | 29 | void preProcessPacket(TMPacketToRead *packet); |
|
28 |
|
|
|
30 | unsigned char getPID(TMPacketToRead *packet); | |
|
31 | unsigned char getCAT(TMPacketToRead *packet); | |
|
32 | unsigned char getTYPE(TMPacketToRead *packet); | |
|
33 | unsigned char getSUBTYPE(TMPacketToRead *packet); | |
|
34 | unsigned int getLENGTH(TMPacketToRead *packet); | |
|
35 | unsigned int getCoarseTime(TMPacketToRead *packet); | |
|
36 | unsigned int getFineTime(TMPacketToRead *packet); | |
|
37 | unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub); | |
|
38 | // | |
|
29 | 39 | void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page); |
|
30 | 40 | void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket); |
|
31 | 41 | void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket); |
|
32 | 42 | void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket); |
|
43 | void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket); | |
|
33 | 44 | |
|
34 | 45 | protected: |
|
35 | 46 | void closeEvent(QCloseEvent *); |
@@ -72,6 +83,7 private: | |||
|
72 | 83 | WFPacket wfPacketBurst; |
|
73 | 84 | WFPacket wfPacketSBM1; |
|
74 | 85 | WFPacket wfPacketSBM2; |
|
86 | SpectraPacket *spectraPacketNormalSpectrumF0; | |
|
75 | 87 | |
|
76 | 88 | bool parsingContinue; |
|
77 | 89 |
@@ -30,6 +30,11 MainWindowUI::MainWindowUI(QWidget *pare | |||
|
30 | 30 | wfPageBurst = new WFPage(); |
|
31 | 31 | wfPageSBM1 = new WFPage(); |
|
32 | 32 | wfPageSBM2 = new WFPage(); |
|
33 | pageSpectraNORM = new PageSpectra(); | |
|
34 | wfPageBurst->pageTitle = "BURST_CWF_F2"; | |
|
35 | wfPageSBM1->pageTitle = "SBM1_CWF_F1"; | |
|
36 | wfPageSBM2->pageTitle = "SBM2_CWF_F2"; | |
|
37 | pageSpectraNORM->pageTitle = "ASM f0"; | |
|
33 | 38 | hkDisplay = new HKDisplay(); |
|
34 | 39 | lfrSpectrogam = new LFRSpectrogram(); |
|
35 | 40 | |
@@ -62,6 +67,8 MainWindowUI::MainWindowUI(QWidget *pare | |||
|
62 | 67 | layout_TMToForeignGSETester = new QVBoxLayout(); |
|
63 | 68 | mainLayout = new QGridLayout(); |
|
64 | 69 | |
|
70 | parameterDump = new ParameterDump(); | |
|
71 | ||
|
65 | 72 | layout_TMEcho->addWidget(label_serverTMEcho); |
|
66 | 73 | layout_TMEcho->addWidget(serverTMEchoDialogBox); |
|
67 | 74 | layout_TMEcho->addWidget(label_serverTMEchoPort); |
@@ -96,7 +103,9 MainWindowUI::MainWindowUI(QWidget *pare | |||
|
96 | 103 | spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection")); |
|
97 | 104 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); |
|
98 | 105 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); |
|
106 | spwTabWidget->addTab(parameterDump, tr("DUMP")); | |
|
99 | 107 | spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM")); |
|
108 | spwTabWidget->addTab(pageSpectraNORM, tr("ASM f0")); | |
|
100 | 109 | spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST")); |
|
101 | 110 | spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1")); |
|
102 | 111 | spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2")); |
@@ -161,4 +170,3 void MainWindowUI::totalOfPacketsHasChan | |||
|
161 | 170 | "Received Packets: " |
|
162 | 171 | + QString::number(nbPackets)); |
|
163 | 172 | } |
|
164 |
@@ -13,10 +13,12 | |||
|
13 | 13 | #include <QTabWidget> |
|
14 | 14 | |
|
15 | 15 | #include <wfdisplay.h> |
|
16 | #include <pagespectra.h> | |
|
16 | 17 | |
|
17 | 18 | #include "tmstatistics.h" |
|
18 | 19 | #include "hkdisplay.h" |
|
19 | 20 | #include "lfrspectrogram.h" |
|
21 | #include "parameterdump.h" | |
|
20 | 22 | |
|
21 | 23 | class MainWindowUI : public QWidget |
|
22 | 24 | { |
@@ -46,11 +48,14 public: | |||
|
46 | 48 | WFPage* wfPageBurst; |
|
47 | 49 | WFPage* wfPageSBM1; |
|
48 | 50 | WFPage* wfPageSBM2; |
|
51 | PageSpectra* pageSpectraNORM; | |
|
49 | 52 | HKDisplay* hkDisplay; |
|
50 | 53 | LFRSpectrogram* lfrSpectrogam; |
|
51 | 54 | |
|
52 | 55 | QWidget* widget_spectrogram; |
|
53 | 56 | |
|
57 | ParameterDump* parameterDump; | |
|
58 | ||
|
54 | 59 | QPushButton *button_openServerTCTM; |
|
55 | 60 | QPushButton *button_testServerTCTM; |
|
56 | 61 | QPushButton *button_openSocketEchoServer; |
@@ -1,9 +1,9 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: librmapplugin.so.1.0.0 |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 16:21:25 2013 | |
|
4 | 4 | # Project: rmapplugin.pro |
|
5 | 5 | # Template: lib |
|
6 | # Command: /usr/bin/qmake-qt4 -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 | 9 | ####### Compiler, tools and options |
@@ -11,9 +11,9 | |||
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 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.1\"" -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_CONFIG_PATH="QDir::homePath()+\"/.lppmon/config\"" -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 -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 -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../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
|
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) | |
|
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/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
|
17 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 |
|
19 | 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 -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread |
@@ -211,7 +211,7 Makefile: rmapplugin.pro /usr/lib64/qt4 | |||
|
211 | 211 | /usr/lib64/libQtCore.prl \ |
|
212 | 212 | /usr/lib64/libQtGui.prl \ |
|
213 | 213 | /usr/lib64/libQtNetwork.prl |
|
214 | $(QMAKE) -o Makefile rmapplugin.pro | |
|
214 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
|
215 | 215 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
216 | 216 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
217 | 217 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
@@ -243,11 +243,11 Makefile: rmapplugin.pro /usr/lib64/qt4 | |||
|
243 | 243 | /usr/lib64/libQtGui.prl: |
|
244 | 244 | /usr/lib64/libQtNetwork.prl: |
|
245 | 245 | qmake: FORCE |
|
246 | @$(QMAKE) -o Makefile rmapplugin.pro | |
|
246 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
|
247 | 247 | |
|
248 | 248 | dist: |
|
249 | 249 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 |
|
250 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents 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 /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 /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 | |
|
250 | $(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 /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 /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 | |
|
251 | 251 | |
|
252 | 252 | |
|
253 | 253 | clean:compiler_clean |
@@ -330,7 +330,8 moc/moc_tcpackettosend.cpp: tcpackettose | |||
|
330 | 330 | moc/moc_tmpackettoread.cpp: tmpackettoread.h |
|
331 | 331 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp |
|
332 | 332 | |
|
333 |
moc/moc_tmstatistics.cpp: tm |
|
|
333 | moc/moc_tmstatistics.cpp: tmpackettoread.h \ | |
|
334 | tmstatistics.h | |
|
334 | 335 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp |
|
335 | 336 | |
|
336 | 337 | moc/moc_wfpacket.cpp: params.h \ |
@@ -435,7 +436,8 obj/tcpackettosend.o: tcpackettosend.cpp | |||
|
435 | 436 | obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h |
|
436 | 437 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp |
|
437 | 438 | |
|
438 | obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h | |
|
439 | obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \ | |
|
440 | tmpackettoread.h | |
|
439 | 441 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp |
|
440 | 442 | |
|
441 | 443 | obj/wfpacket.o: wfpacket.cpp wfpacket.h \ |
@@ -495,18 +497,18 obj/moc_lppmonplugin.o: moc/moc_lppmonpl | |||
|
495 | 497 | ####### Install |
|
496 | 498 | |
|
497 | 499 | install_target: first FORCE |
|
498 |
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/ |
|
|
499 |
-$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
500 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
501 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
502 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
500 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
|
501 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
|
502 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
|
503 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
|
504 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
|
503 | 505 | |
|
504 | 506 | uninstall_target: FORCE |
|
505 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
506 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
507 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
508 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
509 |
-$(DEL_DIR) $(INSTALL_ROOT)/home/ |
|
|
507 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
|
508 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
|
509 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
|
510 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
|
511 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
|
510 | 512 | |
|
511 | 513 | |
|
512 | 514 | install: install_target FORCE |
@@ -245,8 +245,7 void rmapplugin::receivePacketFromBridge | |||
|
245 | 245 | preProcessPacket(packet); |
|
246 | 246 | |
|
247 | 247 | // Send the packet to the TM echo bridge for processing |
|
248 | this->UI->tmEchoBridge->sendTMPacket(packet); | |
|
249 | //this->UI->tmEchoBridge->sendTMPacket_alternative(packet); | |
|
248 | this->UI->tmEchoBridge->sendTMPacketLESIA(packet); | |
|
250 | 249 | |
|
251 | 250 | this->generalCCSDSPacketStore.append(packet); |
|
252 | 251 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); |
@@ -266,24 +265,14 void rmapplugin::preProcessPacket(TMPack | |||
|
266 | 265 | |
|
267 | 266 | //********************************* |
|
268 | 267 | // get the parameters of the packet |
|
269 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
|
270 | cat = packet->Value[5] & 0x0f; | |
|
271 | typ = packet->Value[11]; // TYPE | |
|
272 | sub = packet->Value[12]; // SUBTYPE | |
|
273 | sid = 0; | |
|
274 | length = packet->Value[8] * 256 + packet->Value[9]; | |
|
275 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
|
276 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
|
277 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
|
278 | ||
|
279 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) | |
|
280 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
|
281 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) | |
|
282 | sid = 1; | |
|
283 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
284 | sid = packet->Value[20]; | |
|
285 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) | |
|
286 | sid = packet->Value[20]; | |
|
268 | pid = this->UI->tmStatistics->getPID( packet ); | |
|
269 | cat = this->UI->tmStatistics->getCAT( packet ); | |
|
270 | typ = this->UI->tmStatistics->getTYPE( packet ); | |
|
271 | sub = this->UI->tmStatistics->getSUBTYPE( packet ); | |
|
272 | length = this->UI->tmStatistics->getLENGTH( packet ); | |
|
273 | coarse_t = this->UI->tmStatistics->getCoarseTime( packet ); | |
|
274 | fine_t = this->UI->tmStatistics->getFineTime( packet ); | |
|
275 | sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub ); | |
|
287 | 276 | |
|
288 | 277 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
289 | 278 |
@@ -27,6 +27,7 LIBS += ../spw_usb_driver_v2.63/lib/x86_ | |||
|
27 | 27 | INCLUDEPATH += \ |
|
28 | 28 | $${PWD} \ |
|
29 | 29 | ../common_PLE \ |
|
30 | ../../DEV_PLE/header \ | |
|
30 | 31 | ../spw_usb_driver_v2.63/inc \ |
|
31 | 32 | $${QT_INSTALL_HEADER} \ |
|
32 | 33 | $$[QT_INSTALL_HEADERS]/lppmon/common \ |
@@ -36,6 +37,7 LIBS += -llppmoncommon -lwfdisplay -lqwt | |||
|
36 | 37 | |
|
37 | 38 | |
|
38 | 39 | HEADERS += \ |
|
40 | ../../DEV_PLE/header/ccsds_types.h \ | |
|
39 | 41 | rmappluginui.h \ |
|
40 | 42 | rmapplugin.h \ |
|
41 | 43 | rmapoperations.h \ |
@@ -158,7 +158,6 void TMEchoBridge::sendXML_GSE_HK() | |||
|
158 | 158 | void TMEchoBridge::sendTMPacket(TMPacketToRead *tmPacketToRead) |
|
159 | 159 | { |
|
160 | 160 | QByteArray ccsdsArray; |
|
161 | QTime echoBridgeTimeout; | |
|
162 | 161 | |
|
163 | 162 | if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState) |
|
164 | 163 | { |
@@ -191,6 +190,41 void TMEchoBridge::sendTMPacket(TMPacket | |||
|
191 | 190 | } |
|
192 | 191 | } |
|
193 | 192 | |
|
193 | void TMEchoBridge::sendTMPacketLESIA(TMPacketToRead *tmPacketToRead) | |
|
194 | { | |
|
195 | QByteArray ccsdsArray; | |
|
196 | ||
|
197 | if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState) | |
|
198 | { | |
|
199 | ccsdsArray.append("<Event>"); | |
|
200 | ||
|
201 | ccsdsArray.append("<EventDate>"); | |
|
202 | ccsdsArray.append("</EventDate>"); | |
|
203 | ||
|
204 | ccsdsArray.append("<EventTime>"); | |
|
205 | ccsdsArray.append("</EventTime>"); | |
|
206 | ||
|
207 | ccsdsArray.append("<EventBinary>"); | |
|
208 | ccsdsArray.append(QByteArray::fromRawData( (char*) &tmPacketToRead->Value[4], tmPacketToRead->size-4).toHex()); | |
|
209 | ccsdsArray.append("</EventBinary>"); | |
|
210 | ||
|
211 | ccsdsArray.append("</Event>"); | |
|
212 | ||
|
213 | tmEchoBridgeSocket->write(ccsdsArray); | |
|
214 | tmEchoBridgeSocket->flush(); | |
|
215 | ||
|
216 | totalOfBytes = totalOfBytes + tmPacketToRead->size; | |
|
217 | totalOfPackets = totalOfPackets + 1; | |
|
218 | label_totalOfBytes->setText("Number of TM bytes sent: " + QString::number(totalOfBytes)); | |
|
219 | label_totalOfPackets->setText("Number of TM packets sent: " + QString::number(totalOfPackets)); | |
|
220 | } | |
|
221 | else | |
|
222 | { | |
|
223 | totalOfPacketsDropped = totalOfPacketsDropped + 1; | |
|
224 | label_totalOfPacketsDropped->setText("Number of TM packets dropped: " + QString::number(totalOfPacketsDropped)); | |
|
225 | } | |
|
226 | } | |
|
227 | ||
|
194 | 228 | void TMEchoBridge::clearConsole() |
|
195 | 229 | { |
|
196 | 230 | this->console->clear(); |
@@ -32,6 +32,7 public slots: | |||
|
32 | 32 | void newConnectionOnTCServer(); |
|
33 | 33 | void sendXML_GSE_HK(); |
|
34 | 34 | void sendTMPacket(TMPacketToRead *tmPacketToRead); |
|
35 | void sendTMPacketLESIA(TMPacketToRead *tmPacketToRead); | |
|
35 | 36 | void clearConsole(); |
|
36 | 37 | void resetTMStatistics(); |
|
37 | 38 |
@@ -29,6 +29,7 TMStatistics::TMStatistics(QWidget *pare | |||
|
29 | 29 | label_ERRO = new QLabel("ERROR"); |
|
30 | 30 | label_CORR = new QLabel("CORRUPTED"); |
|
31 | 31 | label_HK = new QLabel("TM_LFR_HK"); |
|
32 | label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP"); | |
|
32 | 33 | // |
|
33 | 34 | label_SUCC_nb = new QLabel("-"); |
|
34 | 35 | label_INCO_nb = new QLabel("-"); |
@@ -37,6 +38,7 TMStatistics::TMStatistics(QWidget *pare | |||
|
37 | 38 | label_ERRO_nb = new QLabel("-"); |
|
38 | 39 | label_CORR_nb = new QLabel("-"); |
|
39 | 40 | label_HK_nb = new QLabel("-"); |
|
41 | label_DUMP_nb = new QLabel("-"); | |
|
40 | 42 | |
|
41 | 43 | //*********************** |
|
42 | 44 | // TM_LFR_SCIENCE_NORMAL_ |
@@ -163,7 +165,7 void TMStatistics::initConstants() | |||
|
163 | 165 | { |
|
164 | 166 | UNKNOWN_nb = 0; |
|
165 | 167 | |
|
166 |
// TM_LFR_ |
|
|
168 | // TM_LFR_TC_EXE_ | |
|
167 | 169 | SUCC_nb = 0; |
|
168 | 170 | INCO_nb = 0; |
|
169 | 171 | NOTE_nb = 0; |
@@ -171,6 +173,7 void TMStatistics::initConstants() | |||
|
171 | 173 | ERRO_nb = 0; |
|
172 | 174 | CORR_nb = 0; |
|
173 | 175 | HK_nb = 0; |
|
176 | DUMP_nb = 0; | |
|
174 | 177 | |
|
175 | 178 | // TM_LFR_SCIENCE_NORMAL_ |
|
176 | 179 | NORM_SWF_F0_nb = 0; |
@@ -298,6 +301,7 void TMStatistics::buildMonitor() | |||
|
298 | 301 | layout_stat->addWidget(label_ERRO, 4, 0, 1, 1); |
|
299 | 302 | layout_stat->addWidget(label_CORR, 5, 0, 1, 1); |
|
300 | 303 | layout_stat->addWidget(label_HK, 6, 0, 1, 1); |
|
304 | layout_stat->addWidget(label_DUMP, 7, 0, 1, 1); | |
|
301 | 305 | // |
|
302 | 306 | layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1); |
|
303 | 307 | layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1); |
@@ -306,6 +310,7 void TMStatistics::buildMonitor() | |||
|
306 | 310 | layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1); |
|
307 | 311 | layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1); |
|
308 | 312 | layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1); |
|
313 | layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1); | |
|
309 | 314 | |
|
310 | 315 | //******** |
|
311 | 316 | // LAST TM |
@@ -365,11 +370,13 void TMStatistics::resetStatistics() | |||
|
365 | 370 | label_ERRO_nb->setText("-"); |
|
366 | 371 | label_CORR_nb->setText("-"); |
|
367 | 372 | label_HK_nb->setText("-"); |
|
373 | label_DUMP_nb->setText("-"); | |
|
368 | 374 | // |
|
369 | 375 | label_NORM_SWF_F0_nb->setText("-"); |
|
370 | 376 | label_NORM_SWF_F1_nb->setText("-"); |
|
371 | 377 | label_NORM_SWF_F2_nb->setText("-"); |
|
372 | 378 | label_NORM_CWF_F3_nb->setText("-"); |
|
379 | label_NORM_ASM_F0_nb->setText("-"); | |
|
373 | 380 | // |
|
374 | 381 | label_BURST_CWF_F2_nb->setText("-"); |
|
375 | 382 | // |
@@ -395,36 +402,36 void TMStatistics::updateStatistics(unsi | |||
|
395 | 402 | { |
|
396 | 403 | if (cat == 1) |
|
397 | 404 | { |
|
398 |
if (typ == |
|
|
405 | if (typ == TM_TYPE_TC_EXE) | |
|
399 | 406 | { |
|
400 |
if (sub == |
|
|
407 | if (sub == TM_SUBTYPE_EXE_OK) | |
|
401 | 408 | { |
|
402 | 409 | SUCC_nb = SUCC_nb + 1; |
|
403 | 410 | label_SUCC_nb->setText(QString::number(SUCC_nb)); |
|
404 | 411 | } |
|
405 |
else if (sub == |
|
|
412 | else if (sub == TM_SUBTYPE_EXE_NOK) | |
|
406 | 413 | { |
|
407 |
if (sid == |
|
|
414 | if (sid == SID_EXE_INC) | |
|
408 | 415 | { |
|
409 | 416 | INCO_nb = INCO_nb + 1; |
|
410 | 417 | label_INCO_nb->setText(QString::number(INCO_nb)); |
|
411 | 418 | } |
|
412 |
else if (sid == |
|
|
419 | else if (sid == SID_NOT_EXE) | |
|
413 | 420 | { |
|
414 | 421 | NOTE_nb = NOTE_nb + 1; |
|
415 | 422 | label_NOTE_nb->setText(QString::number(NOTE_nb)); |
|
416 | 423 | } |
|
417 |
else if (sid == |
|
|
424 | else if (sid == SID_NOT_IMP) | |
|
418 | 425 | { |
|
419 | 426 | NOTI_nb = NOTI_nb + 1; |
|
420 | 427 | label_NOTI_nb->setText(QString::number(NOTI_nb)); |
|
421 | 428 | } |
|
422 |
else if (sid == |
|
|
429 | else if (sid == SID_EXE_ERR) | |
|
423 | 430 | { |
|
424 | 431 | ERRO_nb = ERRO_nb + 1; |
|
425 | 432 | label_ERRO_nb->setText(QString::number(ERRO_nb)); |
|
426 | 433 | } |
|
427 |
else if (sid == |
|
|
434 | else if (sid == SID_EXE_CORR) | |
|
428 | 435 | { |
|
429 | 436 | CORR_nb = CORR_nb + 1; |
|
430 | 437 | label_CORR_nb->setText(QString::number(CORR_nb)); |
@@ -438,10 +445,10 void TMStatistics::updateStatistics(unsi | |||
|
438 | 445 | } |
|
439 | 446 | else if (cat == 4) |
|
440 | 447 | { |
|
441 |
if (typ == |
|
|
448 | if (typ == TM_TYPE_HK) | |
|
442 | 449 | { |
|
443 |
if (sub == |
|
|
444 |
if (sid == |
|
|
450 | if (sub == TM_SUBTYPE_HK) | |
|
451 | if (sid == SID_HK) | |
|
445 | 452 | { |
|
446 | 453 | HK_nb = HK_nb + 1; |
|
447 | 454 | label_HK_nb->setText(QString::number(HK_nb)); |
@@ -460,43 +467,72 void TMStatistics::updateStatistics(unsi | |||
|
460 | 467 | incrementUnknown(); |
|
461 | 468 | } |
|
462 | 469 | } |
|
470 | else if (cat == 9) | |
|
471 | { | |
|
472 | if (typ == TM_TYPE_PARAMETER_DUMP) | |
|
473 | { | |
|
474 | if (sub == TM_SUBTYPE_PARAMETER_DUMP) | |
|
475 | if (sid == SID_PARAMETER_DUMP) | |
|
476 | { | |
|
477 | DUMP_nb = DUMP_nb + 1; | |
|
478 | label_DUMP_nb->setText(QString::number(DUMP_nb)); | |
|
479 | } | |
|
480 | else | |
|
481 | { | |
|
482 | incrementUnknown(); | |
|
483 | } | |
|
484 | else | |
|
485 | { | |
|
486 | incrementUnknown(); | |
|
487 | } | |
|
488 | } | |
|
489 | else | |
|
490 | { | |
|
491 | incrementUnknown(); | |
|
492 | } | |
|
493 | } | |
|
463 | 494 | else if (cat == 12) |
|
464 | 495 | { |
|
465 | 496 | if (typ == 21) |
|
466 | 497 | { |
|
467 | 498 | if (sub == 3) |
|
468 | 499 | { |
|
469 |
if (sid == |
|
|
500 | if (sid == SID_NORM_CWF_F3) | |
|
470 | 501 | { |
|
471 | 502 | NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1; |
|
472 | 503 | label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb)); |
|
473 | 504 | } |
|
474 | else if (sid == 2) | |
|
505 | else if (sid == SID_BURST_CWF_F2) | |
|
475 | 506 | { |
|
476 | 507 | BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1; |
|
477 | 508 | label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb)); |
|
478 | 509 | } |
|
479 |
else if (sid == |
|
|
510 | else if (sid == SID_NORM_SWF_F0) | |
|
480 | 511 | { |
|
481 | 512 | NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1; |
|
482 | 513 | label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb)); |
|
483 | 514 | } |
|
484 |
else if (sid == |
|
|
515 | else if (sid == SID_NORM_SWF_F1) | |
|
485 | 516 | { |
|
486 | 517 | NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1; |
|
487 | 518 | label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb)); |
|
488 | 519 | } |
|
489 |
else if (sid == |
|
|
520 | else if (sid == SID_NORM_SWF_F2) | |
|
490 | 521 | { |
|
491 | 522 | NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1; |
|
492 | 523 | label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb)); |
|
493 | 524 | } |
|
494 |
else if (sid == |
|
|
525 | else if (sid == SID_NORM_ASM_F0) | |
|
526 | { | |
|
527 | NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1; | |
|
528 | label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb)); | |
|
529 | } | |
|
530 | else if (sid == SID_SBM1_CWF_F1) | |
|
495 | 531 | { |
|
496 | 532 | SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1; |
|
497 | 533 | label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb)); |
|
498 | 534 | } |
|
499 |
else if (sid == |
|
|
535 | else if (sid == SID_SBM2_CWF_F2) | |
|
500 | 536 | { |
|
501 | 537 | SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1; |
|
502 | 538 | label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb)); |
@@ -533,6 +569,89 void TMStatistics::incrementUnknown() | |||
|
533 | 569 | label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb)); |
|
534 | 570 | } |
|
535 | 571 | |
|
572 | unsigned char TMStatistics::getPID(TMPacketToRead *packet) | |
|
573 | { | |
|
574 | unsigned char pid = 0; | |
|
575 | ||
|
576 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
|
577 | ||
|
578 | return pid; | |
|
579 | } | |
|
580 | ||
|
581 | unsigned char TMStatistics::getCAT(TMPacketToRead *packet) | |
|
582 | { | |
|
583 | unsigned char cat = 0; | |
|
584 | ||
|
585 | cat = packet->Value[5] & 0x0f; | |
|
586 | ||
|
587 | return cat; | |
|
588 | } | |
|
589 | ||
|
590 | unsigned char TMStatistics::getTYPE(TMPacketToRead *packet) | |
|
591 | { | |
|
592 | unsigned char typ = 0; | |
|
593 | ||
|
594 | typ = packet->Value[11]; // TYPE | |
|
595 | ||
|
596 | return typ; | |
|
597 | } | |
|
598 | ||
|
599 | unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet) | |
|
600 | { | |
|
601 | unsigned char sub = 0; | |
|
602 | ||
|
603 | sub = packet->Value[12]; // SUBTYPE | |
|
604 | ||
|
605 | return sub; | |
|
606 | } | |
|
607 | ||
|
608 | unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet) | |
|
609 | { | |
|
610 | unsigned int length = 0; | |
|
611 | ||
|
612 | length = packet->Value[8] * 256 + packet->Value[9]; | |
|
613 | ||
|
614 | return length; | |
|
615 | } | |
|
616 | ||
|
617 | unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet) | |
|
618 | { | |
|
619 | unsigned int coarse = 0; | |
|
620 | ||
|
621 | coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
|
622 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
|
623 | ||
|
624 | return coarse; | |
|
625 | } | |
|
626 | ||
|
627 | unsigned int TMStatistics::getFineTime(TMPacketToRead *packet) | |
|
628 | { | |
|
629 | unsigned int fine = 0; | |
|
630 | ||
|
631 | fine = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
|
632 | ||
|
633 | return fine; | |
|
634 | } | |
|
635 | ||
|
636 | unsigned int TMStatistics::getSID(TMPacketToRead *packet, | |
|
637 | unsigned char pid, unsigned char cat, | |
|
638 | unsigned char typ, unsigned char sub) | |
|
639 | { | |
|
640 | unsigned int sid = 0; | |
|
641 | ||
|
642 | if ((pid == 76) & (cat == 1) & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK)) | |
|
643 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
|
644 | else if ((pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK)) | |
|
645 | sid = SID_HK; | |
|
646 | else if ((pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP)) | |
|
647 | sid = SID_PARAMETER_DUMP; | |
|
648 | else if ((pid == 76) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) | |
|
649 | sid = packet->Value[20]; | |
|
650 | else if ((pid == 79) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE)) | |
|
651 | sid = packet->Value[20]; | |
|
652 | ||
|
653 | return sid; | |
|
654 | } | |
|
536 | 655 | |
|
537 | 656 | |
|
538 | 657 |
@@ -7,6 +7,8 | |||
|
7 | 7 | #include <QGridLayout> |
|
8 | 8 | #include <QVBoxLayout> |
|
9 | 9 | #include <QGroupBox> |
|
10 | #include <tmpackettoread.h> | |
|
11 | #include <ccsds_types.h> | |
|
10 | 12 | |
|
11 | 13 | #define STATISTICS_FONT_SIZE 9 |
|
12 | 14 | |
@@ -23,6 +25,16 public: | |||
|
23 | 25 | void buildMonitor_NORM(); |
|
24 | 26 | void buildMonitor(); |
|
25 | 27 | void incrementUnknown(); |
|
28 | // | |
|
29 | void preProcessPacket(TMPacketToRead *packet); | |
|
30 | unsigned char getPID(TMPacketToRead *packet); | |
|
31 | unsigned char getCAT(TMPacketToRead *packet); | |
|
32 | unsigned char getTYPE(TMPacketToRead *packet); | |
|
33 | unsigned char getSUBTYPE(TMPacketToRead *packet); | |
|
34 | unsigned int getLENGTH(TMPacketToRead *packet); | |
|
35 | unsigned int getCoarseTime(TMPacketToRead *packet); | |
|
36 | unsigned int getFineTime(TMPacketToRead *packet); | |
|
37 | unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub); | |
|
26 | 38 | |
|
27 | 39 | unsigned int UNKNOWN_nb; |
|
28 | 40 | unsigned int SUCC_nb; |
@@ -32,6 +44,7 public: | |||
|
32 | 44 | unsigned int ERRO_nb; |
|
33 | 45 | unsigned int CORR_nb; |
|
34 | 46 | unsigned int HK_nb; |
|
47 | unsigned int DUMP_nb; | |
|
35 | 48 | unsigned int NORM_SWF_F0_nb; |
|
36 | 49 | unsigned int NORM_SWF_F1_nb; |
|
37 | 50 | unsigned int NORM_SWF_F2_nb; |
@@ -74,6 +87,7 public: | |||
|
74 | 87 | QLabel *label_ERRO; |
|
75 | 88 | QLabel *label_CORR; |
|
76 | 89 | QLabel *label_HK; |
|
90 | QLabel *label_DUMP; | |
|
77 | 91 | // |
|
78 | 92 | QLabel *label_SUCC_nb; |
|
79 | 93 | QLabel *label_INCO_nb; |
@@ -82,6 +96,7 public: | |||
|
82 | 96 | QLabel *label_ERRO_nb; |
|
83 | 97 | QLabel *label_CORR_nb; |
|
84 | 98 | QLabel *label_HK_nb; |
|
99 | QLabel *label_DUMP_nb; | |
|
85 | 100 | |
|
86 | 101 | //*********************** |
|
87 | 102 | // TM_LFR_SCIENCE_NORMAL_ |
@@ -1,9 +1,9 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: libwfdisplay.so.1.0.0 |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 10:11:16 2013 | |
|
4 | 4 | # Project: wfdisplay.pro |
|
5 | 5 | # Template: lib |
|
6 | # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro | |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro | |
|
7 | 7 | ############################################################################# |
|
8 | 8 | |
|
9 | 9 | ####### Compiler, tools and options |
@@ -11,8 +11,8 | |||
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 13 | DEFINES = -DWFDISPLAY_LIBRARY -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 -fPIC $(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 -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 -Wall -W -D_REENTRANT -fPIC $(DEFINES) | |
|
16 | 16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ilppmonplot -IQCustomPlot -I. |
|
17 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libwfdisplay.so.1 |
@@ -47,21 +47,25 SOURCES = wfdisplay.cpp \ | |||
|
47 | 47 | wfplot.cpp \ |
|
48 | 48 | wfpage.cpp \ |
|
49 | 49 | lppmonplot/lppmonplot.cpp \ |
|
50 |
QCustomPlot/qcustomplot.cpp |
|
|
50 | QCustomPlot/qcustomplot.cpp \ | |
|
51 | pagespectra.cpp moc_wfdisplay.cpp \ | |
|
51 | 52 | moc_wfplot.cpp \ |
|
52 | 53 | moc_wfpage.cpp \ |
|
53 | 54 | moc_lppmonplot.cpp \ |
|
54 | moc_qcustomplot.cpp | |
|
55 | moc_qcustomplot.cpp \ | |
|
56 | moc_pagespectra.cpp | |
|
55 | 57 | OBJECTS = wfdisplay.o \ |
|
56 | 58 | wfplot.o \ |
|
57 | 59 | wfpage.o \ |
|
58 | 60 | lppmonplot.o \ |
|
59 | 61 | qcustomplot.o \ |
|
62 | pagespectra.o \ | |
|
60 | 63 | moc_wfdisplay.o \ |
|
61 | 64 | moc_wfplot.o \ |
|
62 | 65 | moc_wfpage.o \ |
|
63 | 66 | moc_lppmonplot.o \ |
|
64 | moc_qcustomplot.o | |
|
67 | moc_qcustomplot.o \ | |
|
68 | moc_pagespectra.o | |
|
65 | 69 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
66 | 70 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
67 | 71 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
@@ -161,7 +165,7 Makefile: wfdisplay.pro /usr/lib64/qt4/ | |||
|
161 | 165 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
162 | 166 | /usr/lib64/libQtGui.prl \ |
|
163 | 167 | /usr/lib64/libQtCore.prl |
|
164 | $(QMAKE) -o Makefile wfdisplay.pro | |
|
168 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro | |
|
165 | 169 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
166 | 170 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
167 | 171 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
@@ -189,11 +193,11 Makefile: wfdisplay.pro /usr/lib64/qt4/ | |||
|
189 | 193 | /usr/lib64/libQtGui.prl: |
|
190 | 194 | /usr/lib64/libQtCore.prl: |
|
191 | 195 | qmake: FORCE |
|
192 | @$(QMAKE) -o Makefile wfdisplay.pro | |
|
196 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro | |
|
193 | 197 | |
|
194 | 198 | dist: |
|
195 | 199 | @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0 |
|
196 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h lppmonplot/lppmonplot.h QCustomPlot/qcustomplot.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp lppmonplot/lppmonplot.cpp QCustomPlot/qcustomplot.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0 | |
|
200 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h lppmonplot/lppmonplot.h QCustomPlot/qcustomplot.h pagespectra.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp lppmonplot/lppmonplot.cpp QCustomPlot/qcustomplot.cpp pagespectra.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0 | |
|
197 | 201 | |
|
198 | 202 | |
|
199 | 203 | clean:compiler_clean |
@@ -215,9 +219,9 mocclean: compiler_moc_header_clean comp | |||
|
215 | 219 | |
|
216 | 220 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
217 | 221 | |
|
218 | compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp | |
|
222 | compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp | |
|
219 | 223 | compiler_moc_header_clean: |
|
220 | -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp | |
|
224 | -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp | |
|
221 | 225 | moc_wfdisplay.cpp: wfdisplay_global.h \ |
|
222 | 226 | wfpage.h \ |
|
223 | 227 | wfplot.h \ |
@@ -240,6 +244,12 moc_lppmonplot.cpp: lppmonplot/lppmonplo | |||
|
240 | 244 | moc_qcustomplot.cpp: QCustomPlot/qcustomplot.h |
|
241 | 245 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) QCustomPlot/qcustomplot.h -o moc_qcustomplot.cpp |
|
242 | 246 | |
|
247 | moc_pagespectra.cpp: wfdisplay_global.h \ | |
|
248 | wfplot.h \ | |
|
249 | wfdisplay_params.h \ | |
|
250 | pagespectra.h | |
|
251 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) pagespectra.h -o moc_pagespectra.cpp | |
|
252 | ||
|
243 | 253 | compiler_rcc_make_all: |
|
244 | 254 | compiler_rcc_clean: |
|
245 | 255 | compiler_image_collection_make_all: qmake_image_collection.cpp |
@@ -282,6 +292,12 lppmonplot.o: lppmonplot/lppmonplot.cpp | |||
|
282 | 292 | qcustomplot.o: QCustomPlot/qcustomplot.cpp QCustomPlot/qcustomplot.h |
|
283 | 293 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcustomplot.o QCustomPlot/qcustomplot.cpp |
|
284 | 294 | |
|
295 | pagespectra.o: pagespectra.cpp pagespectra.h \ | |
|
296 | wfdisplay_global.h \ | |
|
297 | wfplot.h \ | |
|
298 | wfdisplay_params.h | |
|
299 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pagespectra.o pagespectra.cpp | |
|
300 | ||
|
285 | 301 | moc_wfdisplay.o: moc_wfdisplay.cpp |
|
286 | 302 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp |
|
287 | 303 | |
@@ -297,15 +313,19 moc_lppmonplot.o: moc_lppmonplot.cpp | |||
|
297 | 313 | moc_qcustomplot.o: moc_qcustomplot.cpp |
|
298 | 314 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qcustomplot.o moc_qcustomplot.cpp |
|
299 | 315 | |
|
316 | moc_pagespectra.o: moc_pagespectra.cpp | |
|
317 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pagespectra.o moc_pagespectra.cpp | |
|
318 | ||
|
300 | 319 | ####### Install |
|
301 | 320 | |
|
302 | 321 | install_header: first FORCE |
|
303 | 322 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
304 |
-$(INSTALL_FILE) |
|
|
305 |
-$(INSTALL_FILE) |
|
|
306 |
-$(INSTALL_FILE) |
|
|
307 |
-$(INSTALL_FILE) |
|
|
308 |
-$(INSTALL_FILE) |
|
|
323 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
324 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
325 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
326 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
327 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
328 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/pagespectra.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
309 | 329 | |
|
310 | 330 | |
|
311 | 331 | uninstall_header: FORCE |
@@ -313,7 +333,8 uninstall_header: FORCE | |||
|
313 | 333 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h |
|
314 | 334 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h |
|
315 | 335 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h |
|
316 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h | |
|
336 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h | |
|
337 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/pagespectra.h | |
|
317 | 338 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
318 | 339 | |
|
319 | 340 |
@@ -13,6 +13,11 WFDisplay::WFDisplay(QWidget *parent) : | |||
|
13 | 13 | page_f2 = new WFPage(); |
|
14 | 14 | page_f3 = new WFPage(); |
|
15 | 15 | |
|
16 | page_f0->pageTitle = "NORM_SWF_F0"; | |
|
17 | page_f1->pageTitle = "NORM_SWF_F1"; | |
|
18 | page_f2->pageTitle = "NORM_SWF_F2"; | |
|
19 | page_f3->pageTitle = "NORM_CWF_F3"; | |
|
20 | ||
|
16 | 21 | spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)")); |
|
17 | 22 | spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz")); |
|
18 | 23 | spwTabWidget->addTab(page_f2, tr("f2 (256 Hz)")); |
@@ -21,7 +21,8 SOURCES += wfdisplay.cpp \ | |||
|
21 | 21 | wfplot.cpp \ |
|
22 | 22 | wfpage.cpp \ |
|
23 | 23 | lppmonplot/lppmonplot.cpp \ |
|
24 | QCustomPlot/qcustomplot.cpp | |
|
24 | QCustomPlot/qcustomplot.cpp \ | |
|
25 | pagespectra.cpp | |
|
25 | 26 | |
|
26 | 27 | |
|
27 | 28 | HEADERS += wfdisplay.h\ |
@@ -30,7 +31,8 HEADERS += wfdisplay.h\ | |||
|
30 | 31 | wfpage.h \ |
|
31 | 32 | wfdisplay_params.h \ |
|
32 | 33 | lppmonplot/lppmonplot.h \ |
|
33 | QCustomPlot/qcustomplot.h | |
|
34 | QCustomPlot/qcustomplot.h \ | |
|
35 | pagespectra.h | |
|
34 | 36 | |
|
35 | 37 | |
|
36 | 38 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay |
@@ -39,7 +41,8 header.files = \ | |||
|
39 | 41 | wfdisplay_global.h \ |
|
40 | 42 | wfpage.h \ |
|
41 | 43 | wfplot.h \ |
|
42 | wfdisplay_params.h | |
|
44 | wfdisplay_params.h \ | |
|
45 | pagespectra.h | |
|
43 | 46 | |
|
44 | 47 | target.path = $$[QT_INSTALL_LIBS] |
|
45 | 48 | isEmpty(target.path) { |
@@ -1,6 +1,6 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt |
|
|
3 | <!-- Written by QtCreator 2.7.0, 2013-07-24T16:26:20. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -11,14 +11,15 | |||
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
|
14 | 15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 |
<value type="Q |
|
|
16 | <value type="QByteArray" key="language">Cpp</value> | |
|
16 | 17 | <valuemap type="QVariantMap" key="value"> |
|
17 | 18 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 19 | </valuemap> |
|
19 | 20 | </valuemap> |
|
20 | 21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 |
<value type="Q |
|
|
22 | <value type="QByteArray" key="language">QmlJS</value> | |
|
22 | 23 | <valuemap type="QVariantMap" key="value"> |
|
23 | 24 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 25 | </valuemap> |
@@ -27,6 +28,7 | |||
|
27 | 28 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
|
30 | 32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
@@ -49,60 +51,69 | |||
|
49 | 51 | <data> |
|
50 | 52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 53 | <valuemap type="QVariantMap"> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
|
54 |
<value type="Q |
|
|
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> | |
|
56 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
|
55 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
56 | 58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/lib64/ccache/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
|
60 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
63 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
62 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 |
<value type="Q |
|
|
66 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
65 | 67 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
66 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
67 | 69 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 70 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 71 | </valuemap> |
|
70 | 72 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
73 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
71 | 74 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 |
<value type="Q |
|
|
76 | <value type="QByteArray" 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 | 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">-r -w </value> | |
|
76 | 83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 84 | </valuemap> |
|
78 | 85 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 |
<value type="Q |
|
|
88 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
82 | 89 | </valuemap> |
|
83 | 90 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
92 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
|
85 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 |
<value type="Q |
|
|
95 | <value type="QByteArray" 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 | 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">-r -w clean</value> | |
|
90 | 102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 103 | </valuemap> |
|
92 | 104 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 105 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 |
<value type="Q |
|
|
107 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
96 | 108 | </valuemap> |
|
97 | 109 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 110 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 111 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
101 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 |
<value type="Q |
|
|
114 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
103 | 115 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
104 | 116 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
106 | 117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 118 | </valuemap> |
|
108 | 119 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
@@ -111,60 +122,29 | |||
|
111 | 122 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
112 | 123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
113 | 124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 |
<value type="Q |
|
|
125 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
|
115 | 126 | </valuemap> |
|
116 | 127 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
117 | 128 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
118 | 129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
119 |
<value type="Q |
|
|
130 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
|
120 | 131 | </valuemap> |
|
121 | 132 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
122 | 133 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
123 | 134 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
|
125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
|
126 | 135 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
127 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
|
129 | 137 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
|
131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
|
132 | 138 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
133 | 139 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
|
135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
|
136 | 140 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
137 | 141 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
|
139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
|
140 | 142 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
141 | 143 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
|
143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
|
144 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
145 | 145 | <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> | |
|
148 | 146 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
149 | 147 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
|
151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
|
152 | <value type="int">0</value> | |
|
153 | <value type="int">1</value> | |
|
154 | <value type="int">2</value> | |
|
155 | <value type="int">3</value> | |
|
156 | <value type="int">4</value> | |
|
157 | <value type="int">5</value> | |
|
158 | <value type="int">6</value> | |
|
159 | <value type="int">7</value> | |
|
160 | <value type="int">8</value> | |
|
161 | <value type="int">9</value> | |
|
162 | <value type="int">10</value> | |
|
163 | <value type="int">11</value> | |
|
164 | <value type="int">12</value> | |
|
165 | <value type="int">13</value> | |
|
166 | <value type="int">14</value> | |
|
167 | </valuelist> | |
|
168 | 148 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
169 | 149 | <value type="int">0</value> |
|
170 | 150 | <value type="int">1</value> |
@@ -190,9 +170,10 | |||
|
190 | 170 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
191 | 171 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> |
|
192 | 172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
193 |
<value type="Q |
|
|
173 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
|
194 | 174 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
195 | 175 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
176 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
|
196 | 177 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
197 | 178 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
198 | 179 | </valuemap> |
@@ -209,6 +190,6 | |||
|
209 | 190 | </data> |
|
210 | 191 | <data> |
|
211 | 192 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
212 |
<value type="int">1 |
|
|
193 | <value type="int">12</value> | |
|
213 | 194 | </data> |
|
214 | 195 | </qtcreator> |
@@ -2,8 +2,9 | |||
|
2 | 2 | #define WFDISPLAY_PARAMS_H |
|
3 | 3 | |
|
4 | 4 | #define FONT_SIZE_WAVEFORM_TITLE 10 |
|
5 | #define XMAX 2048 | |
|
6 | #define YMAX 15000 | |
|
5 | #define WFDISPLAY_XMAX 2048 | |
|
6 | #define WFDISPLAY_YMAX 15000 | |
|
7 | 7 | #define DEFAULT_SIZE 2048 |
|
8 | #define WFDISPLAY_DEFAULT_SPECTRA_SIZE 128 | |
|
8 | 9 | |
|
9 | 10 | #endif // WFDISPLAY_PARAMS_H |
@@ -1,14 +1,23 | |||
|
1 | 1 | #include "wfpage.h" |
|
2 | #include <stdio.h> | |
|
2 | 3 | |
|
3 | 4 | WFPage::WFPage(QWidget *parent) : |
|
4 | 5 | QMainWindow(parent) |
|
5 | 6 | { |
|
6 | wfPlot_v = new WFPlot(); | |
|
7 | wfPlot_e1 = new WFPlot(); | |
|
8 | wfPlot_e2 = new WFPlot(); | |
|
9 | wfPlot_b1 = new WFPlot(); | |
|
10 | wfPlot_b2 = new WFPlot(); | |
|
11 | wfPlot_b3 = new WFPlot(); | |
|
7 | unsigned int i = 0; | |
|
8 | ||
|
9 | for (i = 0; i<6; i++) | |
|
10 | { | |
|
11 | localIndex[i] = 0; | |
|
12 | } | |
|
13 | ||
|
14 | pageTitle = "default"; | |
|
15 | wfPlot_v = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
16 | wfPlot_e1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
17 | wfPlot_e2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
18 | wfPlot_b1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
19 | wfPlot_b2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
20 | wfPlot_b3 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX); | |
|
12 | 21 | // |
|
13 | 22 | wfPlot_v->customPlot->setTitle("v"); |
|
14 | 23 | wfPlot_e1->customPlot->setTitle("e1"); |
@@ -47,20 +56,39 WFPage::WFPage(QWidget *parent) : | |||
|
47 | 56 | logFileB1 = new QFile(); |
|
48 | 57 | logFileB2 = new QFile(); |
|
49 | 58 | logFileB3 = new QFile(); |
|
59 | ||
|
50 | 60 | logFileEn = false; |
|
61 | storageEnabledV = false; | |
|
62 | storageEnabledE1 = false; | |
|
63 | storageEnabledE2 = false; | |
|
64 | storageEnabledB1 = false; | |
|
65 | storageEnabledB2 = false; | |
|
66 | storageEnabledB3 = false; | |
|
51 | 67 | |
|
52 | 68 | createToolBar(); |
|
53 | ||
|
54 | connect(this, SIGNAL(setLogFileName(QString)), this->logFileName, SLOT(setText(QString))); | |
|
55 | // | |
|
56 | //this->setLayout(mainLayout); | |
|
69 | readSettings(); | |
|
57 | 70 | } |
|
58 | 71 | |
|
59 | 72 | void WFPage::displayOnPlot(short *data, unsigned char num) |
|
60 | 73 | { |
|
74 | QByteArray dataByteArray; | |
|
75 | unsigned int i; | |
|
76 | ||
|
61 | 77 | switch(num){ |
|
62 | 78 | case 0: |
|
63 | 79 | wfPlot_v->displayOnPlot(data, DEFAULT_SIZE); |
|
80 | if ( (storageEnabledV == true) && (logFileV->isOpen()) ) | |
|
81 | { | |
|
82 | for (i=0; i<DEFAULT_SIZE; i++) | |
|
83 | { | |
|
84 | dataByteArray.clear(); | |
|
85 | dataByteArray.append(QByteArray::number(localIndex[0])); | |
|
86 | dataByteArray.append(' '); | |
|
87 | dataByteArray.append(QByteArray::number(data[i])); | |
|
88 | *(this->logFileStrmV) << dataByteArray << endl; | |
|
89 | localIndex[0]++; | |
|
90 | } | |
|
91 | } | |
|
64 | 92 | break; |
|
65 | 93 | case 1: |
|
66 | 94 | wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE); |
@@ -100,6 +128,7 void WFPage::createToolBar() | |||
|
100 | 128 | |
|
101 | 129 | button_selectAll = new QPushButton(tr("select all")); |
|
102 | 130 | button_storeWfrm = new QPushButton(tr("REC")); |
|
131 | button_chooseDir = new QPushButton(tr("choose dir")); | |
|
103 | 132 | |
|
104 | 133 | myToolBar = new QToolBar("select"); |
|
105 | 134 | |
@@ -112,7 +141,9 void WFPage::createToolBar() | |||
|
112 | 141 | myToolBar->addSeparator(); |
|
113 | 142 | myToolBar->addWidget(button_selectAll); |
|
114 | 143 | myToolBar->addWidget(radio_tabify); |
|
144 | myToolBar->addSeparator(); | |
|
115 | 145 | myToolBar->addWidget(button_storeWfrm); |
|
146 | myToolBar->addWidget(button_chooseDir); | |
|
116 | 147 | |
|
117 | 148 | addToolBar(Qt::LeftToolBarArea, myToolBar); |
|
118 | 149 | |
@@ -127,6 +158,7 void WFPage::createToolBar() | |||
|
127 | 158 | connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll())); |
|
128 | 159 | connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks())); |
|
129 | 160 | connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm())); |
|
161 | connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir())); | |
|
130 | 162 | } |
|
131 | 163 | |
|
132 | 164 | void WFPage::actionRadioV(bool state) |
@@ -440,12 +472,22 void WFPage::storeWfrm() | |||
|
440 | 472 | { |
|
441 | 473 | if (logFileEn == false) |
|
442 | 474 | { |
|
443 |
|
|
|
475 | buildFileNames(); | |
|
444 | 476 | button_storeWfrm->setText(tr("STOP")); |
|
445 | 477 | logFileEn = true; |
|
446 | 478 | } |
|
447 | 479 | else |
|
448 | 480 | { |
|
481 | if(this->logFileV->isOpen()) this->logFileV->close(); | |
|
482 | if(this->logFileE1->isOpen()) this->logFileE1->close(); | |
|
483 | if(this->logFileE2->isOpen()) this->logFileE2->close(); | |
|
484 | // disable all storage | |
|
485 | storageEnabledV = false; | |
|
486 | storageEnabledE1 = false; | |
|
487 | storageEnabledE2 = false; | |
|
488 | storageEnabledB1 = false; | |
|
489 | storageEnabledB2 = false; | |
|
490 | storageEnabledB3 = false; | |
|
449 | 491 | button_storeWfrm->setText(tr("REC")); |
|
450 | 492 | logFileEn = false; |
|
451 | 493 | } |
@@ -455,22 +497,33 void WFPage::buildFileNames() | |||
|
455 | 497 | { |
|
456 | 498 | QString date; |
|
457 | 499 | QString time; |
|
500 | QString prefix; | |
|
458 | 501 | |
|
459 | 502 | date = QDate::currentDate().toString(); |
|
460 | 503 | time = QTime::currentTime().toString(); |
|
461 | 504 | |
|
505 | prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" + pageTitle ; | |
|
462 | 506 | |
|
463 | 507 | if (radio_v->isChecked()) |
|
464 | 508 | { |
|
465 | ||
|
509 | if(this->logFileV->isOpen()) this->logFileV->close(); | |
|
510 | this->logFileV->setFileName( prefix + "_V.data"); | |
|
511 | if(this->logFileV->open(QIODevice::WriteOnly)) this->logFileStrmV = new QTextStream(this->logFileV); | |
|
512 | storageEnabledV = true; | |
|
466 | 513 | } |
|
467 | 514 | if (radio_e1->isChecked()) |
|
468 | 515 | { |
|
469 | ||
|
516 | if(this->logFileE1->isOpen()) this->logFileE1->close(); | |
|
517 | this->logFileE1->setFileName( prefix + "_E1.data"); | |
|
518 | if(this->logFileE1->open(QIODevice::WriteOnly)) this->logFileStrmE1 = new QTextStream(this->logFileE1); | |
|
519 | storageEnabledE1 = true; | |
|
470 | 520 | } |
|
471 | 521 | if (radio_e2->isChecked()) |
|
472 | 522 | { |
|
473 | ||
|
523 | if(this->logFileE2->isOpen()) this->logFileE2->close(); | |
|
524 | this->logFileE2->setFileName( prefix + "_E2.data"); | |
|
525 | if(this->logFileE2->open(QIODevice::WriteOnly)) this->logFileStrmE2 = new QTextStream(this->logFileE2); | |
|
526 | storageEnabledE2 = true; | |
|
474 | 527 | } |
|
475 | 528 | if (radio_b1->isChecked()) |
|
476 | 529 | { |
@@ -486,42 +539,6 void WFPage::buildFileNames() | |||
|
486 | 539 | } |
|
487 | 540 | } |
|
488 | 541 | |
|
489 | void WFPage::chooseLogFile() | |
|
490 | { | |
|
491 | QString date; | |
|
492 | QString time; | |
|
493 | ||
|
494 | date = QDate::currentDate().toString(); | |
|
495 | time = QTime::currentTime().toString(); | |
|
496 | ||
|
497 | if(this->logFile->isOpen()) | |
|
498 | { | |
|
499 | this->logFile->close(); | |
|
500 | } | |
|
501 | ||
|
502 | /*this->logFile->setFileName(QDir::homePath() | |
|
503 | + "/" | |
|
504 | + QDate::currentDate().toString() | |
|
505 | + "_" | |
|
506 | + QTime::currentTime().toString() | |
|
507 | + "_rmapPluginUI.log", | |
|
508 | tr("Log Files (*.txt *.log)"));*/ | |
|
509 | this->logFile->setFileName(QFileDialog::getSaveFileName(this,tr("Open Log file"), | |
|
510 | QDir::homePath() | |
|
511 | + "/" | |
|
512 | + QDate::currentDate().toString() | |
|
513 | + "_" | |
|
514 | + QTime::currentTime().toString() | |
|
515 | + "_rmapPluginUI.log", | |
|
516 | tr("Log Files (*.txt *.log)"))); | |
|
517 | ||
|
518 | if(this->logFile->open(QIODevice::WriteOnly)) | |
|
519 | { | |
|
520 | this->logFileStrm = new QTextStream(this->logFile); | |
|
521 | emit this->setLogFileName(this->logFile->fileName()); | |
|
522 | } | |
|
523 | } | |
|
524 | ||
|
525 | 542 | void WFPage::logFileEnDisable(bool state) |
|
526 | 543 | { |
|
527 | 544 | if(state==true) |
@@ -555,5 +572,26 void WFPage::closeEvent(QCloseEvent *eve | |||
|
555 | 572 | this->logFile->waitForBytesWritten(3000); |
|
556 | 573 | this->logFile->close(); |
|
557 | 574 | } |
|
575 | writeSettings(); | |
|
558 | 576 | event->accept(); |
|
559 | 577 | } |
|
578 | ||
|
579 | void WFPage::readSettings() | |
|
580 | { | |
|
581 | QSettings settings("lpp", "lfrsgse"); | |
|
582 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); | |
|
583 | } | |
|
584 | ||
|
585 | void WFPage::writeSettings() | |
|
586 | { | |
|
587 | QSettings settings("lpp", "lfrsgse"); | |
|
588 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); | |
|
589 | } | |
|
590 | ||
|
591 | void WFPage::chooseDir() | |
|
592 | { | |
|
593 | defaultStorageDirectory = QFileDialog::getExistingDirectory(this, | |
|
594 | "choose the directory", | |
|
595 | QDir::homePath(), | |
|
596 | QFileDialog::ShowDirsOnly); | |
|
597 | } |
@@ -12,6 +12,7 | |||
|
12 | 12 | #include <QFile> |
|
13 | 13 | #include <QTextStream> |
|
14 | 14 | #include <QFileDialog> |
|
15 | #include <QSettings> | |
|
15 | 16 | |
|
16 | 17 | #include <wfplot.h> |
|
17 | 18 | #include <wfdisplay_params.h> |
@@ -27,13 +28,28 public: | |||
|
27 | 28 | void unTabify(); |
|
28 | 29 | void tabify(); |
|
29 | 30 | // STORE |
|
30 | void chooseLogFile(); | |
|
31 | 31 | void buildFileNames(); |
|
32 | 32 | bool islogfileenable(); |
|
33 | 33 | void appendToLogFile(const QString & text); |
|
34 | 34 | void closeEvent(QCloseEvent *event); |
|
35 | void readSettings(); | |
|
36 | void writeSettings(); | |
|
37 | ||
|
38 | bool logFileEn; | |
|
39 | bool storageEnabledV; | |
|
40 | bool storageEnabledE1; | |
|
41 | bool storageEnabledE2; | |
|
42 | bool storageEnabledB1; | |
|
43 | bool storageEnabledB2; | |
|
44 | bool storageEnabledB3; | |
|
35 | 45 | |
|
36 | 46 | QLabel *logFileName; |
|
47 | QLabel *logFileNameV; | |
|
48 | QLabel *logFileNameE1; | |
|
49 | QLabel *logFileNameE2; | |
|
50 | QLabel *logFileNameB1; | |
|
51 | QLabel *logFileNameB2; | |
|
52 | QLabel *logFileNameB3; | |
|
37 | 53 | |
|
38 | 54 | QWidget *titleWidgetV; |
|
39 | 55 | QWidget *titleWidgetE1; |
@@ -61,6 +77,7 public: | |||
|
61 | 77 | |
|
62 | 78 | QPushButton *button_selectAll; |
|
63 | 79 | QPushButton *button_storeWfrm; |
|
80 | QPushButton *button_chooseDir; | |
|
64 | 81 | |
|
65 | 82 | QToolBar *myToolBar; |
|
66 | 83 | |
@@ -87,7 +104,10 public: | |||
|
87 | 104 | QTextStream *logFileStrmB2; |
|
88 | 105 | QTextStream *logFileStrmB3; |
|
89 | 106 | |
|
90 | bool logFileEn; | |
|
107 | QString pageTitle; | |
|
108 | QString defaultStorageDirectory; | |
|
109 | ||
|
110 | unsigned int localIndex[5]; | |
|
91 | 111 | |
|
92 | 112 | //QGridLayout *mainLayout; |
|
93 | 113 | |
@@ -107,6 +127,7 public slots: | |||
|
107 | 127 | void selectAll(); |
|
108 | 128 | void storeWfrm(); |
|
109 | 129 | void logFileEnDisable(bool state); |
|
130 | void chooseDir(); | |
|
110 | 131 | |
|
111 | 132 | }; |
|
112 | 133 |
@@ -2,7 +2,7 | |||
|
2 | 2 | #include <QFontInfo> |
|
3 | 3 | #include <wfdisplay_params.h> |
|
4 | 4 | |
|
5 | WFPlot::WFPlot(QWidget *parent) : | |
|
5 | WFPlot::WFPlot(QWidget *parent, unsigned int xmax, unsigned int ymax) : | |
|
6 | 6 | QWidget(parent) |
|
7 | 7 | { |
|
8 | 8 | // Create Fonts |
@@ -11,8 +11,8 WFPlot::WFPlot(QWidget *parent) : | |||
|
11 | 11 | customPlot = new LppMonPlot(); |
|
12 | 12 | mainLayout = new QVBoxLayout(); |
|
13 | 13 | |
|
14 |
customPlot->setXaxisRange(0, |
|
|
15 |
customPlot->setYaxisRange(- |
|
|
14 | customPlot->setXaxisRange(0, xmax); | |
|
15 | customPlot->setYaxisRange(-ymax, ymax); | |
|
16 | 16 | //customPlot->setTitleFont(font); |
|
17 | 17 | |
|
18 | 18 | customPlot->addGraph(); |
@@ -38,12 +38,26 void WFPlot::displayOnPlot(short *data, | |||
|
38 | 38 | } |
|
39 | 39 | |
|
40 | 40 | customPlot->setGraphData(0, qListX, qListY); |
|
41 | customPlot->rescaleAxis(); | |
|
42 | customPlot->setGraphName(0, "v"); | |
|
41 | //customPlot->rescaleAxis(); | |
|
42 | } | |
|
43 | ||
|
44 | void WFPlot::displayOnPlotFloat(float *data, unsigned int size) | |
|
45 | { | |
|
46 | QList<QVariant> qListX; | |
|
47 | QList<QVariant> qListY; | |
|
48 | qListX.clear(); | |
|
49 | qListY.clear(); | |
|
50 | ||
|
51 | for (unsigned int i=0; i<size; ++i) | |
|
52 | { | |
|
53 | qListX.append(i); | |
|
54 | qListY.append( (double) data[i] ); | |
|
55 | } | |
|
56 | ||
|
57 | customPlot->setGraphData(0, qListX, qListY); | |
|
58 | //customPlot->rescaleAxis(); | |
|
43 | 59 | } |
|
44 | 60 | |
|
45 | 61 | |
|
46 | 62 | |
|
47 | 63 | |
|
48 | ||
|
49 |
@@ -9,9 +9,10 class WFPlot : public QWidget | |||
|
9 | 9 | { |
|
10 | 10 | Q_OBJECT |
|
11 | 11 | public: |
|
12 | explicit WFPlot(QWidget *parent = 0); | |
|
12 | explicit WFPlot(QWidget *parent = 0, unsigned int xmax = 0, unsigned int ymax = 0); | |
|
13 | 13 | |
|
14 | 14 | void displayOnPlot(short *data, unsigned int size); |
|
15 | void displayOnPlotFloat(float *data, unsigned int size); | |
|
15 | 16 | |
|
16 | 17 | LppMonPlot *customPlot; |
|
17 | 18 | QVBoxLayout *mainLayout; |
General Comments 0
You need to be logged in to leave comments.
Login now