##// END OF EJS Templates
waveform display added for the normal mode...
leroy -
r19:7f565009af54 default
parent child
Show More
@@ -1,6 +1,6
1 #############################################################################
1 #############################################################################
2 # Makefile for building: PAULs_LPPMON_PLUGINS
2 # Makefile for building: PAULs_LPPMON_PLUGINS
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Mon Apr 22 17:27:12 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Apr 25 14:28:34 2013
4 # Project: PAULs_LPPMON_PLUGINS.pro
4 # Project: PAULs_LPPMON_PLUGINS.pro
5 # Template: subdirs
5 # Template: subdirs
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
@@ -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 Qt Creator 2.4.1, 2013-04-23T11:06:46. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-04-26T15:28:06. -->
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: librmapplugin.so.1.0.0
2 # Makefile for building: librmapplugin.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Mon Apr 22 17:27:12 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Apr 26 08:31:53 2013
4 # Project: rmapplugin.pro
4 # Project: rmapplugin.pro
5 # Template: lib
5 # Template: lib
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
@@ -49,24 +49,30 SOURCES = rmapplugin.cpp \
49 ccsds.cpp \
49 ccsds.cpp \
50 ../common_PLE/qipdialogbox.cpp \
50 ../common_PLE/qipdialogbox.cpp \
51 ../common_PLE/gresbstatusenquiry.cpp \
51 ../common_PLE/gresbstatusenquiry.cpp \
52 spectralmatricesdmasimulator.cpp \
53 rmappluginpythonwrapper.cpp \
52 rmappluginpythonwrapper.cpp \
54 stardundee.cpp \
53 stardundee.cpp \
55 gresb.cpp \
54 gresb.cpp \
56 tcpackettosend.cpp \
55 tcpackettosend.cpp \
57 tmpackettoread.cpp \
56 tmpackettoread.cpp \
58 wfdisplay.cpp \
57 wfdisplay.cpp \
58 tmstatistics.cpp \
59 wfplot.cpp \
60 wfpage.cpp \
61 wfpacket.cpp \
59 /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \
62 /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \
60 moc/moc_rmapplugin.cpp \
63 moc/moc_rmapplugin.cpp \
61 moc/moc_qipdialogbox.cpp \
64 moc/moc_qipdialogbox.cpp \
62 moc/moc_gresbstatusenquiry.cpp \
65 moc/moc_gresbstatusenquiry.cpp \
63 moc/moc_spectralmatricesdmasimulator.cpp \
64 moc/moc_rmappluginpythonwrapper.cpp \
66 moc/moc_rmappluginpythonwrapper.cpp \
65 moc/moc_stardundee.cpp \
67 moc/moc_stardundee.cpp \
66 moc/moc_gresb.cpp \
68 moc/moc_gresb.cpp \
67 moc/moc_tcpackettosend.cpp \
69 moc/moc_tcpackettosend.cpp \
68 moc/moc_tmpackettoread.cpp \
70 moc/moc_tmpackettoread.cpp \
69 moc/moc_wfdisplay.cpp \
71 moc/moc_wfdisplay.cpp \
72 moc/moc_tmstatistics.cpp \
73 moc/moc_wfplot.cpp \
74 moc/moc_wfpage.cpp \
75 moc/moc_wfpacket.cpp \
70 moc/moc_genericPySysdriver.cpp \
76 moc/moc_genericPySysdriver.cpp \
71 moc/moc_lppmonplugin.cpp
77 moc/moc_lppmonplugin.cpp
72 OBJECTS = obj/rmapplugin.o \
78 OBJECTS = obj/rmapplugin.o \
@@ -75,25 +81,31 OBJECTS = obj/rmapplugin.o \
75 obj/ccsds.o \
81 obj/ccsds.o \
76 obj/qipdialogbox.o \
82 obj/qipdialogbox.o \
77 obj/gresbstatusenquiry.o \
83 obj/gresbstatusenquiry.o \
78 obj/spectralmatricesdmasimulator.o \
79 obj/rmappluginpythonwrapper.o \
84 obj/rmappluginpythonwrapper.o \
80 obj/stardundee.o \
85 obj/stardundee.o \
81 obj/gresb.o \
86 obj/gresb.o \
82 obj/tcpackettosend.o \
87 obj/tcpackettosend.o \
83 obj/tmpackettoread.o \
88 obj/tmpackettoread.o \
84 obj/wfdisplay.o \
89 obj/wfdisplay.o \
90 obj/tmstatistics.o \
91 obj/wfplot.o \
92 obj/wfpage.o \
93 obj/wfpacket.o \
85 obj/lppmonplugininterface.o \
94 obj/lppmonplugininterface.o \
86 obj/moc_rmappluginui.o \
95 obj/moc_rmappluginui.o \
87 obj/moc_rmapplugin.o \
96 obj/moc_rmapplugin.o \
88 obj/moc_qipdialogbox.o \
97 obj/moc_qipdialogbox.o \
89 obj/moc_gresbstatusenquiry.o \
98 obj/moc_gresbstatusenquiry.o \
90 obj/moc_spectralmatricesdmasimulator.o \
91 obj/moc_rmappluginpythonwrapper.o \
99 obj/moc_rmappluginpythonwrapper.o \
92 obj/moc_stardundee.o \
100 obj/moc_stardundee.o \
93 obj/moc_gresb.o \
101 obj/moc_gresb.o \
94 obj/moc_tcpackettosend.o \
102 obj/moc_tcpackettosend.o \
95 obj/moc_tmpackettoread.o \
103 obj/moc_tmpackettoread.o \
96 obj/moc_wfdisplay.o \
104 obj/moc_wfdisplay.o \
105 obj/moc_tmstatistics.o \
106 obj/moc_wfplot.o \
107 obj/moc_wfpage.o \
108 obj/moc_wfpacket.o \
97 obj/moc_genericPySysdriver.o \
109 obj/moc_genericPySysdriver.o \
98 obj/moc_lppmonplugin.o
110 obj/moc_lppmonplugin.o
99 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
111 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
@@ -243,7 +255,7 qmake: FORCE
243
255
244 dist:
256 dist:
245 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
257 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
246 $(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 spectralmatricesdmasimulator.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 wfdisplay.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 spectralmatricesdmasimulator.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp wfdisplay.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
258 $(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 wfdisplay.h tmstatistics.h wfplot.h wfpage.h wfpacket.h params.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 wfdisplay.cpp tmstatistics.cpp wfplot.cpp wfpage.cpp wfpacket.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
247
259
248
260
249 clean:compiler_clean
261 clean:compiler_clean
@@ -265,27 +277,34 mocclean: compiler_moc_header_clean comp
265
277
266 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
278 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
267
279
268 compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_wfdisplay.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
280 compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_wfdisplay.cpp moc/moc_tmstatistics.cpp moc/moc_wfplot.cpp moc/moc_wfpage.cpp moc/moc_wfpacket.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
269 compiler_moc_header_clean:
281 compiler_moc_header_clean:
270 -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_wfdisplay.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
282 -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_wfdisplay.cpp moc/moc_tmstatistics.cpp moc/moc_wfplot.cpp moc/moc_wfpage.cpp moc/moc_wfpacket.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
271 moc/moc_rmappluginui.cpp: rmapoperations.h \
283 moc/moc_rmappluginui.cpp: rmapoperations.h \
272 spectralmatricesdmasimulator.h \
273 stardundee.h \
284 stardundee.h \
274 ccsds.h \
285 ccsds.h \
275 tmpackettoread.h \
286 tmpackettoread.h \
276 gresb.h \
287 gresb.h \
277 wfdisplay.h \
288 wfdisplay.h \
289 wfplot.h \
290 params.h \
291 wfpage.h \
292 tmstatistics.h \
278 rmappluginui.h
293 rmappluginui.h
279 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp
294 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp
280
295
281 moc/moc_rmapplugin.cpp: rmappluginui.h \
296 moc/moc_rmapplugin.cpp: rmappluginui.h \
282 rmapoperations.h \
297 rmapoperations.h \
283 spectralmatricesdmasimulator.h \
284 stardundee.h \
298 stardundee.h \
285 ccsds.h \
299 ccsds.h \
286 tmpackettoread.h \
300 tmpackettoread.h \
287 gresb.h \
301 gresb.h \
288 wfdisplay.h \
302 wfdisplay.h \
303 wfplot.h \
304 params.h \
305 wfpage.h \
306 tmstatistics.h \
307 wfpacket.h \
289 rmapplugin.h
308 rmapplugin.h
290 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp
309 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp
291
310
@@ -295,9 +314,6 moc/moc_qipdialogbox.cpp: ../common_PLE/
295 moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h
314 moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h
296 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp
315 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp
297
316
298 moc/moc_spectralmatricesdmasimulator.cpp: spectralmatricesdmasimulator.h
299 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) spectralmatricesdmasimulator.h -o moc/moc_spectralmatricesdmasimulator.cpp
300
301 moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \
317 moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \
302 ccsds.h \
318 ccsds.h \
303 tcpackettosend.h \
319 tcpackettosend.h \
@@ -323,9 +339,28 moc/moc_tcpackettosend.cpp: tcpackettose
323 moc/moc_tmpackettoread.cpp: tmpackettoread.h
339 moc/moc_tmpackettoread.cpp: tmpackettoread.h
324 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
340 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
325
341
326 moc/moc_wfdisplay.cpp: wfdisplay.h
342 moc/moc_wfdisplay.cpp: wfplot.h \
343 params.h \
344 wfpage.h \
345 wfdisplay.h
327 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc/moc_wfdisplay.cpp
346 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc/moc_wfdisplay.cpp
328
347
348 moc/moc_tmstatistics.cpp: tmstatistics.h
349 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp
350
351 moc/moc_wfplot.cpp: params.h \
352 wfplot.h
353 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc/moc_wfplot.cpp
354
355 moc/moc_wfpage.cpp: wfplot.h \
356 params.h \
357 wfpage.h
358 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc/moc_wfpage.cpp
359
360 moc/moc_wfpacket.cpp: params.h \
361 wfpacket.h
362 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp
363
329 moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h
364 moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h
330 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp
365 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp
331
366
@@ -354,12 +389,16 compiler_clean: compiler_moc_header_clea
354 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
389 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
355 rmappluginui.h \
390 rmappluginui.h \
356 rmapoperations.h \
391 rmapoperations.h \
357 spectralmatricesdmasimulator.h \
358 stardundee.h \
392 stardundee.h \
359 ccsds.h \
393 ccsds.h \
360 tmpackettoread.h \
394 tmpackettoread.h \
361 gresb.h \
395 gresb.h \
362 wfdisplay.h \
396 wfdisplay.h \
397 wfplot.h \
398 params.h \
399 wfpage.h \
400 tmstatistics.h \
401 wfpacket.h \
363 rmappluginpythonwrapper.h \
402 rmappluginpythonwrapper.h \
364 tcpackettosend.h
403 tcpackettosend.h
365 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
404 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
@@ -367,12 +406,16 obj/rmapplugin.o: rmapplugin.cpp rmapplu
367 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
406 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
368 rmappluginui.h \
407 rmappluginui.h \
369 rmapoperations.h \
408 rmapoperations.h \
370 spectralmatricesdmasimulator.h \
371 stardundee.h \
409 stardundee.h \
372 ccsds.h \
410 ccsds.h \
373 tmpackettoread.h \
411 tmpackettoread.h \
374 gresb.h \
412 gresb.h \
375 wfdisplay.h
413 wfdisplay.h \
414 wfplot.h \
415 params.h \
416 wfpage.h \
417 tmstatistics.h \
418 wfpacket.h
376 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
419 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
377
420
378 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h
421 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h
@@ -387,9 +430,6 obj/qipdialogbox.o: ../common_PLE/qipdia
387 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
430 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
388 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
431 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
389
432
390 obj/spectralmatricesdmasimulator.o: spectralmatricesdmasimulator.cpp spectralmatricesdmasimulator.h
391 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spectralmatricesdmasimulator.o spectralmatricesdmasimulator.cpp
392
393 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \
433 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \
394 rmapoperations.h \
434 rmapoperations.h \
395 ccsds.h \
435 ccsds.h \
@@ -415,9 +455,28 obj/tcpackettosend.o: tcpackettosend.cpp
415 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
455 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
416 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
456 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
417
457
418 obj/wfdisplay.o: wfdisplay.cpp wfdisplay.h
458 obj/wfdisplay.o: wfdisplay.cpp wfdisplay.h \
459 wfplot.h \
460 params.h \
461 wfpage.h
419 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfdisplay.o wfdisplay.cpp
462 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfdisplay.o wfdisplay.cpp
420
463
464 obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h
465 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp
466
467 obj/wfplot.o: wfplot.cpp wfplot.h \
468 params.h
469 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfplot.o wfplot.cpp
470
471 obj/wfpage.o: wfpage.cpp wfpage.h \
472 wfplot.h \
473 params.h
474 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpage.o wfpage.cpp
475
476 obj/wfpacket.o: wfpacket.cpp wfpacket.h \
477 params.h
478 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp
479
421 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
480 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
422 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
481 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
423 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
482 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
@@ -434,9 +493,6 obj/moc_qipdialogbox.o: moc/moc_qipdialo
434 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
493 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
435 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
494 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
436
495
437 obj/moc_spectralmatricesdmasimulator.o: moc/moc_spectralmatricesdmasimulator.cpp
438 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spectralmatricesdmasimulator.o moc/moc_spectralmatricesdmasimulator.cpp
439
440 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
496 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
441 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
497 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
442
498
@@ -455,6 +511,18 obj/moc_tmpackettoread.o: moc/moc_tmpack
455 obj/moc_wfdisplay.o: moc/moc_wfdisplay.cpp
511 obj/moc_wfdisplay.o: moc/moc_wfdisplay.cpp
456 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfdisplay.o moc/moc_wfdisplay.cpp
512 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfdisplay.o moc/moc_wfdisplay.cpp
457
513
514 obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp
515 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp
516
517 obj/moc_wfplot.o: moc/moc_wfplot.cpp
518 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfplot.o moc/moc_wfplot.cpp
519
520 obj/moc_wfpage.o: moc/moc_wfpage.cpp
521 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpage.o moc/moc_wfpage.cpp
522
523 obj/moc_wfpacket.o: moc/moc_wfpacket.cpp
524 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp
525
458 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
526 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
459 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
527 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
460
528
@@ -28,6 +28,8 public:
28
28
29 unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
29 unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
30
30
31 gresbStatusEnquiry* spwLinkStatusEnquiry;
32
31 signals:
33 signals:
32 void sendMessage(QString message);
34 void sendMessage(QString message);
33 void sendPacket(TMPacketToRead*);
35 void sendPacket(TMPacketToRead*);
@@ -93,8 +95,6 private:
93 QTcpSocket *RMAPReceive_SOCKET;
95 QTcpSocket *RMAPReceive_SOCKET;
94 QTcpSocket *GRESBStatusQuery_SOCKET;
96 QTcpSocket *GRESBStatusQuery_SOCKET;
95
97
96 gresbStatusEnquiry* spwLinkStatusEnquiry;
97
98 // Packet receiver
98 // Packet receiver
99 QSemaphore *rmapPacketSEMAPHORE;
99 QSemaphore *rmapPacketSEMAPHORE;
100 QSemaphore *ccsdsPacketSEMAPHORE;
100 QSemaphore *ccsdsPacketSEMAPHORE;
@@ -59,6 +59,9 rmapplugin::rmapplugin(QWidget *parent)
59 //**
59 //**
60 connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()),
60 connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()),
61 this, SLOT(fetchPacket()), Qt::DirectConnection );
61 this, SLOT(fetchPacket()), Qt::DirectConnection );
62 //***
63 connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)),
64 this, SLOT(nbPacketHasChanged(int)));
62 //**************
65 //**************
63
66
64 //**************
67 //**************
@@ -74,16 +77,12 rmapplugin::rmapplugin(QWidget *parent)
74
77
75 connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge()));
78 connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge()));
76 connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge()));
79 connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge()));
77
80 connect(this, SIGNAL(
78 // CCSDS
81 updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint)
79 connect(this->UI->sendCCSDSCommandButton, SIGNAL(clicked()), this, SLOT(sendCCSDS()));
82 ),
80 connect(this->UI->send_TC_LFR_UPDATE_TIME_Button, SIGNAL(clicked()), this, SLOT(send_TC_LFR_UPDATE_TIME()));
83 this->UI->tmStatistics, SLOT(
81 connect(this->UI->reset_TC_LFR_UPDATE_TIME_Button, SIGNAL(clicked()), this, SLOT(reset_TC_LFR_UPDATE_TIME()));
84 updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint)
82
85 ));
83 // spectralMAtricesDMASimulator
84 connect(this->UI->spectralMatricesDMASimulator, SIGNAL(rmapplugginRead(uint*,uint,uint)), this, SLOT(Read(uint*,uint,uint)));
85 connect(this->UI->spectralMatricesDMASimulator, SIGNAL(rmapplugginWrite(uint*,uint,uint)), this, SLOT(Write(uint*,uint,uint)));
86 connect(this->UI->spectralMatricesDMASimulator, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString)));
87
86
88 //******
87 //******
89 // GRESB
88 // GRESB
@@ -191,51 +190,6 unsigned int rmapplugin::WriteSPW(char *
191 return result;
190 return result;
192 }
191 }
193
192
194 void rmapplugin::sendCCSDS() // SLOT
195 {
196 unsigned int nbBYTES_application_data = 8;
197 unsigned int count;
198 char *tab;
199 unsigned char packetErrorControl1 = 0xaa;
200 unsigned char packetErrorControl0 = 0xbb;
201
202 ccsds_command = new ccsds(1, 0, 0, nbBYTES_application_data+12, 0, 0, 0, 0, 0); // +12 => packet header 6 bytes + data field header 4 bytes + packet error control 2 bytes
203 /* unsigned char data_field_header,
204 unsigned char processID,
205 unsigned int sequence_count,
206 unsigned int packet_length,
207 unsigned char acceptance,
208 unsigned int completion,
209 unsigned char service_type,
210 unsigned char service_subtype,
211 unsigned char sourceID*/
212
213 count = nbBYTES_application_data+12; // 12 is the size in bytes of the header
214 tab = (char*) malloc(count);
215 tab[0] = ccsds_command->ccsds_header->packetId1;
216 tab[1] = ccsds_command->ccsds_header->packetId0;
217 tab[2] = ccsds_command->ccsds_header->packetSequenceControl1;
218 tab[3] = ccsds_command->ccsds_header->packetSequenceControl0;
219 tab[4] = ccsds_command->ccsds_header->packetLength1;
220 tab[5] = ccsds_command->ccsds_header->packetLength0;
221 tab[6] = ccsds_command->ccsds_header->dataFieldHeader3;
222 tab[7] = ccsds_command->ccsds_header->dataFieldHeader2;
223 tab[8] = ccsds_command->ccsds_header->dataFieldHeader1;
224 tab[9] = ccsds_command->ccsds_header->dataFieldHeader0;
225 tab[10]=0x00;
226 tab[11]=0x00;
227 tab[12]=0x00;
228 tab[13]=0x00;
229 tab[14]=0x00;
230 tab[15]=0x00;
231 tab[nbBYTES_application_data+10] = packetErrorControl1;
232 tab[nbBYTES_application_data+11] = packetErrorControl0;
233
234 WriteSPW(tab, count, UI->CCSDSTargetLogicalAddressSpinBox->value(), 0x00);
235
236 free(tab);
237 }
238
239 void rmapplugin::openBridge()
193 void rmapplugin::openBridge()
240 {
194 {
241 switch(currentBridge)
195 switch(currentBridge)
@@ -266,59 +220,6 void rmapplugin::closeBridge()
266 }
220 }
267 }
221 }
268
222
269 void rmapplugin::send_TC_LFR_UPDATE_TIME()
270 {
271 unsigned int nbBYTES_application_data = 6; // Time at CUC format is on 48 bits / 6 bytes
272 unsigned int count;
273 char *tab;
274 unsigned char packetErrorControl1 = 0xaa;
275 unsigned char packetErrorControl0 = 0xbb;
276
277 ccsds_command = new ccsds(1, 11, 0, nbBYTES_application_data, 1, 1, 9, 129, 0);
278 /* unsigned char data_field_header,
279 unsigned char processID,
280 unsigned int sequence_count,
281 unsigned int packet_length,
282 unsigned char acceptance,
283 unsigned int completion,
284 unsigned char service_type,
285 unsigned char service_subtype,
286 unsigned char sourceID*/
287
288 count = nbBYTES_application_data+12; // +12 => packet header 6 bytes + data field header 4 bytes + packet error control 2 bytes
289 tab = (char*) malloc(count);
290 tab[0] = ccsds_command->ccsds_header->packetId1;
291 tab[1] = ccsds_command->ccsds_header->packetId0;
292 tab[2] = ccsds_command->ccsds_header->packetSequenceControl1;
293 tab[3] = ccsds_command->ccsds_header->packetSequenceControl0;
294 tab[4] = ccsds_command->ccsds_header->packetLength1;
295 tab[5] = ccsds_command->ccsds_header->packetLength0;
296 tab[6] = ccsds_command->ccsds_header->dataFieldHeader3;
297 tab[7] = ccsds_command->ccsds_header->dataFieldHeader2;
298 tab[8] = ccsds_command->ccsds_header->dataFieldHeader1;
299 tab[9] = ccsds_command->ccsds_header->dataFieldHeader0;
300 tab[10] = (unsigned char) (time_COARSE>>24);
301 tab[11] = (unsigned char) (time_COARSE>>18);
302 tab[12] = (unsigned char) (time_COARSE>>8);
303 tab[13] = (unsigned char) (time_COARSE);
304 tab[14] = (unsigned char) (time_FINE>>8);
305 tab[15] = (unsigned char) (time_FINE);
306 tab[nbBYTES_application_data+10] = packetErrorControl1;
307 tab[nbBYTES_application_data+11] = packetErrorControl0;
308
309 WriteSPW(tab, count, UI->CCSDSTargetLogicalAddressSpinBox->value(), 0x00);
310
311 time_COARSE = time_COARSE+1;
312
313 free(tab);
314 }
315
316 void rmapplugin::reset_TC_LFR_UPDATE_TIME()
317 {
318 time_COARSE = 0;
319 time_FINE = 0;
320 }
321
322 void rmapplugin::RMAP_write_reply_setText(QString text)
223 void rmapplugin::RMAP_write_reply_setText(QString text)
323 {
224 {
324 this->UI->RMAP_write_reply->setText(text);
225 this->UI->RMAP_write_reply->setText(text);
@@ -343,60 +244,99 void rmapplugin::receivePacketFromBridge
343 {
244 {
344 preProcessPacket(packet);
245 preProcessPacket(packet);
345 this->generalCCSDSPacketStore.append(packet);
246 this->generalCCSDSPacketStore.append(packet);
346 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.count()));
247 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size()));
347 processPacketStore();
248 processPacketStore();
348 }
249 }
349
250
350 void rmapplugin::preProcessPacket(TMPacketToRead *packet)
251 void rmapplugin::preProcessPacket(TMPacketToRead *packet)
351 {
252 {
253 unsigned char pid = 0;
254 unsigned char cat = 0;
352 unsigned char typ = 0;
255 unsigned char typ = 0;
353 unsigned char sub = 0;
256 unsigned char sub = 0;
354 unsigned char sid = 0;
257 unsigned int sid = 0;
355 unsigned char pkt_nr = 0;
258 unsigned int length = 0;
356 unsigned int blk_nr = 0;
259 unsigned int coarse_t = 0;
357 unsigned int i = 0;
260 unsigned int fine_t = 0;
358 unsigned int j = 0;
359 unsigned char *data;
360
261
262 //*********************************
263 // get the parameters of the packet
264 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
265 cat = packet->Value[5] & 0x0f;
361 typ = packet->Value[11]; // TYPE
266 typ = packet->Value[11]; // TYPE
362 sub = packet->Value[12]; // SUBTYPE
267 sub = packet->Value[12]; // SUBTYPE
268 sid = 0;
269 length = packet->Value[8] * 256 + packet->Value[9];
270 coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
271 + packet->Value[16] * pow(2, 8) + packet->Value[17];
272 fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19];
273
274 if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8))
275 sid = packet->Value[20] * 256 + packet->Value[21];
276 else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3))
277 sid = packet->Value[20];
278 else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25))
279 sid = 1;
280
281 emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
282
283
284 //****************************************
285 // if the packet is a waveform, display it
363 if ( (typ == 21) & (sub == 3) )
286 if ( (typ == 21) & (sub == 3) )
364 {
287 {
365 sid = packet->Value[20]; // SID
288 sid = packet->Value[20]; // SID
366 pkt_nr = packet->Value[23]; // PKT_NR
367 blk_nr = packet->Value[24] * 256 + packet->Value[25];
368 switch (sid){
289 switch (sid){
369 case SID_NORMAL_SWF_F0:
290 case SID_NORMAL_SWF_F0:
370 emit displayOnConsole("wf packet received, sid: " + QString::number(sid)
291 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
371 + ", pkt_nr: " + QString::number(pkt_nr)
292 break;
372 + ", blk_nr: " + QString::number(blk_nr)
293 case SID_NORMAL_SWF_F1:
373 );
294 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
295 break;
296 case SID_NORMAL_SWF_F2:
297 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
298 break;
299 case SID_NORMAL_CWF_F3:
300 buildWFAndDisplay(packet, &wfPacketNormal[3], 3);
301 break;
302 }
303 }
304 }
305
306 void rmapplugin::nbPacketHasChanged(int nb)
307 {
308 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb));
309 }
310
311 void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
312 {
313 unsigned int i = 0;
314 unsigned int j = 0;
315 unsigned char *data;
316 unsigned char pkt_nr = 0;
317 unsigned int blk_nr = 0;
318
319 pkt_nr = packet->Value[23]; // PKT_NR
320 blk_nr = packet->Value[24] * 256 + packet->Value[25];
374 data = &packet->Value[26]; // start of the first data block;
321 data = &packet->Value[26]; // start of the first data block;
375 j = (pkt_nr-1) * 340;
322 j = (pkt_nr-1) * 340;
376 for ( i=0; i<blk_nr; i++ ){
323 for ( i=0; i<blk_nr; i++ ){
377 normal_swf_f0_v[j + i] = (short) ( (data[i * BLK_SIZE ] << 8) + (data[i*BLK_SIZE + 1]) );
324 wfPacket->wf_v[j + i] = (short) ( (data[i * BLK_SIZE ] << 8) + (data[i*BLK_SIZE + 1]) );
378 normal_swf_f0_e1[j + i] = (short) ( (data[i * BLK_SIZE + 2] << 8) + (data[i*BLK_SIZE + 3]) );
325 wfPacket->wf_e1[j + i] = (short) ( (data[i * BLK_SIZE + 2] << 8) + (data[i*BLK_SIZE + 3]) );
379 normal_swf_f0_e2[j + i] = (short) ( (data[i * BLK_SIZE + 4] << 8) + (data[i*BLK_SIZE + 5]) );
326 wfPacket->wf_e2[j + i] = (short) ( (data[i * BLK_SIZE + 4] << 8) + (data[i*BLK_SIZE + 5]) );
380 normal_swf_f0_b1[j + i] = (short) ( (data[i * BLK_SIZE + 6] << 8) + (data[i*BLK_SIZE + 7]) );
327 wfPacket->wf_b1[j + i] = (short) ( (data[i * BLK_SIZE + 6] << 8) + (data[i*BLK_SIZE + 7]) );
381 normal_swf_f0_b2[j + i] = (short) ( (data[i * BLK_SIZE + 8] << 8) + (data[i*BLK_SIZE + 9]) );
328 wfPacket->wf_b2[j + i] = (short) ( (data[i * BLK_SIZE + 8] << 8) + (data[i*BLK_SIZE + 9]) );
382 normal_swf_f0_b3[j + i] = (short) ( (data[i * BLK_SIZE + 10] << 8) + (data[i*BLK_SIZE + 11]) );
329 wfPacket->wf_b3[j + i] = (short) ( (data[i * BLK_SIZE + 10] << 8) + (data[i*BLK_SIZE + 11]) );
383 }
330 }
384 if (pkt_nr == 7)
331 if (pkt_nr == 7)
385 {
332 {
386 emit displayOnConsole("all packets received, display waveform");
333 emit displayOnConsole("all packets received, display waveform f" + QString::number(num_page));
387 this->UI->wfDisplay->displayOnPlot(normal_swf_f0_v, 0);
334 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
388 this->UI->wfDisplay->displayOnPlot(normal_swf_f0_e1, 1);
335 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
389 this->UI->wfDisplay->displayOnPlot(normal_swf_f0_e2, 2);
336 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
390 this->UI->wfDisplay->displayOnPlot(normal_swf_f0_b1, 3);
337 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
391 }
338 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
392 break;
339 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
393 case SID_NORMAL_SWF_F1:
394 break;
395 case SID_NORMAL_SWF_F2:
396 break;
397 case SID_NORMAL_CWF_F3:
398 break;
399 }
400 }
340 }
401 }
341 }
402
342
@@ -31,6 +31,7
31 #include <QTime>
31 #include <QTime>
32 #include <ccsds.h>
32 #include <ccsds.h>
33 #include <QSemaphore>
33 #include <QSemaphore>
34 #include <wfpacket.h>
34
35
35 #include <lppmonplugin.h>
36 #include <lppmonplugin.h>
36
37
@@ -53,12 +54,8 public:
53 ~rmapplugin();
54 ~rmapplugin();
54 QList<TMPacketToRead*> generalCCSDSPacketStore;
55 QList<TMPacketToRead*> generalCCSDSPacketStore;
55 void preProcessPacket(TMPacketToRead *packet);
56 void preProcessPacket(TMPacketToRead *packet);
56 short normal_swf_f0_v[2048];
57 WFPacket wfPacketNormal[4];
57 short normal_swf_f0_e1[2048];
58 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
58 short normal_swf_f0_e2[2048];
59 short normal_swf_f0_b1[2048];
60 short normal_swf_f0_b2[2048];
61 short normal_swf_f0_b3[2048];
62
59
63 public slots:
60 public slots:
64 unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0);
61 unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0);
@@ -71,12 +68,10 public slots:
71 void processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
68 void processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
72 void processPacketStore();
69 void processPacketStore();
73 void updatePacketStore(selectedBridge bridge);
70 void updatePacketStore(selectedBridge bridge);
71 void nbPacketHasChanged(int nb);
74 int fetchPacket();
72 int fetchPacket();
75 void receivePacketFromBridge(TMPacketToRead* packet);
73 void receivePacketFromBridge(TMPacketToRead* packet);
76 //
74 //
77 void sendCCSDS();
78 void send_TC_LFR_UPDATE_TIME();
79 void reset_TC_LFR_UPDATE_TIME();
80 void displayOnConsole(QString message) {this->UI->console->append(message);}
75 void displayOnConsole(QString message) {this->UI->console->append(message);}
81 //
76 //
82 void RMAP_write_reply_setText(QString text);
77 void RMAP_write_reply_setText(QString text);
@@ -87,6 +82,10 public slots:
87
82
88 signals:
83 signals:
89 void ccsdsPacketIsProcessed();
84 void ccsdsPacketIsProcessed();
85 void updateStatistics(unsigned char pid, unsigned char cat,
86 unsigned char typ, unsigned char sub,
87 unsigned int sid, unsigned int length,
88 unsigned int coarse_t, unsigned int fine_t);
90
89
91 private:
90 private:
92 selectedBridge currentBridge;
91 selectedBridge currentBridge;
@@ -37,7 +37,6 HEADERS += \
37 ccsds.h \
37 ccsds.h \
38 ../common_PLE/qipdialogbox.h \
38 ../common_PLE/qipdialogbox.h \
39 ../common_PLE/gresbstatusenquiry.h \
39 ../common_PLE/gresbstatusenquiry.h \
40 spectralmatricesdmasimulator.h \
41 rmappluginpythonwrapper.h \
40 rmappluginpythonwrapper.h \
42 stardundee.h \
41 stardundee.h \
43 ../spw_usb_driver_v2.61/inc/spw_usb_api.h \
42 ../spw_usb_driver_v2.61/inc/spw_usb_api.h \
@@ -45,7 +44,12 HEADERS += \
45 gresb.h \
44 gresb.h \
46 tcpackettosend.h \
45 tcpackettosend.h \
47 tmpackettoread.h \
46 tmpackettoread.h \
48 wfdisplay.h
47 wfdisplay.h \
48 tmstatistics.h \
49 wfplot.h \
50 wfpage.h \
51 wfpacket.h \
52 params.h
49
53
50
54
51 SOURCES += \
55 SOURCES += \
@@ -55,13 +59,16 SOURCES += \
55 ccsds.cpp \
59 ccsds.cpp \
56 ../common_PLE/qipdialogbox.cpp \
60 ../common_PLE/qipdialogbox.cpp \
57 ../common_PLE/gresbstatusenquiry.cpp \
61 ../common_PLE/gresbstatusenquiry.cpp \
58 spectralmatricesdmasimulator.cpp \
59 rmappluginpythonwrapper.cpp \
62 rmappluginpythonwrapper.cpp \
60 stardundee.cpp \
63 stardundee.cpp \
61 gresb.cpp \
64 gresb.cpp \
62 tcpackettosend.cpp \
65 tcpackettosend.cpp \
63 tmpackettoread.cpp \
66 tmpackettoread.cpp \
64 wfdisplay.cpp
67 wfdisplay.cpp \
68 tmstatistics.cpp \
69 wfplot.cpp \
70 wfpage.cpp \
71 wfpacket.cpp
65
72
66
73
67
74
@@ -25,7 +25,7 QList<QVariant> rmappluginPythonWrapper:
25 }
25 }
26 delete(ccsdsPacket);
26 delete(ccsdsPacket);
27 }
27 }
28
28 emit nbPacketHasChanged(ccsdsPacketStore->size());
29 return result;
29 return result;
30 }
30 }
31
31
@@ -34,6 +34,7 signals:
34 void processPacketStoreNowSig();
34 void processPacketStoreNowSig();
35 void sendMessage(QString message);
35 void sendMessage(QString message);
36 int fetchPacketSig();
36 int fetchPacketSig();
37 void nbPacketHasChanged(int nb);
37
38
38 public slots:
39 public slots:
39 QList<QVariant> ReadSPW(unsigned int size=0);
40 QList<QVariant> ReadSPW(unsigned int size=0);
@@ -24,14 +24,14
24 rmapPluginUI::rmapPluginUI(QWidget *parent) :
24 rmapPluginUI::rmapPluginUI(QWidget *parent) :
25 QWidget(parent)
25 QWidget(parent)
26 {
26 {
27 spectralMatricesDMASimulator = new SpectralMatricesDMASimulator;
28 spwTabWidget = new QTabWidget;
27 spwTabWidget = new QTabWidget;
28 //
29 QWidget* spwTabWidgetPage0 = new QWidget;
29 QWidget* spwTabWidgetPage0 = new QWidget;
30 QWidget* spwTabWidgetPage1 = new QWidget;
31 QWidget* spwTabWidgetPage2 = new QWidget;
30 QWidget* spwTabWidgetPage2 = new QWidget;
32 QWidget* spwTabWidgetPage3 = new QWidget;
31 QWidget* spwTabWidgetPage3 = new QWidget;
33 QWidget* spwTabWidgetPage4 = new QWidget;
32 QWidget* spwTabWidgetPage4 = new QWidget;
34 QWidget* spwTabWidgetPage5 = new QWidget;
33 QWidget* spwTabWidgetPage5 = new QWidget;
34 //
35 bridgeWidget = new QWidget;
35 bridgeWidget = new QWidget;
36 mainLayout = new QVBoxLayout;
36 mainLayout = new QVBoxLayout;
37 ccsdsLayout = new QVBoxLayout;
37 ccsdsLayout = new QVBoxLayout;
@@ -55,7 +55,6 rmapPluginUI::rmapPluginUI(QWidget *pare
55 logFileName = new QLabel;
55 logFileName = new QLabel;
56 gresbStatusQueryLabel = new QLabel(tr("Status query socket (port 3010): waiting for connection"));
56 gresbStatusQueryLabel = new QLabel(tr("Status query socket (port 3010): waiting for connection"));
57 gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running"));
57 gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running"));
58 sendCCSDSCommandLabel = new QLabel(tr("Address of the target"));
59 nbPacketInStore = new QLabel(tr("nb packets in store: -"));
58 nbPacketInStore = new QLabel(tr("nb packets in store: -"));
60
59
61 //*** QPUSHBUTTON ***//
60 //*** QPUSHBUTTON ***//
@@ -66,9 +65,6 rmapPluginUI::rmapPluginUI(QWidget *pare
66 logFileChooseButton = new QPushButton(tr("Choose file"));
65 logFileChooseButton = new QPushButton(tr("Choose file"));
67 gresbStatusQueryRetryButton = new QPushButton(tr("Retry"));
66 gresbStatusQueryRetryButton = new QPushButton(tr("Retry"));
68 gresbStatusQueryAbortButton = new QPushButton(tr("Abort"));
67 gresbStatusQueryAbortButton = new QPushButton(tr("Abort"));
69 sendCCSDSCommandButton = new QPushButton(tr("Send CCSDS Command"));
70 send_TC_LFR_UPDATE_TIME_Button = new QPushButton(tr("Send TC_LFR_UPDATE_TIME Packet"));
71 reset_TC_LFR_UPDATE_TIME_Button = new QPushButton(tr("reset the TC_LFR_UPDATE_TIME Packet coarse and fine times"));
72 clearConsoleButton = new QPushButton(tr("Clear"));
68 clearConsoleButton = new QPushButton(tr("Clear"));
73
69
74 selectGRESB_BUTTON = new QRadioButton(tr("GRESB"));
70 selectGRESB_BUTTON = new QRadioButton(tr("GRESB"));
@@ -83,25 +79,22 rmapPluginUI::rmapPluginUI(QWidget *pare
83 gresbVirtualLinkSpinBox->setRange(0, 4);
79 gresbVirtualLinkSpinBox->setRange(0, 4);
84 gresbVirtualLinkSpinBox->setValue(1);
80 gresbVirtualLinkSpinBox->setValue(1);
85 rmapSourceLogicalAddressSpinBox->setRange(0, 255);
81 rmapSourceLogicalAddressSpinBox->setRange(0, 255);
86 rmapSourceLogicalAddressSpinBox->setValue(0);
82 rmapSourceLogicalAddressSpinBox->setValue(RMAP_DEFAULT_SOURCE_ADDRESS);
87 rmapTargetLogicalAddressSpinBox->setRange(0, 255);
83 rmapTargetLogicalAddressSpinBox->setRange(0, 255);
88 spwLinkSpinBox->setRange(0, 2);
84 spwLinkSpinBox->setRange(0, 2);
89 spwLinkSpinBox->setValue(0);
85 spwLinkSpinBox->setValue(0);
90 CCSDSTargetLogicalAddressSpinBox->setRange(0,255);
91 CCSDSTargetLogicalAddressSpinBox->setValue(0);
92
86
93 //*** MISC **//
87 //*** MISC **//
94 starDundee = new StarDundee;
88 starDundee = new StarDundee;
95 gresbBridge = new gresb;
89 gresbBridge = new gresb;
96 console = new QTextEdit;
90 console = new QTextEdit;
97 //gresbBridgeIPDialogBox = new QIPDialogBox;
98 gresbStatusQueryDialog = new QDialog;
91 gresbStatusQueryDialog = new QDialog;
99 logEnableCheckBox = new QCheckBox(tr("Enable Logs"));
92 logEnableCheckBox = new QCheckBox(tr("Enable Logs"));
100 RMAP_write_verify = new QCheckBox(tr("data checked before write\nlimited to 4 bytes\nNOT IMPLEMENTED"));
93 RMAP_write_verify = new QCheckBox(tr("data checked before write\nlimited to 4 bytes\nNOT IMPLEMENTED"));
101 RMAP_write_reply = new QCheckBox(tr("reply to the write command required\nlast reply status: unavailable"));
94 RMAP_write_reply = new QCheckBox(tr("reply to the write command required\nlast reply status: unavailable"));
102 spwLinkStatusEnquiry = new gresbStatusEnquiry;
103 logFile = new QFile();
95 logFile = new QFile();
104 wfDisplay = new WFDisplay();
96 wfDisplay = new WFDisplay();
97 tmStatistics = new TMStatistics();
105
98
106 logFileEn = false;
99 logFileEn = false;
107
100
@@ -110,8 +103,6 rmapPluginUI::rmapPluginUI(QWidget *pare
110
103
111 bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1);
104 bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1);
112 bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1);
105 bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1);
113 bridgeSelection_LAYOUT->setRowStretch(1, 1);
114 bridgeSelection_LAYOUT->setColumnStretch(2, 1);
115
106
116 generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1);
107 generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1);
117 generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1);
108 generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1);
@@ -138,14 +129,6 rmapPluginUI::rmapPluginUI(QWidget *pare
138 selectionLayout->addWidget(gresb_GROUPBOX);
129 selectionLayout->addWidget(gresb_GROUPBOX);
139 selectionLayout->addWidget(stardundee_GROUPBOX);
130 selectionLayout->addWidget(stardundee_GROUPBOX);
140
131
141 //******
142 // CCSDS
143 ccsdsLayout->addWidget(sendCCSDSCommandButton);
144 ccsdsLayout->addWidget(send_TC_LFR_UPDATE_TIME_Button);
145 ccsdsLayout->addWidget(reset_TC_LFR_UPDATE_TIME_Button);
146 ccsdsLayout->addWidget(sendCCSDSCommandLabel);
147 ccsdsLayout->addWidget(CCSDSTargetLogicalAddressSpinBox);
148
149 //********
132 //********
150 // CONSOLE
133 // CONSOLE
151 consoleLayout->addWidget(console);
134 consoleLayout->addWidget(console);
@@ -157,17 +140,15 rmapPluginUI::rmapPluginUI(QWidget *pare
157 connect(this->logEnableCheckBox, SIGNAL(stateChanged(int)), this, SLOT(logFileEnDisable(int)));
140 connect(this->logEnableCheckBox, SIGNAL(stateChanged(int)), this, SLOT(logFileEnDisable(int)));
158
141
159 spwTabWidget->addTab(spwTabWidgetPage0, tr("connection"));
142 spwTabWidget->addTab(spwTabWidgetPage0, tr("connection"));
160 spwTabWidget->addTab(spwTabWidgetPage1, tr("ccsds"));
161 spwTabWidget->addTab(spwTabWidgetPage2, tr("status"));
143 spwTabWidget->addTab(spwTabWidgetPage2, tr("status"));
162 spwTabWidget->addTab(spwTabWidgetPage3, tr("console"));
144 spwTabWidget->addTab(spwTabWidgetPage3, tr("console"));
163 spwTabWidget->addTab(spwTabWidgetPage4, tr("DMA"));
145 spwTabWidget->addTab(spwTabWidgetPage4, tr("TM statistics"));
164 spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms"));
146 spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms"));
165
147
166 spwTabWidgetPage0->setLayout(selectionLayout);
148 spwTabWidgetPage0->setLayout(selectionLayout);
167 spwTabWidgetPage1->setLayout(ccsdsLayout);
149 spwTabWidgetPage2->setLayout(this->gresbBridge->spwLinkStatusEnquiry->mainLayout);
168 spwTabWidgetPage2->setLayout(this->spwLinkStatusEnquiry->mainLayout);
169 spwTabWidgetPage3->setLayout(consoleLayout);
150 spwTabWidgetPage3->setLayout(consoleLayout);
170 spwTabWidgetPage4->setLayout(spectralMatricesDMASimulator->mainLayout);
151 spwTabWidgetPage4->setLayout(tmStatistics->layout());
171 spwTabWidgetPage5->setLayout(wfDisplay->layout());
152 spwTabWidgetPage5->setLayout(wfDisplay->layout());
172
153
173 mainLayout->addWidget(spwTabWidget);
154 mainLayout->addWidget(spwTabWidget);
@@ -40,12 +40,12
40 #include <rmapoperations.h>
40 #include <rmapoperations.h>
41 #include <gresbstatusenquiry.h>
41 #include <gresbstatusenquiry.h>
42 #include <QTextEdit>
42 #include <QTextEdit>
43 #include "spectralmatricesdmasimulator.h"
44 #include <stardundee.h>
43 #include <stardundee.h>
45 #include <gresb.h>
44 #include <gresb.h>
46 #include <QRadioButton>
45 #include <QRadioButton>
47 #include <QGroupBox>
46 #include <QGroupBox>
48 #include "wfdisplay.h"
47 #include "wfdisplay.h"
48 #include "tmstatistics.h"
49
49
50 enum selectedBridge{
50 enum selectedBridge{
51 selectedBridgeIsUnknown,
51 selectedBridgeIsUnknown,
@@ -82,8 +82,6 public:
82 QSpinBox* rmapTargetLogicalAddressSpinBox;
82 QSpinBox* rmapTargetLogicalAddressSpinBox;
83 QSpinBox* CCSDSTargetLogicalAddressSpinBox;
83 QSpinBox* CCSDSTargetLogicalAddressSpinBox;
84
84
85 //QIPDialogBox* gresbBridgeIPDialogBox;
86
87 QCheckBox *logEnableCheckBox;
85 QCheckBox *logEnableCheckBox;
88 QCheckBox *RMAP_write_verify;
86 QCheckBox *RMAP_write_verify;
89 QCheckBox *RMAP_write_reply;
87 QCheckBox *RMAP_write_reply;
@@ -97,14 +95,12 public:
97
95
98 QDialog* gresbStatusQueryDialog;
96 QDialog* gresbStatusQueryDialog;
99
97
100 gresbStatusEnquiry* spwLinkStatusEnquiry;
101
102 SpectralMatricesDMASimulator *spectralMatricesDMASimulator;
103
104 QTextEdit* console;
98 QTextEdit* console;
105
99
106 WFDisplay* wfDisplay;
100 WFDisplay* wfDisplay;
107
101
102 TMStatistics* tmStatistics;
103
108 // SPACEWIRE BRIDGES
104 // SPACEWIRE BRIDGES
109 StarDundee *starDundee;
105 StarDundee *starDundee;
110 gresb *gresbBridge;
106 gresb *gresbBridge;
General Comments 0
You need to be logged in to leave comments. Login now