##// END OF EJS Templates
gselesia changed to process CWF_F3 light waveforms...
leroy -
r52:061b27b067a0 default
parent child
Show More
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-10-03T07:18:57. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T09:55:13. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -1,6 +1,6
1 #############################################################################
1 #############################################################################
2 # Makefile for building: lfrsgse
2 # Makefile for building: lfrsgse
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Aug 1 07:46:21 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Thu Oct 10 08:44:30 2013
4 # Project: gselesia.pro
4 # Project: gselesia.pro
5 # Template: app
5 # Template: app
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
@@ -16,7 +16,7 CXXFLAGS = -pipe -O2 -g -pipe -Wall
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/usr/include/lppmon/parameterdump -I.
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/usr/include/lppmon/parameterdump -I.
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lparameterdump -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
20 AR = ar cqs
20 AR = ar cqs
21 RANLIB =
21 RANLIB =
22 QMAKE = /usr/bin/qmake-qt4
22 QMAKE = /usr/bin/qmake-qt4
@@ -54,8 +54,7 SOURCES = main.cpp \
54 ../rmapplugin/spectrapacket.cpp \
54 ../rmapplugin/spectrapacket.cpp \
55 ../common_PLE/qipdialogbox.cpp \
55 ../common_PLE/qipdialogbox.cpp \
56 ../common_PLE/hkdisplay.cpp \
56 ../common_PLE/hkdisplay.cpp \
57 lfrxmlparser.cpp \
57 lfrxmlparser.cpp moc_mainwindow.cpp \
58 lfrspectrogram.cpp moc_mainwindow.cpp \
59 moc_mainwindowui.cpp \
58 moc_mainwindowui.cpp \
60 moc_lfrxmlhandler.cpp \
59 moc_lfrxmlhandler.cpp \
61 moc_lfrxmlwriter.cpp \
60 moc_lfrxmlwriter.cpp \
@@ -65,8 +64,7 SOURCES = main.cpp \
65 moc_spectrapacket.cpp \
64 moc_spectrapacket.cpp \
66 moc_qipdialogbox.cpp \
65 moc_qipdialogbox.cpp \
67 moc_hkdisplay.cpp \
66 moc_hkdisplay.cpp \
68 moc_lfrxmlparser.cpp \
67 moc_lfrxmlparser.cpp
69 moc_lfrspectrogram.cpp
70 OBJECTS = main.o \
68 OBJECTS = main.o \
71 mainwindow.o \
69 mainwindow.o \
72 mainwindowui.o \
70 mainwindowui.o \
@@ -79,7 +77,6 OBJECTS = main.o \
79 qipdialogbox.o \
77 qipdialogbox.o \
80 hkdisplay.o \
78 hkdisplay.o \
81 lfrxmlparser.o \
79 lfrxmlparser.o \
82 lfrspectrogram.o \
83 moc_mainwindow.o \
80 moc_mainwindow.o \
84 moc_mainwindowui.o \
81 moc_mainwindowui.o \
85 moc_lfrxmlhandler.o \
82 moc_lfrxmlhandler.o \
@@ -90,8 +87,7 OBJECTS = main.o \
90 moc_spectrapacket.o \
87 moc_spectrapacket.o \
91 moc_qipdialogbox.o \
88 moc_qipdialogbox.o \
92 moc_hkdisplay.o \
89 moc_hkdisplay.o \
93 moc_lfrxmlparser.o \
90 moc_lfrxmlparser.o
94 moc_lfrspectrogram.o
95 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
91 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
96 /usr/lib64/qt4/mkspecs/common/linux.conf \
92 /usr/lib64/qt4/mkspecs/common/linux.conf \
97 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
93 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
@@ -106,6 +102,7 DIST = /usr/lib64/qt4/mkspecs/c
106 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
102 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
107 /usr/lib64/qt4/mkspecs/features/release.prf \
103 /usr/lib64/qt4/mkspecs/features/release.prf \
108 /usr/lib64/qt4/mkspecs/features/default_post.prf \
104 /usr/lib64/qt4/mkspecs/features/default_post.prf \
105 /usr/lib64/qt4/mkspecs/features/shared.prf \
109 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
106 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
110 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
107 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
111 /usr/lib64/qt4/mkspecs/features/qt.prf \
108 /usr/lib64/qt4/mkspecs/features/qt.prf \
@@ -162,6 +159,7 Makefile: gselesia.pro /usr/lib64/qt4/m
162 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
159 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
163 /usr/lib64/qt4/mkspecs/features/release.prf \
160 /usr/lib64/qt4/mkspecs/features/release.prf \
164 /usr/lib64/qt4/mkspecs/features/default_post.prf \
161 /usr/lib64/qt4/mkspecs/features/default_post.prf \
162 /usr/lib64/qt4/mkspecs/features/shared.prf \
165 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
163 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
166 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
164 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
167 /usr/lib64/qt4/mkspecs/features/qt.prf \
165 /usr/lib64/qt4/mkspecs/features/qt.prf \
@@ -191,6 +189,7 Makefile: gselesia.pro /usr/lib64/qt4/m
191 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
189 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
192 /usr/lib64/qt4/mkspecs/features/release.prf:
190 /usr/lib64/qt4/mkspecs/features/release.prf:
193 /usr/lib64/qt4/mkspecs/features/default_post.prf:
191 /usr/lib64/qt4/mkspecs/features/default_post.prf:
192 /usr/lib64/qt4/mkspecs/features/shared.prf:
194 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
193 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
195 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
194 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
196 /usr/lib64/qt4/mkspecs/features/qt.prf:
195 /usr/lib64/qt4/mkspecs/features/qt.prf:
@@ -210,7 +209,7 qmake: FORCE
210
209
211 dist:
210 dist:
212 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
211 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
213 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/qipdialogbox.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/TC_types.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/qipdialogbox.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
212 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/qipdialogbox.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/TC_types.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.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
214
213
215
214
216 clean:compiler_clean
215 clean:compiler_clean
@@ -231,9 +230,9 mocclean: compiler_moc_header_clean comp
231
230
232 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
231 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
233
232
234 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
233 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
235 compiler_moc_header_clean:
234 compiler_moc_header_clean:
236 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
235 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
237 moc_mainwindow.cpp: lfrxmlhandler.h \
236 moc_mainwindow.cpp: lfrxmlhandler.h \
238 lfrxmlwriter.h \
237 lfrxmlwriter.h \
239 mainwindowui.h \
238 mainwindowui.h \
@@ -273,9 +272,6 moc_hkdisplay.cpp: ../common_PLE/hkdispl
273 moc_lfrxmlparser.cpp: lfrxmlparser.h
272 moc_lfrxmlparser.cpp: lfrxmlparser.h
274 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp
273 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp
275
274
276 moc_lfrspectrogram.cpp: lfrspectrogram.h
277 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp
278
279 compiler_rcc_make_all:
275 compiler_rcc_make_all:
280 compiler_rcc_clean:
276 compiler_rcc_clean:
281 compiler_image_collection_make_all: qmake_image_collection.cpp
277 compiler_image_collection_make_all: qmake_image_collection.cpp
@@ -342,9 +338,6 hkdisplay.o: ../common_PLE/hkdisplay.cpp
342 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h
338 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h
343 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp
339 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp
344
340
345 lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h
346 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp
347
348 moc_mainwindow.o: moc_mainwindow.cpp
341 moc_mainwindow.o: moc_mainwindow.cpp
349 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
342 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
350
343
@@ -378,9 +371,6 moc_hkdisplay.o: moc_hkdisplay.cpp
378 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
371 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
379 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp
372 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp
380
373
381 moc_lfrspectrogram.o: moc_lfrspectrogram.cpp
382 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp
383
384 ####### Install
374 ####### Install
385
375
386 install: FORCE
376 install: FORCE
@@ -20,7 +20,7 INCLUDEPATH += \
20 $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \
20 $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \
21 $$[QT_INSTALL_HEADERS]/lppmon/parameterdump
21 $$[QT_INSTALL_HEADERS]/lppmon/parameterdump
22
22
23 LIBS += -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump
23 LIBS += -llppmoncommon -lwfdisplay -lparameterdump
24
24
25 SOURCES += main.cpp\
25 SOURCES += main.cpp\
26 mainwindow.cpp \
26 mainwindow.cpp \
@@ -33,8 +33,7 SOURCES += main.cpp\
33 ../rmapplugin/spectrapacket.cpp \
33 ../rmapplugin/spectrapacket.cpp \
34 ../common_PLE/qipdialogbox.cpp \
34 ../common_PLE/qipdialogbox.cpp \
35 ../common_PLE/hkdisplay.cpp \
35 ../common_PLE/hkdisplay.cpp \
36 lfrxmlparser.cpp \
36 lfrxmlparser.cpp
37 lfrspectrogram.cpp
38
37
39 HEADERS += mainwindow.h \
38 HEADERS += mainwindow.h \
40 mainwindowui.h \
39 mainwindowui.h \
@@ -49,8 +48,7 HEADERS += mainwindow.h \
49 ../rmapplugin/params.h \
48 ../rmapplugin/params.h \
50 ../../DEV_PLE/header/TC_types.h \
49 ../../DEV_PLE/header/TC_types.h \
51 ../../DEV_PLE/header/ccsds_types.h \
50 ../../DEV_PLE/header/ccsds_types.h \
52 lfrxmlparser.h \
51 lfrxmlparser.h
53 lfrspectrogram.h
54
52
55
53
56
54
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-09-23T12:59:08. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T14:18:06. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -306,7 +306,7 void MainWindow::buildWFAndDisplay_CWF_F
306 }
306 }
307 }
307 }
308
308
309 void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket)
309 void MainWindow::buildWFAndDisplay_CWF_F3_light(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
310 {
310 {
311 unsigned int i = 0;
311 unsigned int i = 0;
312 unsigned int j = 0;
312 unsigned int j = 0;
@@ -318,27 +318,27 void MainWindow::buildWFAndDisplayBurst(
318 data = &packet->Value[30]; // start of the first data block;
318 data = &packet->Value[30]; // start of the first data block;
319 j = (pkt_nr-1) * 340;
319 j = (pkt_nr-1) * 340;
320 for ( i=0; i<blk_nr; i++ ){
320 for ( i=0; i<blk_nr; i++ ){
321 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
321 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) ] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 1]) );
322 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
322 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) + 2] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 3]) );
323 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
323 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) + 4] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 5]) );
324 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
324 wfPacket->wf_b1[j + i] = 0;
325 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
325 wfPacket->wf_b2[j + i] = 0;
326 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
326 wfPacket->wf_b3[j + i] = 0;
327 }
327 }
328 pkt_nr = pkt_nr + 1;
328 pkt_nr = pkt_nr + 1;
329 if (blk_nr == 8)
329 if (blk_nr == 8)
330 {
330 {
331 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0);
331 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
332 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1);
332 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
333 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2);
333 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
334 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3);
334 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
335 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4);
335 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
336 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5);
336 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
337 pkt_nr = 1;
337 pkt_nr = 1;
338 }
338 }
339 }
339 }
340
340
341 void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket)
341 void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket)
342 {
342 {
343 unsigned int i = 0;
343 unsigned int i = 0;
344 unsigned int j = 0;
344 unsigned int j = 0;
@@ -360,6 +360,84 void MainWindow::buildWFAndDisplaySBM1(T
360 pkt_nr = pkt_nr + 1;
360 pkt_nr = pkt_nr + 1;
361 if (blk_nr == 8)
361 if (blk_nr == 8)
362 {
362 {
363 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0);
364 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1);
365 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2);
366 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3);
367 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4);
368 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5);
369 pkt_nr = 1;
370 }
371 }
372
373 void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket)
374 {
375 unsigned int i = 0;
376 unsigned int j = 0;
377 unsigned char *data;
378 unsigned char *pData;
379 static unsigned char pkt_nr = 1;
380 unsigned int blk_nr = 0;
381
382 blk_nr = packet->Value[28] * 256 + packet->Value[29];
383 data = &packet->Value[30]; // start of the first data block;
384 j = (pkt_nr-1) * 340;
385 for ( i=0; i<blk_nr; i++ ){
386 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
387 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
388 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
389 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
390 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
391 // wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
392 pData = (unsigned char*) &wfPacket->wf_b3[j + i];
393 pData[0] = data[ (i*BLK_SIZE) + 11];
394 pData[1] = data[ (i*BLK_SIZE) + 10];
395 }
396 pkt_nr = pkt_nr + 1;
397 if (blk_nr == 8)
398 {
399 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
400 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
401 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
402 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3);
403 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4);
404 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5);
405 pkt_nr = 1;
406 }
407 }
408
409 void MainWindow::buildWFAndDisplaySBM1_alt(TMPacketToRead *packet, WFPacket *wfPacket)
410 {
411 unsigned int i = 0;
412 unsigned int j = 0;
413 unsigned char segmentationGroupingFlag;
414 unsigned char *data;
415 static unsigned char pkt_nr = 1;
416 unsigned int blk_nr = 0;
417
418 segmentationGroupingFlag = this->UI->tmStatistics->getSegmentationGroupingFlag( packet );
419 blk_nr = packet->Value[28] * 256 + packet->Value[29];
420 data = &packet->Value[30]; // start of the first data block;
421
422 if (segmentationGroupingFlag == 1) // first packet of the sequence
423 {
424 pkt_nr = 1;
425 }
426 else // continuation packet or last packet
427 {
428 pkt_nr = pkt_nr + 1;
429 }
430 j = (pkt_nr-1) * 340;
431 for ( i=0; i<blk_nr; i++ ){
432 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
433 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
434 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
435 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
436 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
437 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
438 }
439 if (segmentationGroupingFlag == 2) // last packet of the sequence
440 {
363 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
441 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
364 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
442 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
365 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
443 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
@@ -507,14 +585,16 void MainWindow::preProcessPacket(TMPack
507
585
508 //***************************************************
586 //***************************************************
509 // if the packet is an HK packet, display its content
587 // if the packet is an HK packet, display its content
510 if ( (pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) )
588 if ( (pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
589 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) )
511 {
590 {
512 this->UI->hkDisplay->displayPacket(packet);
591 this->UI->hkDisplay->displayPacket(packet);
513 }
592 }
514
593
515 //**************************************************************
594 //**************************************************************
516 // if the packet is a parameter dump packet, display its content
595 // if the packet is a parameter dump packet, display its content
517 if ( (pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) )
596 if ( (pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
597 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) )
518 {
598 {
519 this->UI->parameterDump->updateParameterDump(packet);
599 this->UI->parameterDump->updateParameterDump(packet);
520 }
600 }
@@ -523,7 +603,7 void MainWindow::preProcessPacket(TMPack
523 // if the packet is a waveform, display it
603 // if the packet is a waveform, display it
524 if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) )
604 if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) )
525 {
605 {
526 sid = packet->Value[20]; // SID
606 //sid = packet->Value[20]; // SID
527 switch (sid){
607 switch (sid){
528 case SID_NORMAL_SWF_F0:
608 case SID_NORMAL_SWF_F0:
529 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
609 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
@@ -535,13 +615,14 void MainWindow::preProcessPacket(TMPack
535 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
615 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
536 break;
616 break;
537 case SID_NORMAL_CWF_F3:
617 case SID_NORMAL_CWF_F3:
538 buildWFAndDisplay_CWF_F3(packet, &wfPacketNormal[3], 3);
618 //buildWFAndDisplay_CWF_F3(packet, &wfPacketNormal[3], 3);
619 buildWFAndDisplay_CWF_F3_light(packet, &wfPacketNormal[3], 3);
539 break;
620 break;
540 case SID_BURST_CWF_F2:
621 case SID_BURST_CWF_F2:
541 buildWFAndDisplayBurst(packet, &wfPacketBurst);
622 buildWFAndDisplayBurst(packet, &wfPacketBurst);
542 break;
623 break;
543 case SID_SBM1_CWF_F1:
624 case SID_SBM1_CWF_F1:
544 buildWFAndDisplaySBM1(packet, &wfPacketSBM1);
625 buildWFAndDisplaySBM1_alt(packet, &wfPacketSBM1);
545 break;
626 break;
546 case SID_SBM2_CWF_F2:
627 case SID_SBM2_CWF_F2:
547 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
628 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
@@ -38,8 +38,10 public:
38 //
38 //
39 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
39 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
40 void buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
40 void buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
41 void buildWFAndDisplay_CWF_F3_light(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
41 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
42 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
42 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
43 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
44 void buildWFAndDisplaySBM1_alt(TMPacketToRead *packet, WFPacket *wfPacket);
43 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
45 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
44 void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket);
46 void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket);
45
47
@@ -36,7 +36,6 MainWindowUI::MainWindowUI(QWidget *pare
36 wfPageSBM2->pageTitle = "SBM2_CWF_F2";
36 wfPageSBM2->pageTitle = "SBM2_CWF_F2";
37 pageSpectraNORM->pageTitle = "ASM f0";
37 pageSpectraNORM->pageTitle = "ASM f0";
38 hkDisplay = new HKDisplay();
38 hkDisplay = new HKDisplay();
39 lfrSpectrogam = new LFRSpectrogram();
40
39
41 spinbox_TMServerPort = new QSpinBox();
40 spinbox_TMServerPort = new QSpinBox();
42 spinbox_TCServerPort = new QSpinBox();
41 spinbox_TCServerPort = new QSpinBox();
@@ -18,7 +18,6
18
18
19 #include "tmstatistics.h"
19 #include "tmstatistics.h"
20 #include "hkdisplay.h"
20 #include "hkdisplay.h"
21 #include "lfrspectrogram.h"
22
21
23 class MainWindowUI : public QWidget
22 class MainWindowUI : public QWidget
24 {
23 {
@@ -50,7 +49,6 public:
50 WFPage* wfPageSBM2;
49 WFPage* wfPageSBM2;
51 PageSpectra* pageSpectraNORM;
50 PageSpectra* pageSpectraNORM;
52 HKDisplay* hkDisplay;
51 HKDisplay* hkDisplay;
53 LFRSpectrogram* lfrSpectrogam;
54
52
55 QWidget* widget_spectrogram;
53 QWidget* widget_spectrogram;
56
54
@@ -24,14 +24,11 void ParameterDump::buildTabParameterDum
24 layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1);
24 layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1);
25 layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1);
25 layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1);
26 layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1);
26 layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1);
27 layout_parameterDump->addWidget(groupbox_ACTIONS, 1, 1, 1, 1);
27 layout_parameterDump->addWidget(groupbox_SBM1, 1 , 1, 1, 1);
28 layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1);
28 layout_parameterDump->addWidget(groupbox_SBM2, 2, 0, 1, 1);
29 layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1);
29 layout_parameterDump->addWidget(button_parameterDump, 2, 1, 1, 1);
30
30
31 layout_parameterDump->setRowStretch(3, 1);
31 layout_parameterDump->setRowStretch(2, 1);
32 layout_parameterDump->setColumnStretch(2, 1);
33
34 layout_parameterDump->setRowStretch(3, 1);
35 layout_parameterDump->setColumnStretch(2, 1);
32 layout_parameterDump->setColumnStretch(2, 1);
36 }
33 }
37
34
@@ -52,6 +49,10 void ParameterDump::buildCOMM()
52 spinbox_sy_lfr_r0 = new QSpinBox();
49 spinbox_sy_lfr_r0 = new QSpinBox();
53 spinbox_sy_lfr_r1 = new QSpinBox();
50 spinbox_sy_lfr_r1 = new QSpinBox();
54
51
52 button_loadCommon = new QPushButton(tr("LOAD_COMM"));
53
54 button_loadCommon->setEnabled(false);
55
55 spinbox_sy_lfr_bw->setRange(0, 1);
56 spinbox_sy_lfr_bw->setRange(0, 1);
56 spinbox_sy_lfr_sp0->setRange(0, 1);
57 spinbox_sy_lfr_sp0->setRange(0, 1);
57 spinbox_sy_lfr_sp1->setRange(0, 1);
58 spinbox_sy_lfr_sp1->setRange(0, 1);
@@ -64,22 +65,25 void ParameterDump::buildCOMM()
64 spinbox_sy_lfr_r0->setValue(0);
65 spinbox_sy_lfr_r0->setValue(0);
65 spinbox_sy_lfr_r1->setValue(0);
66 spinbox_sy_lfr_r1->setValue(0);
66
67
67 layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1);
68 layout_COMM->addWidget(button_loadCommon, 0, 0, 1, 2);
68 layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1);
69 layout_COMM->addWidget(sy_lfr_bw, 1, 0, 1, 1);
69 layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1);
70 layout_COMM->addWidget(sy_lfr_sp0, 2, 0, 1, 1);
70 layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1);
71 layout_COMM->addWidget(sy_lfr_sp1, 3, 0, 1, 1);
71 layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1);
72 layout_COMM->addWidget(sy_lfr_r0, 4, 0, 1, 1);
73 layout_COMM->addWidget(sy_lfr_r1, 5, 0, 1, 1);
72
74
73 layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1);
75 layout_COMM->addWidget(spinbox_sy_lfr_bw, 1, 1, 1, 1);
74 layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1);
76 layout_COMM->addWidget(spinbox_sy_lfr_sp0, 2, 1, 1, 1);
75 layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1);
77 layout_COMM->addWidget(spinbox_sy_lfr_sp1, 3, 1, 1, 1);
76 layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1);
78 layout_COMM->addWidget(spinbox_sy_lfr_r0, 4, 1, 1, 1);
77 layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1);
79 layout_COMM->addWidget(spinbox_sy_lfr_r1, 5, 1, 1, 1);
78
80
79 layout_COMM->setColumnStretch(2, 1);
81 layout_COMM->setColumnStretch(2, 1);
80 layout_COMM->setRowStretch(5, 1);
82 layout_COMM->setRowStretch(6, 1);
81
83
82 groupbox_COMM->setLayout(layout_COMM);
84 groupbox_COMM->setLayout(layout_COMM);
85
86 connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon()));
83 }
87 }
84
88
85 void ParameterDump::buildNORM()
89 void ParameterDump::buildNORM()
@@ -99,6 +103,10 void ParameterDump::buildNORM()
99 spinbox_sy_lfr_n_bp_p0 = new QSpinBox();
103 spinbox_sy_lfr_n_bp_p0 = new QSpinBox();
100 spinbox_sy_lfr_n_bp_p1 = new QSpinBox();
104 spinbox_sy_lfr_n_bp_p1 = new QSpinBox();
101
105
106 button_loadNormal = new QPushButton(tr("LOAD_NORM"));
107
108 button_loadNormal->setEnabled(false);
109
102 spinbox_sy_lfr_n_swf_l->setRange(256, 65535);
110 spinbox_sy_lfr_n_swf_l->setRange(256, 65535);
103 spinbox_sy_lfr_n_swf_p->setRange(16, 65535);
111 spinbox_sy_lfr_n_swf_p->setRange(16, 65535);
104 spinbox_sy_lfr_n_asm_p->setRange(2, 65535);
112 spinbox_sy_lfr_n_asm_p->setRange(2, 65535);
@@ -111,22 +119,25 void ParameterDump::buildNORM()
111 spinbox_sy_lfr_n_bp_p0->setValue(4);
119 spinbox_sy_lfr_n_bp_p0->setValue(4);
112 spinbox_sy_lfr_n_bp_p1->setValue(20);
120 spinbox_sy_lfr_n_bp_p1->setValue(20);
113
121
114 layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1);
122 layout_NORM->addWidget(button_loadNormal, 0, 0, 1, 2);
115 layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1);
123 layout_NORM->addWidget(sy_lfr_n_swf_l, 1, 0, 1, 1);
116 layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1);
124 layout_NORM->addWidget(sy_lfr_n_swf_p, 2, 0, 1, 1);
117 layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1);
125 layout_NORM->addWidget(sy_lfr_n_asm_p, 3, 0, 1, 1);
118 layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1);
126 layout_NORM->addWidget(sy_lfr_n_bp_p0, 4, 0, 1, 1);
127 layout_NORM->addWidget(sy_lfr_n_bp_p1, 5, 0, 1, 1);
119
128
120 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1);
129 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 1, 1, 1, 1);
121 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1);
130 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 2, 1, 1, 1);
122 layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1);
131 layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 3, 1, 1, 1);
123 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1);
132 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 4, 1, 1, 1);
124 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1);
133 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 5, 1, 1, 1);
125
134
126 layout_NORM->setColumnStretch(2, 1);
135 layout_NORM->setColumnStretch(2, 1);
127 layout_NORM->setRowStretch(5, 1);
136 layout_NORM->setRowStretch(6, 1);
128
137
129 groupbox_NORM->setLayout(layout_NORM);
138 groupbox_NORM->setLayout(layout_NORM);
139
140 connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal()));
130 }
141 }
131
142
132 void ParameterDump::buildBURST()
143 void ParameterDump::buildBURST()
@@ -140,18 +151,26 void ParameterDump::buildBURST()
140 spinbox_sy_lfr_b_bp_p0 = new QSpinBox();
151 spinbox_sy_lfr_b_bp_p0 = new QSpinBox();
141 spinbox_sy_lfr_b_bp_p1 = new QSpinBox();
152 spinbox_sy_lfr_b_bp_p1 = new QSpinBox();
142
153
154 button_loadBurst = new QPushButton(tr("LOAD_BURST"));
155
156 button_loadBurst->setEnabled(false);
157
143 spinbox_sy_lfr_b_bp_p0->setRange(1, 255);
158 spinbox_sy_lfr_b_bp_p0->setRange(1, 255);
144 spinbox_sy_lfr_b_bp_p1->setRange(5, 255);
159 spinbox_sy_lfr_b_bp_p1->setRange(5, 255);
145
160
146 layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1);
161 layout_BURST->addWidget(button_loadBurst, 0, 0, 1, 2);
147 layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1);
162 layout_BURST->addWidget(sy_lfr_b_bp_p0, 1, 0, 1, 1);
148 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1);
163 layout_BURST->addWidget(sy_lfr_b_bp_p1, 2, 0, 1, 1);
149 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1);
164
165 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 1, 1, 1, 1);
166 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 2, 1, 1, 1);
150
167
151 layout_BURST->setColumnStretch(2, 1);
168 layout_BURST->setColumnStretch(2, 1);
152 layout_BURST->setRowStretch(3, 1);
169 layout_BURST->setRowStretch(3, 1);
153
170
154 groupbox_BURST->setLayout(layout_BURST);
171 groupbox_BURST->setLayout(layout_BURST);
172
173 connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst()));
155 }
174 }
156
175
157 void ParameterDump::buildSBM1()
176 void ParameterDump::buildSBM1()
@@ -165,20 +184,28 void ParameterDump::buildSBM1()
165 spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox();
184 spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox();
166 spinbox_sy_lfr_s1_bp_p1 = new QSpinBox();
185 spinbox_sy_lfr_s1_bp_p1 = new QSpinBox();
167
186
187 button_loadSBM1 = new QPushButton(tr("LOAD_SBM1"));
188
189 button_loadSBM1->setEnabled(false);
190
168 spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256);
191 spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256);
169 spinbox_sy_lfr_b_bp_p0->setValue(0.25);
192 spinbox_sy_lfr_b_bp_p0->setValue(0.25);
170 spinbox_sy_lfr_s1_bp_p1->setRange(1, 255);
193 spinbox_sy_lfr_s1_bp_p1->setRange(1, 255);
171 spinbox_sy_lfr_b_bp_p1->setValue(1);
194 spinbox_sy_lfr_b_bp_p1->setValue(1);
172
195
173 layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1);
196 layout_SBM1->addWidget(button_loadSBM1, 0, 0, 1, 2);
174 layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1);
197 layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 1, 0, 1, 1);
175 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1);
198 layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 2, 0, 1, 1);
176 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1);
199
200 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 1, 1, 1, 1);
201 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 2, 1, 1, 1);
177
202
178 layout_SBM1->setColumnStretch(2, 1);
203 layout_SBM1->setColumnStretch(2, 1);
179 layout_SBM1->setRowStretch(3, 1);
204 layout_SBM1->setRowStretch(3, 1);
180
205
181 groupbox_SBM1->setLayout(layout_SBM1);
206 groupbox_SBM1->setLayout(layout_SBM1);
207
208 connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1()));
182 }
209 }
183
210
184 void ParameterDump::buildSBM2()
211 void ParameterDump::buildSBM2()
@@ -192,54 +219,36 void ParameterDump::buildSBM2()
192 spinbox_sy_lfr_s2_bp_p0 = new QSpinBox();
219 spinbox_sy_lfr_s2_bp_p0 = new QSpinBox();
193 spinbox_sy_lfr_s2_bp_p1 = new QSpinBox();
220 spinbox_sy_lfr_s2_bp_p1 = new QSpinBox();
194
221
222 button_loadSBM2 = new QPushButton(tr("LOAD_SBM2"));
223
224 button_loadSBM2->setEnabled(false);
225
195 spinbox_sy_lfr_s2_bp_p0->setRange(1, 255);
226 spinbox_sy_lfr_s2_bp_p0->setRange(1, 255);
196 spinbox_sy_lfr_s2_bp_p1->setRange(5, 255);
227 spinbox_sy_lfr_s2_bp_p1->setRange(5, 255);
197
228
198 layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1);
229 layout_SBM2->addWidget(button_loadSBM2, 0, 0, 1, 2);
199 layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1);
230
200 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1);
231 layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 1, 0, 1, 1);
201 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1);
232 layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 2, 0, 1, 1);
233
234 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 1, 1, 1, 1);
235 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 2, 1, 1, 1);
202
236
203 layout_SBM2->setColumnStretch(2, 1);
237 layout_SBM2->setColumnStretch(2, 1);
204 layout_SBM2->setRowStretch(3, 1);
238 layout_SBM2->setRowStretch(3, 1);
205
239
206 groupbox_SBM2->setLayout(layout_SBM2);
240 groupbox_SBM2->setLayout(layout_SBM2);
241
242 connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2()));
207 }
243 }
208
244
209 void ParameterDump::buildActions()
245 void ParameterDump::buildActions()
210 {
246 {
211 groupbox_ACTIONS = new QGroupBox(tr("LOAD / DUMP"));
212 layout_ACTIONS = new QGridLayout;
213
214 button_loadCommon = new QPushButton(tr("LOAD_COMM"));
215 button_loadNormal = new QPushButton(tr("LOAD_NORM"));
216 button_loadBurst = new QPushButton(tr("LOAD_BURST"));
217 button_loadSBM1 = new QPushButton(tr("LOAD_SBM1"));
218 button_loadSBM2 = new QPushButton(tr("LOAD_SBM2"));
219 button_parameterDump = new QPushButton(tr("DUMP_PAR"));
247 button_parameterDump = new QPushButton(tr("DUMP_PAR"));
220
248
221 button_loadCommon->setEnabled(false);
222 button_loadNormal->setEnabled(false);
223 button_loadBurst->setEnabled(false);
224 button_loadSBM1->setEnabled(false);
225 button_loadSBM2->setEnabled(false);
226 button_parameterDump->setEnabled(false);
249 button_parameterDump->setEnabled(false);
227
250
228 layout_ACTIONS->addWidget(button_loadCommon, 0, 0, 1, 1);
229 layout_ACTIONS->addWidget(button_loadNormal, 0, 1, 1, 1);
230 layout_ACTIONS->addWidget(button_loadBurst, 1, 0, 1, 1);
231 layout_ACTIONS->addWidget(button_parameterDump, 1, 1, 1, 1);
232 layout_ACTIONS->addWidget(button_loadSBM1, 2, 0, 1, 1);
233 layout_ACTIONS->addWidget(button_loadSBM2, 2, 1, 1, 1);
234
235 groupbox_ACTIONS->setLayout(layout_ACTIONS);
236
237 connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump()));
251 connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump()));
238 connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon()));
239 connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal()));
240 connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst()));
241 connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1()));
242 connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2()));
243 }
252 }
244
253
245 void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead)
254 void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead)
@@ -38,7 +38,6 public:
38 QGroupBox* groupbox_BURST;
38 QGroupBox* groupbox_BURST;
39 QGroupBox* groupbox_SBM1;
39 QGroupBox* groupbox_SBM1;
40 QGroupBox* groupbox_SBM2;
40 QGroupBox* groupbox_SBM2;
41 QGroupBox* groupbox_ACTIONS;
42
41
43 QGridLayout* layout_parameterDump;
42 QGridLayout* layout_parameterDump;
44 QGridLayout* layout_COMM;
43 QGridLayout* layout_COMM;
@@ -46,7 +45,6 public:
46 QGridLayout* layout_BURST;
45 QGridLayout* layout_BURST;
47 QGridLayout* layout_SBM1;
46 QGridLayout* layout_SBM1;
48 QGridLayout* layout_SBM2;
47 QGridLayout* layout_SBM2;
49 QGridLayout* layout_ACTIONS;
50
48
51 QPushButton* button_loadCommon;
49 QPushButton* button_loadCommon;
52 QPushButton* button_loadNormal;
50 QPushButton* button_loadNormal;
@@ -6,6 +6,7
6 #define FONT_SIZE_WAVEFORM_TITLE 10
6 #define FONT_SIZE_WAVEFORM_TITLE 10
7 #define DEFAULT_SIZE 2048
7 #define DEFAULT_SIZE 2048
8 #define BLK_SIZE 12
8 #define BLK_SIZE 12
9 #define BLK_SIZE_CWF3_LIGHT 6
9
10
10 //****************
11 //****************
11 // TM packets SIDs
12 // TM packets SIDs
@@ -614,6 +614,15 unsigned char TMStatistics::getCAT(TMPac
614 return cat;
614 return cat;
615 }
615 }
616
616
617 unsigned char TMStatistics::getSegmentationGroupingFlag(TMPacketToRead *packet)
618 {
619 unsigned char segmentationGroupingFlag;
620
621 segmentationGroupingFlag = (unsigned char) (packet->Value[6] >> 6);
622
623 return segmentationGroupingFlag;
624 }
625
617 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
626 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
618 {
627 {
619 unsigned char typ = 0;
628 unsigned char typ = 0;
@@ -688,13 +697,10 unsigned int TMStatistics::getSID(TMPack
688
697
689 if (logFileEn == true)
698 if (logFileEn == true)
690 {
699 {
691 packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex();
700 // packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4));
692 *(this->logFileStrm)
701 logFile->write((char *) &packet->Value[4], (packet->size-4));
693 << QDate::currentDate().toString() + " "
702 // *(this->logFileStrm)
694 << QTime::currentTime().toString() << endl
703 // << packetAsAnArray;
695 << packetAsAnArray
696 << endl
697 << endl;
698 }
704 }
699
705
700 if (packetLogFileEn == true)
706 if (packetLogFileEn == true)
@@ -722,14 +728,22 unsigned int TMStatistics::getSID(TMPack
722
728
723 void TMStatistics::buildFileName()
729 void TMStatistics::buildFileName()
724 {
730 {
725 QString date;
731 QTime time;
726 QString time;
732 QDate date;
733 QString dateTime;
727 QString prefix;
734 QString prefix;
728
735
729 date = QDate::currentDate().toString();
736 date = QDate::currentDate();
730 time = QTime::currentTime().toString();
737 time = QTime::currentTime();
731
738
732 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
739 dateTime = QString::number( date.year() ) + "_"
740 + QString::number( date.month() ) + "_"
741 + QString::number( date.day() ) + "-"
742 + QString::number( time.hour() ) + "_"
743 + QString::number( time.minute() ) + "_"
744 + QString::number( time.second() );
745
746 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
733
747
734 if(this->logFile->isOpen()) this->logFile->close();
748 if(this->logFile->isOpen()) this->logFile->close();
735 this->logFile->setFileName( prefix + "packet_record.data");
749 this->logFile->setFileName( prefix + "packet_record.data");
@@ -738,14 +752,22 void TMStatistics::buildFileName()
738
752
739 void TMStatistics::buildPacketLogFileName()
753 void TMStatistics::buildPacketLogFileName()
740 {
754 {
741 QString date;
755 QTime time;
742 QString time;
756 QDate date;
757 QString dateTime;
743 QString prefix;
758 QString prefix;
744
759
745 date = QDate::currentDate().toString();
760 date = QDate::currentDate();
746 time = QTime::currentTime().toString();
761 time = QTime::currentTime();
747
762
748 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
763 dateTime = QString::number( date.year() ) + "_"
764 + QString::number( date.month() ) + "_"
765 + QString::number( date.day() ) + "-"
766 + QString::number( time.hour() ) + "_"
767 + QString::number( time.minute() ) + "_"
768 + QString::number( time.second() );
769
770 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
749
771
750 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
772 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
751 this->packetLogFile->setFileName( prefix + "packet_log.data");
773 this->packetLogFile->setFileName( prefix + "packet_log.data");
@@ -33,6 +33,7 public:
33 void preProcessPacket(TMPacketToRead *packet);
33 void preProcessPacket(TMPacketToRead *packet);
34 unsigned char getPID(TMPacketToRead *packet);
34 unsigned char getPID(TMPacketToRead *packet);
35 unsigned char getCAT(TMPacketToRead *packet);
35 unsigned char getCAT(TMPacketToRead *packet);
36 unsigned char getSegmentationGroupingFlag(TMPacketToRead *Packet_TM_LFR_HK_str);
36 unsigned char getTYPE(TMPacketToRead *packet);
37 unsigned char getTYPE(TMPacketToRead *packet);
37 unsigned char getSUBTYPE(TMPacketToRead *packet);
38 unsigned char getSUBTYPE(TMPacketToRead *packet);
38 unsigned int getLENGTH(TMPacketToRead *packet);
39 unsigned int getLENGTH(TMPacketToRead *packet);
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-08-01T09:15:42. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-08T12:38:17. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
General Comments 0
You need to be logged in to leave comments. Login now