##// END OF EJS Templates
spooling frequency of the star dundee bridge changed from 100 ms to 1 ms
leroy -
r53:cd731a3327c0 default
parent child
Show More
@@ -1,144 +1,144
1 #############################################################################
1 #############################################################################
2 # Makefile for building: PAULs_LPPMON_PLUGINS
2 # Makefile for building: PAULs_LPPMON_PLUGINS
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Fri Sep 27 14:11:49 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Mon Oct 21 07:16:42 2013
4 # Project: PAULs_LPPMON_PLUGINS.pro
4 # Project: PAULs_LPPMON_PLUGINS.pro
5 # Template: subdirs
5 # Template: subdirs
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
7 #############################################################################
7 #############################################################################
8
8
9 first: make_default
9 first: make_default
10 MAKEFILE = Makefile
10 MAKEFILE = Makefile
11 QMAKE = /usr/bin/qmake-qt4
11 QMAKE = /usr/bin/qmake-qt4
12 DEL_FILE = rm -f
12 DEL_FILE = rm -f
13 CHK_DIR_EXISTS= test -d
13 CHK_DIR_EXISTS= test -d
14 MKDIR = mkdir -p
14 MKDIR = mkdir -p
15 COPY = cp -f
15 COPY = cp -f
16 COPY_FILE = $(COPY)
16 COPY_FILE = $(COPY)
17 COPY_DIR = $(COPY) -r
17 COPY_DIR = $(COPY) -r
18 INSTALL_FILE = install -m 644 -p
18 INSTALL_FILE = install -m 644 -p
19 INSTALL_PROGRAM = install -m 755 -p
19 INSTALL_PROGRAM = install -m 755 -p
20 INSTALL_DIR = $(COPY_DIR)
20 INSTALL_DIR = $(COPY_DIR)
21 DEL_FILE = rm -f
21 DEL_FILE = rm -f
22 SYMLINK = ln -f -s
22 SYMLINK = ln -f -s
23 DEL_DIR = rmdir
23 DEL_DIR = rmdir
24 MOVE = mv -f
24 MOVE = mv -f
25 CHK_DIR_EXISTS= test -d
25 CHK_DIR_EXISTS= test -d
26 MKDIR = mkdir -p
26 MKDIR = mkdir -p
27 SUBTARGETS = \
27 SUBTARGETS = \
28 sub-rmapplugin
28 sub-rmapplugin
29
29
30 rmapplugin/$(MAKEFILE):
30 rmapplugin/$(MAKEFILE):
31 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
31 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
32 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
32 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
33 sub-rmapplugin-qmake_all: FORCE
33 sub-rmapplugin-qmake_all: FORCE
34 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
34 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
35 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
35 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
36 sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE
36 sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE
37 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
37 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
38 sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE
38 sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE
39 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
39 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
40 sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE
40 sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE
41 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
41 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
42 sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE
42 sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE
43 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first
43 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first
44 sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE
44 sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE
45 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first
45 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first
46 sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE
46 sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE
47 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all
47 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all
48 sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE
48 sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE
49 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all
49 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all
50 sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE
50 sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE
51 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean
51 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean
52 sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE
52 sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE
53 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean
53 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean
54 sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE
54 sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE
55 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean
55 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean
56 sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE
56 sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE
57 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean
57 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean
58 sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE
58 sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE
59 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install
59 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install
60 sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE
60 sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE
61 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install
61 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install
62 sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE
62 sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE
63 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall
63 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall
64 sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE
64 sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE
65 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall
65 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall
66
66
67 Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
67 Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
68 /usr/lib64/qt4/mkspecs/common/linux.conf \
68 /usr/lib64/qt4/mkspecs/common/linux.conf \
69 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
69 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
70 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
70 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
71 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
71 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
72 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
72 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
73 /usr/lib64/qt4/mkspecs/qconfig.pri \
73 /usr/lib64/qt4/mkspecs/qconfig.pri \
74 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
74 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
75 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
75 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
76 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
76 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
77 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
77 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
78 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
78 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
79 /usr/lib64/qt4/mkspecs/features/release.prf \
79 /usr/lib64/qt4/mkspecs/features/release.prf \
80 /usr/lib64/qt4/mkspecs/features/default_post.prf \
80 /usr/lib64/qt4/mkspecs/features/default_post.prf \
81 /usr/lib64/qt4/mkspecs/features/shared.prf \
81 /usr/lib64/qt4/mkspecs/features/shared.prf \
82 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
82 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
83 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
83 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
84 /usr/lib64/qt4/mkspecs/features/qt.prf \
84 /usr/lib64/qt4/mkspecs/features/qt.prf \
85 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
85 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
86 /usr/lib64/qt4/mkspecs/features/moc.prf \
86 /usr/lib64/qt4/mkspecs/features/moc.prf \
87 /usr/lib64/qt4/mkspecs/features/resources.prf \
87 /usr/lib64/qt4/mkspecs/features/resources.prf \
88 /usr/lib64/qt4/mkspecs/features/uic.prf \
88 /usr/lib64/qt4/mkspecs/features/uic.prf \
89 /usr/lib64/qt4/mkspecs/features/yacc.prf \
89 /usr/lib64/qt4/mkspecs/features/yacc.prf \
90 /usr/lib64/qt4/mkspecs/features/lex.prf \
90 /usr/lib64/qt4/mkspecs/features/lex.prf \
91 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf
91 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf
92 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
92 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
93 /usr/lib64/qt4/mkspecs/common/unix.conf:
93 /usr/lib64/qt4/mkspecs/common/unix.conf:
94 /usr/lib64/qt4/mkspecs/common/linux.conf:
94 /usr/lib64/qt4/mkspecs/common/linux.conf:
95 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
95 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
96 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
96 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
97 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
97 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
98 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
98 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
99 /usr/lib64/qt4/mkspecs/qconfig.pri:
99 /usr/lib64/qt4/mkspecs/qconfig.pri:
100 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
100 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
101 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
101 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
102 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
102 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
103 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
103 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
104 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
104 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
105 /usr/lib64/qt4/mkspecs/features/release.prf:
105 /usr/lib64/qt4/mkspecs/features/release.prf:
106 /usr/lib64/qt4/mkspecs/features/default_post.prf:
106 /usr/lib64/qt4/mkspecs/features/default_post.prf:
107 /usr/lib64/qt4/mkspecs/features/shared.prf:
107 /usr/lib64/qt4/mkspecs/features/shared.prf:
108 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
108 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
109 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
109 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
110 /usr/lib64/qt4/mkspecs/features/qt.prf:
110 /usr/lib64/qt4/mkspecs/features/qt.prf:
111 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
111 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
112 /usr/lib64/qt4/mkspecs/features/moc.prf:
112 /usr/lib64/qt4/mkspecs/features/moc.prf:
113 /usr/lib64/qt4/mkspecs/features/resources.prf:
113 /usr/lib64/qt4/mkspecs/features/resources.prf:
114 /usr/lib64/qt4/mkspecs/features/uic.prf:
114 /usr/lib64/qt4/mkspecs/features/uic.prf:
115 /usr/lib64/qt4/mkspecs/features/yacc.prf:
115 /usr/lib64/qt4/mkspecs/features/yacc.prf:
116 /usr/lib64/qt4/mkspecs/features/lex.prf:
116 /usr/lib64/qt4/mkspecs/features/lex.prf:
117 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
117 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
118 qmake: qmake_all FORCE
118 qmake: qmake_all FORCE
119 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
119 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
120
120
121 qmake_all: sub-rmapplugin-qmake_all FORCE
121 qmake_all: sub-rmapplugin-qmake_all FORCE
122
122
123 make_default: sub-rmapplugin-make_default-ordered FORCE
123 make_default: sub-rmapplugin-make_default-ordered FORCE
124 make_first: sub-rmapplugin-make_first-ordered FORCE
124 make_first: sub-rmapplugin-make_first-ordered FORCE
125 all: sub-rmapplugin-all-ordered FORCE
125 all: sub-rmapplugin-all-ordered FORCE
126 clean: sub-rmapplugin-clean-ordered FORCE
126 clean: sub-rmapplugin-clean-ordered FORCE
127 distclean: sub-rmapplugin-distclean-ordered FORCE
127 distclean: sub-rmapplugin-distclean-ordered FORCE
128 -$(DEL_FILE) Makefile
128 -$(DEL_FILE) Makefile
129 install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE
129 install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE
130 uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE
130 uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE
131
131
132 sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE)
132 sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE)
133 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check
133 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check
134 check: sub-rmapplugin-check_ordered
134 check: sub-rmapplugin-check_ordered
135
135
136 mocclean: compiler_moc_header_clean compiler_moc_source_clean
136 mocclean: compiler_moc_header_clean compiler_moc_source_clean
137
137
138 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
138 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
139 install: install_subtargets FORCE
139 install: install_subtargets FORCE
140
140
141 uninstall: uninstall_subtargets FORCE
141 uninstall: uninstall_subtargets FORCE
142
142
143 FORCE:
143 FORCE:
144
144
@@ -1,197 +1,197
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T09:55:13. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-07T12:53:04. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
7 <value type="int">0</value>
7 <value type="int">0</value>
8 </data>
8 </data>
9 <data>
9 <data>
10 <variable>ProjectExplorer.Project.EditorSettings</variable>
10 <variable>ProjectExplorer.Project.EditorSettings</variable>
11 <valuemap type="QVariantMap">
11 <valuemap type="QVariantMap">
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 <value type="QString" key="language">Cpp</value>
16 <value type="QString" key="language">Cpp</value>
17 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 </valuemap>
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 <value type="QString" key="language">QmlJS</value>
22 <value type="QString" key="language">QmlJS</value>
23 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 </valuemap>
25 </valuemap>
26 </valuemap>
26 </valuemap>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 </valuemap>
45 </valuemap>
46 </data>
46 </data>
47 <data>
47 <data>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 <valuemap type="QVariantMap"/>
49 <valuemap type="QVariantMap"/>
50 </data>
50 </data>
51 <data>
51 <data>
52 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
53 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 </valuemap>
71 </valuemap>
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
79 <value type="QString">-r</value>
80 </valuelist>
80 </valuelist>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 </valuemap>
84 </valuemap>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 </valuemap>
89 </valuemap>
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
98 <value type="QString">-r</value>
99 </valuelist>
99 </valuelist>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 </valuemap>
103 </valuemap>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 </valuemap>
108 </valuemap>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 </valuemap>
118 </valuemap>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 </valuemap>
126 </valuemap>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 </valuemap>
131 </valuemap>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 <value type="int">0</value>
150 <value type="int">0</value>
151 <value type="int">1</value>
151 <value type="int">1</value>
152 <value type="int">2</value>
152 <value type="int">2</value>
153 <value type="int">3</value>
153 <value type="int">3</value>
154 <value type="int">4</value>
154 <value type="int">4</value>
155 <value type="int">5</value>
155 <value type="int">5</value>
156 <value type="int">6</value>
156 <value type="int">6</value>
157 <value type="int">7</value>
157 <value type="int">7</value>
158 <value type="int">8</value>
158 <value type="int">8</value>
159 <value type="int">9</value>
159 <value type="int">9</value>
160 <value type="int">10</value>
160 <value type="int">10</value>
161 <value type="int">11</value>
161 <value type="int">11</value>
162 <value type="int">12</value>
162 <value type="int">12</value>
163 <value type="int">13</value>
163 <value type="int">13</value>
164 <value type="int">14</value>
164 <value type="int">14</value>
165 </valuelist>
165 </valuelist>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
181 </valuemap>
181 </valuemap>
182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
183 </valuemap>
183 </valuemap>
184 </data>
184 </data>
185 <data>
185 <data>
186 <variable>ProjectExplorer.Project.TargetCount</variable>
186 <variable>ProjectExplorer.Project.TargetCount</variable>
187 <value type="int">1</value>
187 <value type="int">1</value>
188 </data>
188 </data>
189 <data>
189 <data>
190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
192 </data>
192 </data>
193 <data>
193 <data>
194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
195 <value type="int">14</value>
195 <value type="int">14</value>
196 </data>
196 </data>
197 </qtcreator>
197 </qtcreator>
@@ -1,430 +1,456
1 #include "hkdisplay.h"
1 #include "hkdisplay.h"
2
2
3 HKDisplay::HKDisplay(QWidget *parent) :
3 HKDisplay::HKDisplay(QWidget *parent) :
4 QWidget(parent)
4 QWidget(parent)
5 {
5 {
6 QFont font;
6 QFont font;
7 font = QFont(this->fontInfo().family(), HK_INFORMATION_FONT_SIZE, QFont::Light);
7 font = QFont(this->fontInfo().family(), HK_INFORMATION_FONT_SIZE, QFont::Light);
8
8
9 mainLayout = new QGridLayout();
9 mainLayout = new QGridLayout();
10
10
11 setupLFRStatusWord();
11 setupLFRStatusWord();
12 setupLFRSWVersion();
12 setupLFRSWVersion();
13 setupTCStatistics();
13 setupTCStatistics();
14 setupAnomalyStatistics();
14 setupAnomalyStatistics();
15 setupSpaceWireIFStatistics();
15 setupSpaceWireIFStatistics();
16 setupErrorCountersSpaceWire();
16 setupErrorCountersSpaceWire();
17
17
18 groupbox_lfrStatusWord->setFont(font);
18 groupbox_lfrStatusWord->setFont(font);
19 groupbox_lfrSWVersion->setFont(font);
19 groupbox_lfrSWVersion->setFont(font);
20 groupbox_tcStatistics->setFont(font);
20 groupbox_tcStatistics->setFont(font);
21 groupbox_anomalyStatistics->setFont(font);
21 groupbox_anomalyStatistics->setFont(font);
22 groupbox_spacewireIFStatisctics->setFont(font);
22 groupbox_spacewireIFStatisctics->setFont(font);
23 groupbox_errorCountersSpaceWire->setFont(font);
23 groupbox_errorCountersSpaceWire->setFont(font);
24
24
25 mainLayout->addWidget(groupbox_lfrStatusWord, 0,0,1,1);
25 mainLayout->addWidget(groupbox_lfrStatusWord, 0,0,1,1);
26 mainLayout->addWidget(groupbox_lfrSWVersion, 0,1,1,1);
26 mainLayout->addWidget(groupbox_lfrSWVersion, 0,1,1,1);
27 mainLayout->addWidget(groupbox_anomalyStatistics, 0,2,1,1);
27 mainLayout->addWidget(groupbox_anomalyStatistics, 0,2,1,1);
28 mainLayout->addWidget(groupbox_tcStatistics, 1,0,1,1);
28 mainLayout->addWidget(groupbox_tcStatistics, 1,0,1,1);
29 mainLayout->addWidget(groupbox_spacewireIFStatisctics, 1, 1, 1, 1);
29 mainLayout->addWidget(groupbox_spacewireIFStatisctics, 1, 1, 1, 1);
30 mainLayout->addWidget(groupbox_errorCountersSpaceWire, 1, 2, 1, 1);
30 mainLayout->addWidget(groupbox_errorCountersSpaceWire, 1, 2, 1, 1);
31 mainLayout->setColumnStretch(3, 1);
31 mainLayout->setColumnStretch(3, 1);
32 mainLayout->setRowStretch(2, 1);
32 mainLayout->setRowStretch(2, 1);
33
33
34 this->setLayout(mainLayout);
34 this->setLayout(mainLayout);
35 }
35 }
36
36
37 void HKDisplay::setupLFRStatusWord()
37 void HKDisplay::setupLFRStatusWord()
38 {
38 {
39 groupbox_lfrStatusWord = new QGroupBox("LFR Status Word");
39 groupbox_lfrStatusWord = new QGroupBox("LFR Status Word");
40 box_lfrStatusWord = new QVBoxLayout();
40 box_lfrStatusWord = new QVBoxLayout();
41 hk_lfr_mode = new QLabel("hk_lfr_mode: -");
41 hk_lfr_mode = new QLabel("hk_lfr_mode: -");
42 hk_lfr_dpu_spw_enabled = new QLabel("hk_lfr_dpu_spw_enabled: -");
42 hk_lfr_dpu_spw_enabled = new QLabel("hk_lfr_dpu_spw_enabled: -");
43 hk_lfr_dpu_link_state = new QLabel("hk_lfr_dpu_link_state: -");
43 hk_lfr_dpu_link_state = new QLabel("hk_lfr_dpu_link_state: -");
44 hk_lfr_dpu_spare = new QLabel("hk_lfr_dpu_spare: -");
44 sy_lfr_watchdog_enabled = new QLabel("sy_lfr_watchdog_enabled: -");
45 sy_lfr_watchdog_enabled = new QLabel("sy_lfr_watchdog_enabled: -");
45 hk_lfr_calib_enabled = new QLabel("hk_lfr_calib_enabled: -");
46 hk_lfr_calib_enabled = new QLabel("hk_lfr_calib_enabled: -");
46 hk_lfr_reset_cause = new QLabel("hk_lfr_reset_cause: -");
47 hk_lfr_reset_cause = new QLabel("hk_lfr_reset_cause: -");
47 box_lfrStatusWord->addWidget(hk_lfr_mode);
48 box_lfrStatusWord->addWidget(hk_lfr_mode);
48 box_lfrStatusWord->addWidget(hk_lfr_dpu_spw_enabled);
49 box_lfrStatusWord->addWidget(hk_lfr_dpu_spw_enabled);
49 box_lfrStatusWord->addWidget(hk_lfr_dpu_link_state);
50 box_lfrStatusWord->addWidget(hk_lfr_dpu_link_state);
51 box_lfrStatusWord->addWidget(hk_lfr_dpu_spare);
50 box_lfrStatusWord->addWidget(sy_lfr_watchdog_enabled);
52 box_lfrStatusWord->addWidget(sy_lfr_watchdog_enabled);
51 box_lfrStatusWord->addWidget(hk_lfr_calib_enabled);
53 box_lfrStatusWord->addWidget(hk_lfr_calib_enabled);
52 box_lfrStatusWord->addWidget(hk_lfr_reset_cause);
54 box_lfrStatusWord->addWidget(hk_lfr_reset_cause);
53 box_lfrStatusWord->insertStretch(6);
55 box_lfrStatusWord->insertStretch(6);
54 groupbox_lfrStatusWord->setLayout(box_lfrStatusWord);
56 groupbox_lfrStatusWord->setLayout(box_lfrStatusWord);
55 }
57 }
56
58
57 void HKDisplay::setupLFRSWVersion()
59 void HKDisplay::setupLFRSWVersion()
58 {
60 {
59 groupbox_lfrSWVersion = new QGroupBox("LFR Software Version");
61 groupbox_lfrSWVersion = new QGroupBox("LFR Software Version");
60 box_lfrSWVersion = new QVBoxLayout();
62 box_lfrSWVersion = new QVBoxLayout();
61 sy_lfr_sw_version_n1 = new QLabel("sy_lfr_sw_version_n1: -");
63 sy_lfr_sw_version_n1 = new QLabel("sy_lfr_sw_version_n1: -");
62 sy_lfr_sw_version_n2 = new QLabel("sy_lfr_sw_version_n2: -");
64 sy_lfr_sw_version_n2 = new QLabel("sy_lfr_sw_version_n2: -");
63 sy_lfr_sw_version_n3 = new QLabel("sy_lfr_sw_version_n3: -");
65 sy_lfr_sw_version_n3 = new QLabel("sy_lfr_sw_version_n3: -");
64 sy_lfr_sw_version_n4 = new QLabel("sy_lfr_sw_version_n4: -");
66 sy_lfr_sw_version_n4 = new QLabel("sy_lfr_sw_version_n4: -");
65 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n1);
67 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n1);
66 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n2);
68 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n2);
67 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n3);
69 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n3);
68 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n4);
70 box_lfrSWVersion->addWidget(sy_lfr_sw_version_n4);
69 box_lfrSWVersion->insertStretch(4);
71 box_lfrSWVersion->insertStretch(4);
70 groupbox_lfrSWVersion->setLayout(box_lfrSWVersion);
72 groupbox_lfrSWVersion->setLayout(box_lfrSWVersion);
71 }
73 }
72
74
73 void HKDisplay::setupTCStatistics()
75 void HKDisplay::setupTCStatistics()
74 {
76 {
75 groupbox_tcStatistics = new QGroupBox("TC Statistics");
77 groupbox_tcStatistics = new QGroupBox("TC Statistics");
76 box_tcStatistics = new QVBoxLayout();
78 box_tcStatistics = new QVBoxLayout();
77 hk_lfr_update_info_tc_cnt = new QLabel("hk_lfr_update_info_tc_cnt: -");
79 hk_lfr_update_info_tc_cnt = new QLabel("hk_lfr_update_info_tc_cnt: -");
78 hk_lfr_update_time_tc_cnt = new QLabel("hk_lfr_update_time_tc_cnt: -");
80 hk_lfr_update_time_tc_cnt = new QLabel("hk_lfr_update_time_tc_cnt: -");
79 hk_dpu_exe_tc_lfr_cnt = new QLabel("hk_dpu_exe_tc_lfr_cnt: -");
81 hk_dpu_exe_tc_lfr_cnt = new QLabel("hk_dpu_exe_tc_lfr_cnt: -");
80 hk_dpu_rej_tc_lfr_cnt = new QLabel("hk_dpu_rej_tc_lfr_cnt: -");
82 hk_dpu_rej_tc_lfr_cnt = new QLabel("hk_dpu_rej_tc_lfr_cnt: -");
81 hk_lfr_last_exe_tc_id = new QLabel("hk_lfr_last_exe_tc_id: -");
83 hk_lfr_last_exe_tc_id = new QLabel("hk_lfr_last_exe_tc_id: -");
82 hk_lfr_last_exe_tc_type = new QLabel("hk_lfr_last_exe_tc_type: -");
84 hk_lfr_last_exe_tc_type = new QLabel("hk_lfr_last_exe_tc_type: -");
83 hk_lfr_last_exe_tc_subtype = new QLabel("hk_lfr_last_exe_tc_subtype: -");
85 hk_lfr_last_exe_tc_subtype = new QLabel("hk_lfr_last_exe_tc_subtype: -");
84 hk_lfr_last_exe_tc_time = new QLabel("hk_lfr_last_exe_tc_time: -");
86 hk_lfr_last_exe_tc_time = new QLabel("hk_lfr_last_exe_tc_time: -");
85 hk_lfr_last_rej_tc_id = new QLabel("hk_lfr_last_rej_tc_id: -");
87 hk_lfr_last_rej_tc_id = new QLabel("hk_lfr_last_rej_tc_id: -");
86 hk_lfr_last_rej_tc_type = new QLabel("hk_lfr_last_rej_tc_type: -");
88 hk_lfr_last_rej_tc_type = new QLabel("hk_lfr_last_rej_tc_type: -");
87 hk_lfr_last_rej_tc_subtype = new QLabel("hk_lfr_last_rej_tc_subtype: -");
89 hk_lfr_last_rej_tc_subtype = new QLabel("hk_lfr_last_rej_tc_subtype: -");
88 hk_lfr_last_rej_tc_time = new QLabel("hk_lfr_last_rej_tc_time: -");
90 hk_lfr_last_rej_tc_time = new QLabel("hk_lfr_last_rej_tc_time: -");
89 box_tcStatistics->addWidget(hk_lfr_update_info_tc_cnt);
91 box_tcStatistics->addWidget(hk_lfr_update_info_tc_cnt);
90 box_tcStatistics->addWidget(hk_lfr_update_time_tc_cnt);
92 box_tcStatistics->addWidget(hk_lfr_update_time_tc_cnt);
91 box_tcStatistics->addWidget(hk_dpu_exe_tc_lfr_cnt);
93 box_tcStatistics->addWidget(hk_dpu_exe_tc_lfr_cnt);
92 box_tcStatistics->addWidget(hk_dpu_rej_tc_lfr_cnt);
94 box_tcStatistics->addWidget(hk_dpu_rej_tc_lfr_cnt);
93 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_id);
95 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_id);
94 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_type);
96 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_type);
95 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_subtype);
97 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_subtype);
96 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_time);
98 box_tcStatistics->addWidget(hk_lfr_last_exe_tc_time);
97 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_id);
99 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_id);
98 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_type);
100 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_type);
99 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_subtype);
101 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_subtype);
100 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_time);
102 box_tcStatistics->addWidget(hk_lfr_last_rej_tc_time);
101 box_tcStatistics->insertStretch(12, 1);
103 box_tcStatistics->insertStretch(12, 1);
102 groupbox_tcStatistics->setLayout(box_tcStatistics);
104 groupbox_tcStatistics->setLayout(box_tcStatistics);
103 }
105 }
104
106
105 void HKDisplay::setupAnomalyStatistics()
107 void HKDisplay::setupAnomalyStatistics()
106 {
108 {
107 groupbox_anomalyStatistics = new QGroupBox("Anomaly Statistics");
109 groupbox_anomalyStatistics = new QGroupBox("Anomaly Statistics");
108 box_anomalyStatistics = new QVBoxLayout();
110 box_anomalyStatistics = new QVBoxLayout();
109 hk_lfr_le_cnt = new QLabel("hk_lfr_le_cnt: -");
111 hk_lfr_le_cnt = new QLabel("hk_lfr_le_cnt: -");
110 hk_lfr_me_cnt = new QLabel("hk_lfr_me_cnt: -");
112 hk_lfr_me_cnt = new QLabel("hk_lfr_me_cnt: -");
111 hk_lfr_he_cnt = new QLabel("hk_lfr_he_cnt: -");
113 hk_lfr_he_cnt = new QLabel("hk_lfr_he_cnt: -");
112 hk_lfr_last_er_rid = new QLabel("hk_lfr_last_er_rid: -");
114 hk_lfr_last_er_rid = new QLabel("hk_lfr_last_er_rid: -");
113 hk_lfr_last_er_code = new QLabel("hk_lfr_last_er_code: -");
115 hk_lfr_last_er_code = new QLabel("hk_lfr_last_er_code: -");
114 hk_lfr_last_er_time = new QLabel("hk_lfr_last_er_time: -");
116 hk_lfr_last_er_time = new QLabel("hk_lfr_last_er_time: -");
115 box_anomalyStatistics->addWidget(hk_lfr_le_cnt);
117 box_anomalyStatistics->addWidget(hk_lfr_le_cnt);
116 box_anomalyStatistics->addWidget(hk_lfr_me_cnt);
118 box_anomalyStatistics->addWidget(hk_lfr_me_cnt);
117 box_anomalyStatistics->addWidget(hk_lfr_he_cnt);
119 box_anomalyStatistics->addWidget(hk_lfr_he_cnt);
118 box_anomalyStatistics->addWidget(hk_lfr_last_er_rid);
120 box_anomalyStatistics->addWidget(hk_lfr_last_er_rid);
119 box_anomalyStatistics->addWidget(hk_lfr_last_er_code);
121 box_anomalyStatistics->addWidget(hk_lfr_last_er_code);
120 box_anomalyStatistics->addWidget(hk_lfr_last_er_time);
122 box_anomalyStatistics->addWidget(hk_lfr_last_er_time);
121 box_anomalyStatistics->insertStretch(6, 1);
123 box_anomalyStatistics->insertStretch(6, 1);
122 groupbox_anomalyStatistics->setLayout(box_anomalyStatistics);
124 groupbox_anomalyStatistics->setLayout(box_anomalyStatistics);
123 }
125 }
124
126
125 void HKDisplay::setupSpaceWireIFStatistics()
127 void HKDisplay::setupSpaceWireIFStatistics()
126 {
128 {
127 groupbox_spacewireIFStatisctics = new QGroupBox("SpaceWire IF Statistics");
129 groupbox_spacewireIFStatisctics = new QGroupBox("SpaceWire IF Statistics");
128 box_spacewireIFStatisctics = new QVBoxLayout();
130 box_spacewireIFStatisctics = new QVBoxLayout();
129
131
130 hk_lfr_dpu_spw_pkt_rcv_cnt = new QLabel("hk_lfr_dpu_spw_pkt_rcv_cnt: -");
132 hk_lfr_dpu_spw_pkt_rcv_cnt = new QLabel("hk_lfr_dpu_spw_pkt_rcv_cnt: -");
131 hk_lfr_dpu_spw_pkt_sent_cnt = new QLabel("hk_lfr_dpu_spw_pkt_sent_cnt: -");
133 hk_lfr_dpu_spw_pkt_sent_cnt = new QLabel("hk_lfr_dpu_spw_pkt_sent_cnt: -");
132 hk_lfr_dpu_spw_tick_out_cnt = new QLabel("hk_lfr_dpu_spw_tick_out_cnt: -");
134 hk_lfr_dpu_spw_tick_out_cnt = new QLabel("hk_lfr_dpu_spw_tick_out_cnt: -");
133 hk_lfr_dpu_spw_last_timc = new QLabel("hk_lfr_dpu_spw_last_timc: -");
135 hk_lfr_dpu_spw_last_timc = new QLabel("hk_lfr_dpu_spw_last_timc: -");
134
136
135 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_rcv_cnt);
137 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_rcv_cnt);
136 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_sent_cnt);
138 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_sent_cnt);
137 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_tick_out_cnt);
139 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_tick_out_cnt);
138 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_last_timc);
140 box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_last_timc);
139 box_spacewireIFStatisctics->insertStretch(5);
141 box_spacewireIFStatisctics->insertStretch(5);
140
142
141 groupbox_spacewireIFStatisctics->setLayout(box_spacewireIFStatisctics->layout());
143 groupbox_spacewireIFStatisctics->setLayout(box_spacewireIFStatisctics->layout());
142 }
144 }
143
145
144 void HKDisplay::setupErrorCountersSpaceWire()
146 void HKDisplay::setupErrorCountersSpaceWire()
145 {
147 {
146 groupbox_errorCountersSpaceWire = new QGroupBox("SpaceWire Error Counters");
148 groupbox_errorCountersSpaceWire = new QGroupBox("SpaceWire Error Counters");
147 box_errorCountersSpaceWire = new QVBoxLayout();
149 box_errorCountersSpaceWire = new QVBoxLayout();
148
150
149 hk_lfr_dpu_spw_parity = new QLabel("hk_lfr_dpu_spw_parity: -");
151 hk_lfr_dpu_spw_parity = new QLabel("hk_lfr_dpu_spw_parity: -");
150 hk_lfr_dpu_spw_disconnect = new QLabel("hk_lfr_dpu_spw_disconnect: -");
152 hk_lfr_dpu_spw_disconnect = new QLabel("hk_lfr_dpu_spw_disconnect: -");
151 hk_lfr_dpu_spw_escape = new QLabel("hk_lfr_dpu_spw_escape: -");
153 hk_lfr_dpu_spw_escape = new QLabel("hk_lfr_dpu_spw_escape: -");
152 hk_lfr_dpu_spw_credit = new QLabel("hk_lfr_dpu_spw_credit: -");
154 hk_lfr_dpu_spw_credit = new QLabel("hk_lfr_dpu_spw_credit: -");
153 hk_lfr_dpu_spw_write_sync = new QLabel("hk_lfr_dpu_spw_write_sync: -");
155 hk_lfr_dpu_spw_write_sync = new QLabel("hk_lfr_dpu_spw_write_sync: -");
154 hk_lfr_dpu_spw_rx_ahb = new QLabel("hk_lfr_dpu_spw_rx_ahb: -");
156 hk_lfr_dpu_spw_rx_ahb = new QLabel("hk_lfr_dpu_spw_rx_ahb: -");
155 hk_lfr_dpu_spw_tx_ahb = new QLabel("hk_lfr_dpu_spw_tx_ahb: -");
157 hk_lfr_dpu_spw_tx_ahb = new QLabel("hk_lfr_dpu_spw_tx_ahb: -");
156 hk_lfr_dpu_spw_header_crc = new QLabel("hk_lfr_dpu_spw_header_crc: -");
158 hk_lfr_dpu_spw_header_crc = new QLabel("hk_lfr_dpu_spw_header_crc: -");
157 hk_lfr_dpu_spw_data_crc = new QLabel("hk_lfr_dpu_spw_data_crc: -");
159 hk_lfr_dpu_spw_data_crc = new QLabel("hk_lfr_dpu_spw_data_crc: -");
158 hk_lfr_dpu_spw_early_eop = new QLabel("hk_lfr_dpu_spw_early_eop: -");
160 hk_lfr_dpu_spw_early_eop = new QLabel("hk_lfr_dpu_spw_early_eop: -");
159 hk_lfr_dpu_spw_invalid_addr = new QLabel("hk_lfr_dpu_spw_invalid_addr: -");
161 hk_lfr_dpu_spw_invalid_addr = new QLabel("hk_lfr_dpu_spw_invalid_addr: -");
160 hk_lfr_dpu_spw_eep = new QLabel("hk_lfr_dpu_spw_eep: -");
162 hk_lfr_dpu_spw_eep = new QLabel("hk_lfr_dpu_spw_eep: -");
161 hk_lfr_dpu_spw_rx_too_big = new QLabel("hk_lfr_dpu_spw_rx_too_big: -");
163 hk_lfr_dpu_spw_rx_too_big = new QLabel("hk_lfr_dpu_spw_rx_too_big: -");
162
164
163 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_parity);
165 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_parity);
164 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_disconnect);
166 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_disconnect);
165 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_escape);
167 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_escape);
166 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_credit);
168 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_credit);
167 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_write_sync);
169 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_write_sync);
168 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_ahb);
170 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_ahb);
169 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_tx_ahb);
171 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_tx_ahb);
170 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_header_crc);
172 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_header_crc);
171 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_data_crc);
173 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_data_crc);
172 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_early_eop);
174 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_early_eop);
173 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_invalid_addr);
175 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_invalid_addr);
174 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_eep);
176 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_eep);
175 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_too_big);
177 box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_too_big);
176
178
177 groupbox_errorCountersSpaceWire->setLayout(box_errorCountersSpaceWire->layout());
179 groupbox_errorCountersSpaceWire->setLayout(box_errorCountersSpaceWire->layout());
178 }
180 }
179
181
180 void HKDisplay::displayPacket(TMPacketToRead *tmPacketToRead)
182 void HKDisplay::displayPacket(TMPacketToRead *tmPacketToRead)
181 {
183 {
182 Packet_TM_LFR_HK_t *housekeepingPacket;
184 Packet_TM_LFR_HK_t *housekeepingPacket;
183 if (tmPacketToRead->size != HK_PACKET_SIZE) {
185 if (tmPacketToRead->size != HK_PACKET_SIZE) {
184 emit displayMessage("in displayPacket *** HK packet size is "
186 emit displayMessage("in displayPacket *** HK packet size is "
185 + QString::number(tmPacketToRead->size)
187 + QString::number(tmPacketToRead->size)
186 + " instead of "
188 + " instead of "
187 + QString::number(HK_PACKET_SIZE));
189 + QString::number(HK_PACKET_SIZE));
188 }
190 }
189 else {
191 else {
190 housekeepingPacket = (Packet_TM_LFR_HK_t *) tmPacketToRead->Value;
192 housekeepingPacket = (Packet_TM_LFR_HK_t *) tmPacketToRead->Value;
191
193
192 updateLFRMode(housekeepingPacket);
194 update_lfr_status_word( housekeepingPacket );
193 updateSWVersion(housekeepingPacket);
195 updateSWVersion( housekeepingPacket );
194 updateTCStatistics(housekeepingPacket);
196 updateTCStatistics( housekeepingPacket );
195 updateAnomalyStatistics(housekeepingPacket);
197 updateAnomalyStatistics( housekeepingPacket );
196 updateSpaceWireIFStatistics(housekeepingPacket);
198 updateSpaceWireIFStatistics( housekeepingPacket );
197 updateErrorCountersSpaceWire(housekeepingPacket);
199 updateErrorCountersSpaceWire( housekeepingPacket );
198 }
200 }
199 }
201 }
200
202
201 void HKDisplay::displayPacketLESIA(TMPacketToRead *tmPacketToRead)
203 void HKDisplay::displayPacketLESIA(TMPacketToRead *tmPacketToRead)
202 {
204 {
203 Packet_TM_LFR_HK_t *housekeepingPacket;
205 Packet_TM_LFR_HK_t *housekeepingPacket;
204 if (tmPacketToRead->size != (HK_PACKET_SIZE - 4)) {
206 if (tmPacketToRead->size != (HK_PACKET_SIZE - 4)) {
205 emit displayMessage("in displayPacket *** HK packet size is "
207 emit displayMessage("in displayPacket *** HK packet size is "
206 + QString::number(tmPacketToRead->size)
208 + QString::number(tmPacketToRead->size)
207 + " instead of "
209 + " instead of "
208 + QString::number(HK_PACKET_SIZE-4));
210 + QString::number(HK_PACKET_SIZE-4));
209 }
211 }
210 else {
212 else {
211 housekeepingPacket = (Packet_TM_LFR_HK_t *) (tmPacketToRead->Value-4);
213 housekeepingPacket = (Packet_TM_LFR_HK_t *) (tmPacketToRead->Value-4);
212
214
213 updateLFRMode(housekeepingPacket);
215 update_lfr_status_word( housekeepingPacket );
214 updateSWVersion(housekeepingPacket);
216 updateSWVersion( housekeepingPacket );
215 updateTCStatistics(housekeepingPacket);
217 updateTCStatistics( housekeepingPacket );
216 updateAnomalyStatistics(housekeepingPacket);
218 updateAnomalyStatistics( housekeepingPacket );
217 updateSpaceWireIFStatistics(housekeepingPacket);
219 updateSpaceWireIFStatistics( housekeepingPacket );
218 updateErrorCountersSpaceWire(housekeepingPacket);
220 updateErrorCountersSpaceWire( housekeepingPacket );
219 }
221 }
220 }
222 }
221
223
222 void HKDisplay::updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket)
224 void HKDisplay::update_lfr_status_word(Packet_TM_LFR_HK_t *housekeepingPacket)
223 {
225 {
224 hk_lfr_mode->setText("hk_lfr_mode: "
226 hk_lfr_mode->setText("hk_lfr_mode: "
225 +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x70) >> 4 ) )
227 +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0xf0) >> 4 ) )
226 );
228 );
229
230 hk_lfr_dpu_spw_enabled->setText("hk_lfr_dpu_spw_enabled: "
231 +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x08) >> 3 ) )
232 );
233
234 hk_lfr_dpu_link_state->setText("hk_lfr_dpu_link_state: "
235 +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x07) >> 0 ) )
236 );
237
238 hk_lfr_dpu_spare->setText("hk_lfr_dpu_spare: "
239 +QString::number( ( (housekeepingPacket->lfr_status_word[1] & 0xe0) >> 5 ) )
240 );
241
242 sy_lfr_watchdog_enabled->setText("sy_lfr_watchdog_enabled: "
243 +QString::number( ( (housekeepingPacket->lfr_status_word[1] & 0x10) >> 4 ) )
244 );
245
246 hk_lfr_calib_enabled->setText("hk_lfr_calib_enabled: "
247 +QString::number( ( (housekeepingPacket->lfr_status_word[1] & 0x08) >> 3 ) )
248 );
249
250 hk_lfr_reset_cause->setText(" hk_lfr_reset_cause: "
251 +QString::number( ( (housekeepingPacket->lfr_status_word[1] & 0x07) >> 0 ) )
252 );
227
253
228 }
254 }
229
255
230 void HKDisplay::updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket)
256 void HKDisplay::updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket)
231 {
257 {
232 sy_lfr_sw_version_n1->setText("sy_lfr_sw_version_n1: "
258 sy_lfr_sw_version_n1->setText("sy_lfr_sw_version_n1: "
233 +QString::number( housekeepingPacket->lfr_sw_version[0] )
259 +QString::number( housekeepingPacket->lfr_sw_version[0] )
234 );
260 );
235 sy_lfr_sw_version_n2->setText("sy_lfr_sw_version_n2: "
261 sy_lfr_sw_version_n2->setText("sy_lfr_sw_version_n2: "
236 +QString::number( housekeepingPacket->lfr_sw_version[1] )
262 +QString::number( housekeepingPacket->lfr_sw_version[1] )
237 );
263 );
238 sy_lfr_sw_version_n3->setText("sy_lfr_sw_version_n3: "
264 sy_lfr_sw_version_n3->setText("sy_lfr_sw_version_n3: "
239 +QString::number( housekeepingPacket->lfr_sw_version[2] )
265 +QString::number( housekeepingPacket->lfr_sw_version[2] )
240 );
266 );
241 sy_lfr_sw_version_n4->setText("sy_lfr_sw_version_n4: "
267 sy_lfr_sw_version_n4->setText("sy_lfr_sw_version_n4: "
242 +QString::number( housekeepingPacket->lfr_sw_version[3] )
268 +QString::number( housekeepingPacket->lfr_sw_version[3] )
243 );
269 );
244 }
270 }
245
271
246 void HKDisplay::updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
272 void HKDisplay::updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
247 {
273 {
248 // TC Statistics
274 // TC Statistics
249 hk_lfr_update_info_tc_cnt->setText("hk_lfr_update_info_tc_cnt: "
275 hk_lfr_update_info_tc_cnt->setText("hk_lfr_update_info_tc_cnt: "
250 + QString::number(
276 + QString::number(
251 housekeepingPacket->hk_lfr_update_info_tc_cnt[0] * 256
277 housekeepingPacket->hk_lfr_update_info_tc_cnt[0] * 256
252 + housekeepingPacket->hk_lfr_update_info_tc_cnt[1])
278 + housekeepingPacket->hk_lfr_update_info_tc_cnt[1])
253 );
279 );
254 hk_lfr_update_time_tc_cnt->setText("hk_lfr_update_time_tc_cnt: "
280 hk_lfr_update_time_tc_cnt->setText("hk_lfr_update_time_tc_cnt: "
255 + QString::number(
281 + QString::number(
256 housekeepingPacket->hk_lfr_update_time_tc_cnt[0] * 256
282 housekeepingPacket->hk_lfr_update_time_tc_cnt[0] * 256
257 + housekeepingPacket->hk_lfr_update_time_tc_cnt[1])
283 + housekeepingPacket->hk_lfr_update_time_tc_cnt[1])
258 );
284 );
259 hk_dpu_exe_tc_lfr_cnt->setText("hk_dpu_exe_tc_lfr_cnt: "
285 hk_dpu_exe_tc_lfr_cnt->setText("hk_dpu_exe_tc_lfr_cnt: "
260 + QString::number(
286 + QString::number(
261 housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[0] * 256
287 housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[0] * 256
262 + housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[1])
288 + housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[1])
263 );
289 );
264 hk_dpu_rej_tc_lfr_cnt->setText("hk_dpu_rej_tc_lfr_cnt: "
290 hk_dpu_rej_tc_lfr_cnt->setText("hk_dpu_rej_tc_lfr_cnt: "
265 + QString::number(
291 + QString::number(
266 housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[0] * 256
292 housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[0] * 256
267 + housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[1])
293 + housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[1])
268 );
294 );
269 hk_lfr_last_exe_tc_id->setText("hk_lfr_last_exe_tc_id: "
295 hk_lfr_last_exe_tc_id->setText("hk_lfr_last_exe_tc_id: "
270 + QString::number(
296 + QString::number(
271 housekeepingPacket->hk_lfr_last_exe_tc_id[0] * 256
297 housekeepingPacket->hk_lfr_last_exe_tc_id[0] * 256
272 + housekeepingPacket->hk_lfr_last_exe_tc_id[1], 16)
298 + housekeepingPacket->hk_lfr_last_exe_tc_id[1], 16)
273 );
299 );
274 hk_lfr_last_exe_tc_type->setText("hk_lfr_last_exe_tc_type: "
300 hk_lfr_last_exe_tc_type->setText("hk_lfr_last_exe_tc_type: "
275 + QString::number(
301 + QString::number(
276 housekeepingPacket->hk_lfr_last_exe_tc_type[0] * 256
302 housekeepingPacket->hk_lfr_last_exe_tc_type[0] * 256
277 + housekeepingPacket->hk_lfr_last_exe_tc_type[1])
303 + housekeepingPacket->hk_lfr_last_exe_tc_type[1])
278 );
304 );
279 hk_lfr_last_exe_tc_subtype->setText("hk_lfr_last_exe_tc_subtype: "
305 hk_lfr_last_exe_tc_subtype->setText("hk_lfr_last_exe_tc_subtype: "
280 + QString::number(
306 + QString::number(
281 housekeepingPacket->hk_lfr_last_exe_tc_subtype[0] * 256
307 housekeepingPacket->hk_lfr_last_exe_tc_subtype[0] * 256
282 + housekeepingPacket->hk_lfr_last_exe_tc_subtype[1])
308 + housekeepingPacket->hk_lfr_last_exe_tc_subtype[1])
283 );
309 );
284 hk_lfr_last_exe_tc_time->setText("hk_lfr_last_exe_tc_time: "
310 hk_lfr_last_exe_tc_time->setText("hk_lfr_last_exe_tc_time: "
285 + QString::number(
311 + QString::number(
286 (housekeepingPacket->hk_lfr_last_exe_tc_time[0] << 24)
312 (housekeepingPacket->hk_lfr_last_exe_tc_time[0] << 24)
287 + (housekeepingPacket->hk_lfr_last_exe_tc_time[1] << 16)
313 + (housekeepingPacket->hk_lfr_last_exe_tc_time[1] << 16)
288 + (housekeepingPacket->hk_lfr_last_exe_tc_time[2] << 8)
314 + (housekeepingPacket->hk_lfr_last_exe_tc_time[2] << 8)
289 + (housekeepingPacket->hk_lfr_last_exe_tc_time[3]), 16
315 + (housekeepingPacket->hk_lfr_last_exe_tc_time[3]), 16
290 )
316 )
291 );
317 );
292 hk_lfr_last_rej_tc_id->setText("hk_lfr_last_rej_tc_id: "
318 hk_lfr_last_rej_tc_id->setText("hk_lfr_last_rej_tc_id: "
293 + QString::number(
319 + QString::number(
294 housekeepingPacket->hk_lfr_last_rej_tc_id[0] * 256
320 housekeepingPacket->hk_lfr_last_rej_tc_id[0] * 256
295 + housekeepingPacket->hk_lfr_last_rej_tc_id[1], 16)
321 + housekeepingPacket->hk_lfr_last_rej_tc_id[1], 16)
296 );
322 );
297 hk_lfr_last_rej_tc_type->setText("hk_lfr_last_rej_tc_type: "
323 hk_lfr_last_rej_tc_type->setText("hk_lfr_last_rej_tc_type: "
298 + QString::number(
324 + QString::number(
299 housekeepingPacket->hk_lfr_last_rej_tc_type[0] * 256
325 housekeepingPacket->hk_lfr_last_rej_tc_type[0] * 256
300 + housekeepingPacket->hk_lfr_last_rej_tc_type[1])
326 + housekeepingPacket->hk_lfr_last_rej_tc_type[1])
301 );
327 );
302 hk_lfr_last_rej_tc_subtype->setText("hk_lfr_last_rej_tc_subtype: "
328 hk_lfr_last_rej_tc_subtype->setText("hk_lfr_last_rej_tc_subtype: "
303 + QString::number(
329 + QString::number(
304 housekeepingPacket->hk_lfr_last_rej_tc_subtype[0] * 256
330 housekeepingPacket->hk_lfr_last_rej_tc_subtype[0] * 256
305 + housekeepingPacket->hk_lfr_last_rej_tc_subtype[1])
331 + housekeepingPacket->hk_lfr_last_rej_tc_subtype[1])
306 );
332 );
307 hk_lfr_last_rej_tc_time->setText("hk_lfr_last_rej_tc_time: "
333 hk_lfr_last_rej_tc_time->setText("hk_lfr_last_rej_tc_time: "
308 + QString::number(
334 + QString::number(
309 (housekeepingPacket->hk_lfr_last_rej_tc_time[0] << 24)
335 (housekeepingPacket->hk_lfr_last_rej_tc_time[0] << 24)
310 + (housekeepingPacket->hk_lfr_last_rej_tc_time[1] << 16)
336 + (housekeepingPacket->hk_lfr_last_rej_tc_time[1] << 16)
311 + (housekeepingPacket->hk_lfr_last_rej_tc_time[2] << 8)
337 + (housekeepingPacket->hk_lfr_last_rej_tc_time[2] << 8)
312 + (housekeepingPacket->hk_lfr_last_rej_tc_time[3]), 16
338 + (housekeepingPacket->hk_lfr_last_rej_tc_time[3]), 16
313 )
339 )
314 );
340 );
315 }
341 }
316
342
317 void HKDisplay::updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
343 void HKDisplay::updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
318 {
344 {
319 // Anomaly Statistics
345 // Anomaly Statistics
320 hk_lfr_le_cnt->setText("hk_lfr_le_cnt: "
346 hk_lfr_le_cnt->setText("hk_lfr_le_cnt: "
321 + QString::number(
347 + QString::number(
322 housekeepingPacket->hk_lfr_le_cnt[0] * 256
348 housekeepingPacket->hk_lfr_le_cnt[0] * 256
323 + housekeepingPacket->hk_lfr_le_cnt[1])
349 + housekeepingPacket->hk_lfr_le_cnt[1])
324 );
350 );
325 hk_lfr_me_cnt->setText("hk_lfr_me_cnt: "
351 hk_lfr_me_cnt->setText("hk_lfr_me_cnt: "
326 + QString::number(
352 + QString::number(
327 housekeepingPacket->hk_lfr_me_cnt[0] * 256
353 housekeepingPacket->hk_lfr_me_cnt[0] * 256
328 + housekeepingPacket->hk_lfr_me_cnt[1])
354 + housekeepingPacket->hk_lfr_me_cnt[1])
329 );
355 );
330 hk_lfr_he_cnt->setText("hk_lfr_he_cnt: "
356 hk_lfr_he_cnt->setText("hk_lfr_he_cnt: "
331 + QString::number(
357 + QString::number(
332 housekeepingPacket->hk_lfr_he_cnt[0] * 256
358 housekeepingPacket->hk_lfr_he_cnt[0] * 256
333 + housekeepingPacket->hk_lfr_he_cnt[1])
359 + housekeepingPacket->hk_lfr_he_cnt[1])
334 );
360 );
335 hk_lfr_last_er_rid->setText("hk_lfr_last_er_rid: "
361 hk_lfr_last_er_rid->setText("hk_lfr_last_er_rid: "
336 + QString::number(
362 + QString::number(
337 housekeepingPacket->hk_lfr_last_er_rid[0] * 256
363 housekeepingPacket->hk_lfr_last_er_rid[0] * 256
338 + housekeepingPacket->hk_lfr_last_er_rid[1])
364 + housekeepingPacket->hk_lfr_last_er_rid[1])
339 );
365 );
340 hk_lfr_last_er_code->setText("hk_lfr_last_er_code: "
366 hk_lfr_last_er_code->setText("hk_lfr_last_er_code: "
341 + QString::number(
367 + QString::number(
342 housekeepingPacket->hk_lfr_last_er_code)
368 housekeepingPacket->hk_lfr_last_er_code)
343 );
369 );
344 hk_lfr_last_er_time->setText("hk_lfr_last_er_time: "
370 hk_lfr_last_er_time->setText("hk_lfr_last_er_time: "
345 + QString::number(
371 + QString::number(
346 (housekeepingPacket->hk_lfr_last_er_time[0] << 24)
372 (housekeepingPacket->hk_lfr_last_er_time[0] << 24)
347 + (housekeepingPacket->hk_lfr_last_er_time[1] << 16)
373 + (housekeepingPacket->hk_lfr_last_er_time[1] << 16)
348 + (housekeepingPacket->hk_lfr_last_er_time[2] << 8)
374 + (housekeepingPacket->hk_lfr_last_er_time[2] << 8)
349 + (housekeepingPacket->hk_lfr_last_er_time[3]), 16
375 + (housekeepingPacket->hk_lfr_last_er_time[3]), 16
350 )
376 )
351 );
377 );
352 }
378 }
353
379
354 void HKDisplay::updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
380 void HKDisplay::updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket)
355 {
381 {
356 hk_lfr_dpu_spw_pkt_rcv_cnt->setText("hk_lfr_dpu_spw_pkt_rcv_cnt: "
382 hk_lfr_dpu_spw_pkt_rcv_cnt->setText("hk_lfr_dpu_spw_pkt_rcv_cnt: "
357 + QString::number(
383 + QString::number(
358 housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[0] * 256
384 housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[0] * 256
359 + housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[1])
385 + housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[1])
360 );
386 );
361 hk_lfr_dpu_spw_pkt_sent_cnt->setText("hk_lfr_dpu_spw_pkt_sent_cnt: "
387 hk_lfr_dpu_spw_pkt_sent_cnt->setText("hk_lfr_dpu_spw_pkt_sent_cnt: "
362 + QString::number(
388 + QString::number(
363 housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[0] * 256
389 housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[0] * 256
364 + housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[1])
390 + housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[1])
365 );
391 );
366 hk_lfr_dpu_spw_tick_out_cnt->setText("hk_lfr_dpu_spw_tick_out_cnt: "
392 hk_lfr_dpu_spw_tick_out_cnt->setText("hk_lfr_dpu_spw_tick_out_cnt: "
367 + QString::number(
393 + QString::number(
368 housekeepingPacket->hk_lfr_dpu_spw_tick_out_cnt)
394 housekeepingPacket->hk_lfr_dpu_spw_tick_out_cnt)
369 );
395 );
370 hk_lfr_dpu_spw_last_timc->setText("hk_lfr_dpu_spw_last_timc: "
396 hk_lfr_dpu_spw_last_timc->setText("hk_lfr_dpu_spw_last_timc: "
371 + QString::number(
397 + QString::number(
372 housekeepingPacket->hk_lfr_dpu_spw_last_timc)
398 housekeepingPacket->hk_lfr_dpu_spw_last_timc)
373 );
399 );
374 }
400 }
375
401
376 void HKDisplay::updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket)
402 void HKDisplay::updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket)
377 {
403 {
378 hk_lfr_dpu_spw_parity->setText("hk_lfr_dpu_spw_parity: "
404 hk_lfr_dpu_spw_parity->setText("hk_lfr_dpu_spw_parity: "
379 + QString::number(
405 + QString::number(
380 housekeepingPacket->hk_lfr_dpu_spw_parity)
406 housekeepingPacket->hk_lfr_dpu_spw_parity)
381 );
407 );
382 hk_lfr_dpu_spw_disconnect->setText("hk_lfr_dpu_spw_disconnect: "
408 hk_lfr_dpu_spw_disconnect->setText("hk_lfr_dpu_spw_disconnect: "
383 + QString::number(
409 + QString::number(
384 housekeepingPacket->hk_lfr_dpu_spw_disconnect)
410 housekeepingPacket->hk_lfr_dpu_spw_disconnect)
385 );
411 );
386 hk_lfr_dpu_spw_escape->setText("hk_lfr_dpu_spw_escape: "
412 hk_lfr_dpu_spw_escape->setText("hk_lfr_dpu_spw_escape: "
387 + QString::number(
413 + QString::number(
388 housekeepingPacket->hk_lfr_dpu_spw_escape)
414 housekeepingPacket->hk_lfr_dpu_spw_escape)
389 );
415 );
390 hk_lfr_dpu_spw_credit->setText("hk_lfr_dpu_spw_credit: "
416 hk_lfr_dpu_spw_credit->setText("hk_lfr_dpu_spw_credit: "
391 + QString::number(
417 + QString::number(
392 housekeepingPacket->hk_lfr_dpu_spw_credit)
418 housekeepingPacket->hk_lfr_dpu_spw_credit)
393 );
419 );
394 hk_lfr_dpu_spw_write_sync->setText("hk_lfr_dpu_spw_write_sync: "
420 hk_lfr_dpu_spw_write_sync->setText("hk_lfr_dpu_spw_write_sync: "
395 + QString::number(
421 + QString::number(
396 housekeepingPacket->hk_lfr_dpu_spw_write_sync)
422 housekeepingPacket->hk_lfr_dpu_spw_write_sync)
397 );
423 );
398 hk_lfr_dpu_spw_rx_ahb->setText("hk_lfr_dpu_spw_rx_ahb: "
424 hk_lfr_dpu_spw_rx_ahb->setText("hk_lfr_dpu_spw_rx_ahb: "
399 + QString::number(
425 + QString::number(
400 housekeepingPacket->hk_lfr_dpu_spw_rx_ahb)
426 housekeepingPacket->hk_lfr_dpu_spw_rx_ahb)
401 );
427 );
402 hk_lfr_dpu_spw_tx_ahb->setText("hk_lfr_dpu_spw_tx_ahb: "
428 hk_lfr_dpu_spw_tx_ahb->setText("hk_lfr_dpu_spw_tx_ahb: "
403 + QString::number(
429 + QString::number(
404 housekeepingPacket->hk_lfr_dpu_spw_tx_ahb)
430 housekeepingPacket->hk_lfr_dpu_spw_tx_ahb)
405 );
431 );
406 hk_lfr_dpu_spw_header_crc->setText("hk_lfr_dpu_spw_header_crc: "
432 hk_lfr_dpu_spw_header_crc->setText("hk_lfr_dpu_spw_header_crc: "
407 + QString::number(
433 + QString::number(
408 housekeepingPacket->hk_lfr_dpu_spw_header_crc)
434 housekeepingPacket->hk_lfr_dpu_spw_header_crc)
409 );
435 );
410 hk_lfr_dpu_spw_data_crc->setText("hk_lfr_dpu_spw_data_crc: "
436 hk_lfr_dpu_spw_data_crc->setText("hk_lfr_dpu_spw_data_crc: "
411 + QString::number(
437 + QString::number(
412 housekeepingPacket->hk_lfr_dpu_spw_data_crc)
438 housekeepingPacket->hk_lfr_dpu_spw_data_crc)
413 );
439 );
414 hk_lfr_dpu_spw_early_eop->setText("hk_lfr_dpu_spw_early_eop: "
440 hk_lfr_dpu_spw_early_eop->setText("hk_lfr_dpu_spw_early_eop: "
415 + QString::number(
441 + QString::number(
416 housekeepingPacket->hk_lfr_dpu_spw_early_eop)
442 housekeepingPacket->hk_lfr_dpu_spw_early_eop)
417 );
443 );
418 hk_lfr_dpu_spw_invalid_addr->setText("hk_lfr_dpu_spw_invalid_addr: "
444 hk_lfr_dpu_spw_invalid_addr->setText("hk_lfr_dpu_spw_invalid_addr: "
419 + QString::number(
445 + QString::number(
420 housekeepingPacket->hk_lfr_dpu_spw_invalid_addr)
446 housekeepingPacket->hk_lfr_dpu_spw_invalid_addr)
421 );
447 );
422 hk_lfr_dpu_spw_eep->setText("hk_lfr_dpu_spw_eep: "
448 hk_lfr_dpu_spw_eep->setText("hk_lfr_dpu_spw_eep: "
423 + QString::number(
449 + QString::number(
424 housekeepingPacket->hk_lfr_dpu_spw_eep)
450 housekeepingPacket->hk_lfr_dpu_spw_eep)
425 );
451 );
426 hk_lfr_dpu_spw_rx_too_big->setText("hk_lfr_dpu_spw_rx_too_big: "
452 hk_lfr_dpu_spw_rx_too_big->setText("hk_lfr_dpu_spw_rx_too_big: "
427 + QString::number(
453 + QString::number(
428 housekeepingPacket->hk_lfr_dpu_spw_rx_too_big)
454 housekeepingPacket->hk_lfr_dpu_spw_rx_too_big)
429 );
455 );
430 }
456 }
@@ -1,170 +1,171
1 #ifndef HKDISPLAY_H
1 #ifndef HKDISPLAY_H
2 #define HKDISPLAY_H
2 #define HKDISPLAY_H
3
3
4 #include <QWidget>
4 #include <QWidget>
5 #include <QLabel>
5 #include <QLabel>
6 #include <QGroupBox>
6 #include <QGroupBox>
7 #include <QVBoxLayout>
7 #include <QVBoxLayout>
8 #include <QGridLayout>
8 #include <QGridLayout>
9 #include "tmpackettoread.h"
9 #include "tmpackettoread.h"
10 #include "ccsds_types.h"
10 #include "ccsds_types.h"
11
11
12 #define HK_PACKET_SIZE 126 + 4
12 #define HK_PACKET_SIZE 126 + 4
13 #define HK_INFORMATION_FONT_SIZE 9
13 #define HK_INFORMATION_FONT_SIZE 9
14
14
15 class HKDisplay : public QWidget
15 class HKDisplay : public QWidget
16 {
16 {
17 Q_OBJECT
17 Q_OBJECT
18 public:
18 public:
19 explicit HKDisplay(QWidget *parent = 0);
19 explicit HKDisplay(QWidget *parent = 0);
20 void displayPacket(TMPacketToRead *tmPacketToRead);
20 void displayPacket(TMPacketToRead *tmPacketToRead);
21 void displayPacketLESIA(TMPacketToRead *tmPacketToRead);
21 void displayPacketLESIA(TMPacketToRead *tmPacketToRead);
22
22
23 void setupLFRStatusWord();
23 void setupLFRStatusWord();
24 void setupLFRSWVersion();
24 void setupLFRSWVersion();
25 void setupTCStatistics();
25 void setupTCStatistics();
26 void setupAnomalyStatistics();
26 void setupAnomalyStatistics();
27 void setupSpaceWireIFStatistics();
27 void setupSpaceWireIFStatistics();
28 void setupErrorCountersSpaceWire();
28 void setupErrorCountersSpaceWire();
29
29
30 void updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket);
30 void update_lfr_status_word(Packet_TM_LFR_HK_t *housekeepingPacket);
31 void updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket);
31 void updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket);
32 void updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
32 void updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
33 void updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
33 void updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
34 void updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
34 void updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket);
35 void updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket);
35 void updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket);
36
36
37 signals:
37 signals:
38 void displayMessage(QString message);
38 void displayMessage(QString message);
39
39
40 public slots:
40 public slots:
41
41
42 private:
42 private:
43 QGroupBox *groupbox_lfrStatusWord;
43 QGroupBox *groupbox_lfrStatusWord;
44 QGroupBox *groupbox_lfrSWVersion;
44 QGroupBox *groupbox_lfrSWVersion;
45 QGroupBox *groupbox_tcStatistics;
45 QGroupBox *groupbox_tcStatistics;
46 QGroupBox *groupbox_anomalyStatistics;
46 QGroupBox *groupbox_anomalyStatistics;
47 //***********************************
47 //***********************************
48 //***********************************
48 //***********************************
49 QGroupBox *groupbox_vhdlBlockStatus;
49 QGroupBox *groupbox_vhdlBlockStatus;
50 QGroupBox *groupbox_spacewireIFStatisctics;
50 QGroupBox *groupbox_spacewireIFStatisctics;
51 QGroupBox *groupbox_ahbErrorStatistics;
51 QGroupBox *groupbox_ahbErrorStatistics;
52 QGroupBox *groupbox_temperatures;
52 QGroupBox *groupbox_temperatures;
53 QGroupBox *groupbox_errorCountersSpaceWire;
53 QGroupBox *groupbox_errorCountersSpaceWire;
54 QGroupBox *groupbox_errorCountersTime;
54 QGroupBox *groupbox_errorCountersTime;
55
55
56 QGridLayout *mainLayout;
56 QGridLayout *mainLayout;
57 QVBoxLayout *box_lfrStatusWord;
57 QVBoxLayout *box_lfrStatusWord;
58 QVBoxLayout *box_lfrSWVersion;
58 QVBoxLayout *box_lfrSWVersion;
59 QVBoxLayout *box_tcStatistics;
59 QVBoxLayout *box_tcStatistics;
60 QVBoxLayout *box_anomalyStatistics;
60 QVBoxLayout *box_anomalyStatistics;
61 //***********************************
61 //***********************************
62 //***********************************
62 //***********************************
63 QVBoxLayout *box_vhdlBlockStatus;
63 QVBoxLayout *box_vhdlBlockStatus;
64 QVBoxLayout *box_spacewireIFStatisctics;
64 QVBoxLayout *box_spacewireIFStatisctics;
65 QVBoxLayout *box_ahbErrorStatistics;
65 QVBoxLayout *box_ahbErrorStatistics;
66 QVBoxLayout *box_temperatures;
66 QVBoxLayout *box_temperatures;
67 QVBoxLayout *box_errorCountersSpaceWire;
67 QVBoxLayout *box_errorCountersSpaceWire;
68 QVBoxLayout *box_errorCountersTime;
68 QVBoxLayout *box_errorCountersTime;
69
69
70 QLabel *hk_lfr_mode;
70 QLabel *hk_lfr_mode;
71 QLabel *hk_lfr_dpu_spw_enabled;
71 QLabel *hk_lfr_dpu_spw_enabled;
72 QLabel *hk_lfr_dpu_link_state;
72 QLabel *hk_lfr_dpu_link_state;
73 QLabel *hk_lfr_dpu_spare;
73 QLabel *sy_lfr_watchdog_enabled;
74 QLabel *sy_lfr_watchdog_enabled;
74 QLabel *hk_lfr_calib_enabled;
75 QLabel *hk_lfr_calib_enabled;
75 QLabel *hk_lfr_reset_cause;
76 QLabel *hk_lfr_reset_cause;
76 // sy_lfr_sw_version_
77 // sy_lfr_sw_version_
77 QLabel *sy_lfr_sw_version_n1;
78 QLabel *sy_lfr_sw_version_n1;
78 QLabel *sy_lfr_sw_version_n2;
79 QLabel *sy_lfr_sw_version_n2;
79 QLabel *sy_lfr_sw_version_n3;
80 QLabel *sy_lfr_sw_version_n3;
80 QLabel *sy_lfr_sw_version_n4;
81 QLabel *sy_lfr_sw_version_n4;
81 QLabel *hk_lfr_update_info_tc_cnt;
82 QLabel *hk_lfr_update_info_tc_cnt;
82 QLabel *hk_lfr_update_time_tc_cnt;
83 QLabel *hk_lfr_update_time_tc_cnt;
83 QLabel *hk_dpu_exe_tc_lfr_cnt;
84 QLabel *hk_dpu_exe_tc_lfr_cnt;
84 QLabel *hk_dpu_rej_tc_lfr_cnt;
85 QLabel *hk_dpu_rej_tc_lfr_cnt;
85 // hk_lfr_last_exe_tc_
86 // hk_lfr_last_exe_tc_
86 QLabel *hk_lfr_last_exe_tc_id;
87 QLabel *hk_lfr_last_exe_tc_id;
87 QLabel *hk_lfr_last_exe_tc_type;
88 QLabel *hk_lfr_last_exe_tc_type;
88 QLabel *hk_lfr_last_exe_tc_subtype;
89 QLabel *hk_lfr_last_exe_tc_subtype;
89 QLabel *hk_lfr_last_exe_tc_time;
90 QLabel *hk_lfr_last_exe_tc_time;
90 // hk_lfr_last_rej_tc_
91 // hk_lfr_last_rej_tc_
91 QLabel *hk_lfr_last_rej_tc_id;
92 QLabel *hk_lfr_last_rej_tc_id;
92 QLabel *hk_lfr_last_rej_tc_type;
93 QLabel *hk_lfr_last_rej_tc_type;
93 QLabel *hk_lfr_last_rej_tc_subtype;
94 QLabel *hk_lfr_last_rej_tc_subtype;
94 QLabel *hk_lfr_last_rej_tc_time;
95 QLabel *hk_lfr_last_rej_tc_time;
95
96
96 QLabel *hk_lfr_le_cnt;
97 QLabel *hk_lfr_le_cnt;
97 QLabel *hk_lfr_me_cnt;
98 QLabel *hk_lfr_me_cnt;
98 QLabel *hk_lfr_he_cnt;
99 QLabel *hk_lfr_he_cnt;
99 // hk_lfr_last_er
100 // hk_lfr_last_er
100 QLabel *hk_lfr_last_er_rid;
101 QLabel *hk_lfr_last_er_rid;
101 QLabel *hk_lfr_last_er_code;
102 QLabel *hk_lfr_last_er_code;
102 QLabel *hk_lfr_last_er_time;
103 QLabel *hk_lfr_last_er_time;
103 //***********************************
104 //***********************************
104 //***********************************
105 //***********************************
105 //hk_lfr_vhdl_
106 //hk_lfr_vhdl_
106 QLabel *hk_lfr_vhdl_aa;
107 QLabel *hk_lfr_vhdl_aa;
107 QLabel *hk_lfr_vhdl_sm;
108 QLabel *hk_lfr_vhdl_sm;
108 QLabel *hk_lfr_vhdl_fft;
109 QLabel *hk_lfr_vhdl_fft;
109 QLabel *hk_lfr_vhdl_sr;
110 QLabel *hk_lfr_vhdl_sr;
110 QLabel *hk_lfr_vhdl_cic;
111 QLabel *hk_lfr_vhdl_cic;
111 QLabel *hk_lfr_vhdl_hk;
112 QLabel *hk_lfr_vhdl_hk;
112 QLabel *hk_lfr_vhdl_iir;
113 QLabel *hk_lfr_vhdl_iir;
113 QLabel *hk_lfr_vhdl_cal;
114 QLabel *hk_lfr_vhdl_cal;
114 // hk_lfr_dpu_spw_
115 // hk_lfr_dpu_spw_
115 QLabel *hk_lfr_dpu_spw_pkt_rcv_cnt;
116 QLabel *hk_lfr_dpu_spw_pkt_rcv_cnt;
116 QLabel *hk_lfr_dpu_spw_pkt_sent_cnt;
117 QLabel *hk_lfr_dpu_spw_pkt_sent_cnt;
117 QLabel *hk_lfr_dpu_spw_tick_out_cnt;
118 QLabel *hk_lfr_dpu_spw_tick_out_cnt;
118 QLabel *hk_lfr_dpu_spw_last_timc;
119 QLabel *hk_lfr_dpu_spw_last_timc;
119 // hk_lfr_last_fail_addr
120 // hk_lfr_last_fail_addr
120 QLabel *hk_lfr_last_fail_addr;
121 QLabel *hk_lfr_last_fail_addr;
121 // hk_lfr_temp_
122 // hk_lfr_temp_
122 QLabel *hk_lfr_temp_scm;
123 QLabel *hk_lfr_temp_scm;
123 QLabel *hk_lfr_temp_pcb;
124 QLabel *hk_lfr_temp_pcb;
124 QLabel *hk_lfr_temp_fpga;
125 QLabel *hk_lfr_temp_fpga;
125 // hk_lfr_dpu_spw_
126 // hk_lfr_dpu_spw_
126 QLabel *hk_lfr_dpu_spw_parity;
127 QLabel *hk_lfr_dpu_spw_parity;
127 QLabel *hk_lfr_dpu_spw_disconnect;
128 QLabel *hk_lfr_dpu_spw_disconnect;
128 QLabel *hk_lfr_dpu_spw_escape;
129 QLabel *hk_lfr_dpu_spw_escape;
129 QLabel *hk_lfr_dpu_spw_credit;
130 QLabel *hk_lfr_dpu_spw_credit;
130 QLabel *hk_lfr_dpu_spw_write_sync;
131 QLabel *hk_lfr_dpu_spw_write_sync;
131 QLabel *hk_lfr_dpu_spw_rx_ahb;
132 QLabel *hk_lfr_dpu_spw_rx_ahb;
132 QLabel *hk_lfr_dpu_spw_tx_ahb;
133 QLabel *hk_lfr_dpu_spw_tx_ahb;
133 QLabel *hk_lfr_dpu_spw_header_crc;
134 QLabel *hk_lfr_dpu_spw_header_crc;
134 QLabel *hk_lfr_dpu_spw_data_crc;
135 QLabel *hk_lfr_dpu_spw_data_crc;
135 QLabel *hk_lfr_dpu_spw_early_eop;
136 QLabel *hk_lfr_dpu_spw_early_eop;
136 QLabel *hk_lfr_dpu_spw_invalid_addr;
137 QLabel *hk_lfr_dpu_spw_invalid_addr;
137 QLabel *hk_lfr_dpu_spw_eep;
138 QLabel *hk_lfr_dpu_spw_eep;
138 QLabel *hk_lfr_dpu_spw_rx_too_big;
139 QLabel *hk_lfr_dpu_spw_rx_too_big;
139 // hk_lfr_timecode_
140 // hk_lfr_timecode_
140 QLabel *hk_lfr_timecode_erroneous;
141 QLabel *hk_lfr_timecode_erroneous;
141 QLabel *hk_lfr_timecode_missing;
142 QLabel *hk_lfr_timecode_missing;
142 QLabel *hk_lfr_timecode_invalid;
143 QLabel *hk_lfr_timecode_invalid;
143 // hk_lfr_time_
144 // hk_lfr_time_
144 QLabel *hk_lfr_time_timecode_it;
145 QLabel *hk_lfr_time_timecode_it;
145 QLabel *hk_lfr_time_not_synchro;
146 QLabel *hk_lfr_time_not_synchro;
146 QLabel *hk_lfr_time_timecode_ctr;
147 QLabel *hk_lfr_time_timecode_ctr;
147 // hk_lfr_buffer_dpu_
148 // hk_lfr_buffer_dpu_
148 QLabel *hk_lfr_buffer_dpu_tc_fifo;
149 QLabel *hk_lfr_buffer_dpu_tc_fifo;
149 QLabel *hk_lfr_buffer_dpu_tm_fifo;
150 QLabel *hk_lfr_buffer_dpu_tm_fifo;
150 // hk_lfr_ahb_
151 // hk_lfr_ahb_
151 QLabel *hk_lfr_ahb_correctable;
152 QLabel *hk_lfr_ahb_correctable;
152 QLabel *hk_lfr_ahb_uncorrectable;
153 QLabel *hk_lfr_ahb_uncorrectable;
153 QLabel *hk_lfr_ahb_fails_trans;
154 QLabel *hk_lfr_ahb_fails_trans;
154 // hk_lfr_adc_
155 // hk_lfr_adc_
155 QLabel *hk_lfr_adc_failure;
156 QLabel *hk_lfr_adc_failure;
156 QLabel *hk_lfr_adc_timeout;
157 QLabel *hk_lfr_adc_timeout;
157 QLabel *hk_lfr_toomany_err;
158 QLabel *hk_lfr_toomany_err;
158 // hk_lfr_cpu_
159 // hk_lfr_cpu_
159 QLabel *hk_lfr_cpu_write_err;
160 QLabel *hk_lfr_cpu_write_err;
160 QLabel *hk_lfr_cpu_ins_access_err;
161 QLabel *hk_lfr_cpu_ins_access_err;
161 QLabel *hk_lfr_cpu_illegal_ins;
162 QLabel *hk_lfr_cpu_illegal_ins;
162 QLabel *hk_lfr_cpu_privilegied_ins;
163 QLabel *hk_lfr_cpu_privilegied_ins;
163 QLabel *hk_lfr_cpu_register_hw;
164 QLabel *hk_lfr_cpu_register_hw;
164 QLabel *hk_lfr_cpu_not_aligned;
165 QLabel *hk_lfr_cpu_not_aligned;
165 QLabel *hk_lfr_cpu_data_exception;
166 QLabel *hk_lfr_cpu_data_exception;
166 QLabel *hk_lfr_cpu_div_exception;
167 QLabel *hk_lfr_cpu_div_exception;
167 QLabel *hk_lfr_cpu_arith_overflow;
168 QLabel *hk_lfr_cpu_arith_overflow;
168 };
169 };
169
170
170 #endif // HKDISPLAY_H
171 #endif // HKDISPLAY_H
@@ -1,198 +1,198
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T14:18:06. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-07T12:35:53. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
7 <value type="int">0</value>
7 <value type="int">0</value>
8 </data>
8 </data>
9 <data>
9 <data>
10 <variable>ProjectExplorer.Project.EditorSettings</variable>
10 <variable>ProjectExplorer.Project.EditorSettings</variable>
11 <valuemap type="QVariantMap">
11 <valuemap type="QVariantMap">
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 <value type="QString" key="language">Cpp</value>
16 <value type="QString" key="language">Cpp</value>
17 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 </valuemap>
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 <value type="QString" key="language">QmlJS</value>
22 <value type="QString" key="language">QmlJS</value>
23 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 </valuemap>
25 </valuemap>
26 </valuemap>
26 </valuemap>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 </valuemap>
45 </valuemap>
46 </data>
46 </data>
47 <data>
47 <data>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 <valuemap type="QVariantMap"/>
49 <valuemap type="QVariantMap"/>
50 </data>
50 </data>
51 <data>
51 <data>
52 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
53 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 </valuemap>
71 </valuemap>
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
79 <value type="QString">-r</value>
80 </valuelist>
80 </valuelist>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 </valuemap>
84 </valuemap>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 </valuemap>
89 </valuemap>
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
98 <value type="QString">-r</value>
99 </valuelist>
99 </valuelist>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 </valuemap>
103 </valuemap>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 </valuemap>
108 </valuemap>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 </valuemap>
118 </valuemap>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 </valuemap>
126 </valuemap>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 </valuemap>
131 </valuemap>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 <value type="int">0</value>
150 <value type="int">0</value>
151 <value type="int">1</value>
151 <value type="int">1</value>
152 <value type="int">2</value>
152 <value type="int">2</value>
153 <value type="int">3</value>
153 <value type="int">3</value>
154 <value type="int">4</value>
154 <value type="int">4</value>
155 <value type="int">5</value>
155 <value type="int">5</value>
156 <value type="int">6</value>
156 <value type="int">6</value>
157 <value type="int">7</value>
157 <value type="int">7</value>
158 <value type="int">8</value>
158 <value type="int">8</value>
159 <value type="int">9</value>
159 <value type="int">9</value>
160 <value type="int">10</value>
160 <value type="int">10</value>
161 <value type="int">11</value>
161 <value type="int">11</value>
162 <value type="int">12</value>
162 <value type="int">12</value>
163 <value type="int">13</value>
163 <value type="int">13</value>
164 <value type="int">14</value>
164 <value type="int">14</value>
165 </valuelist>
165 </valuelist>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value>
168 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value>
169 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
169 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
170 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value>
170 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value>
171 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
171 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
172 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value>
172 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value>
173 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
173 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
174 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
174 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
175 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
175 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
176 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
176 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
177 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
178 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
178 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
179 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
179 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
181 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
181 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
182 </valuemap>
182 </valuemap>
183 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
183 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
184 </valuemap>
184 </valuemap>
185 </data>
185 </data>
186 <data>
186 <data>
187 <variable>ProjectExplorer.Project.TargetCount</variable>
187 <variable>ProjectExplorer.Project.TargetCount</variable>
188 <value type="int">1</value>
188 <value type="int">1</value>
189 </data>
189 </data>
190 <data>
190 <data>
191 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
191 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
192 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
192 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
193 </data>
193 </data>
194 <data>
194 <data>
195 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
195 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
196 <value type="int">14</value>
196 <value type="int">14</value>
197 </data>
197 </data>
198 </qtcreator>
198 </qtcreator>
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,561 +1,561
1 #############################################################################
1 #############################################################################
2 # Makefile for building: librmapplugin.so.1.0.0
2 # Makefile for building: librmapplugin.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Fri Sep 20 14:37:48 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Mon Oct 14 07:55:31 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 -o Makefile rmapplugin.pro
7 #############################################################################
7 #############################################################################
8
8
9 ####### Compiler, tools and options
9 ####### Compiler, tools and options
10
10
11 CC = gcc
11 CC = gcc
12 CXX = g++
12 CXX = g++
13 DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.2\"" -DUNIX -DUNIXTRANSLATIONPATH -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
13 DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.2\"" -DUNIX -DUNIXTRANSLATIONPATH -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../../DEV_PLE/header -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I/usr/include/lppmon/paulcommon -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../../DEV_PLE/header -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I/usr/include/lppmon/paulcommon -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1
19 LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lpaulcommon -lwfdisplay -lqwt5-qt4 -lparameterdump -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
19 LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lpaulcommon -lwfdisplay -lqwt5-qt4 -lparameterdump -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
20 AR = ar cqs
20 AR = ar cqs
21 RANLIB =
21 RANLIB =
22 QMAKE = /usr/bin/qmake-qt4
22 QMAKE = /usr/bin/qmake-qt4
23 TAR = tar -cf
23 TAR = tar -cf
24 COMPRESS = gzip -9f
24 COMPRESS = gzip -9f
25 COPY = cp -f
25 COPY = cp -f
26 SED = sed
26 SED = sed
27 COPY_FILE = $(COPY)
27 COPY_FILE = $(COPY)
28 COPY_DIR = $(COPY) -r
28 COPY_DIR = $(COPY) -r
29 STRIP =
29 STRIP =
30 INSTALL_FILE = install -m 644 -p
30 INSTALL_FILE = install -m 644 -p
31 INSTALL_DIR = $(COPY_DIR)
31 INSTALL_DIR = $(COPY_DIR)
32 INSTALL_PROGRAM = install -m 755 -p
32 INSTALL_PROGRAM = install -m 755 -p
33 DEL_FILE = rm -f
33 DEL_FILE = rm -f
34 SYMLINK = ln -f -s
34 SYMLINK = ln -f -s
35 DEL_DIR = rmdir
35 DEL_DIR = rmdir
36 MOVE = mv -f
36 MOVE = mv -f
37 CHK_DIR_EXISTS= test -d
37 CHK_DIR_EXISTS= test -d
38 MKDIR = mkdir -p
38 MKDIR = mkdir -p
39
39
40 ####### Output directory
40 ####### Output directory
41
41
42 OBJECTS_DIR = obj/
42 OBJECTS_DIR = obj/
43
43
44 ####### Files
44 ####### Files
45
45
46 SOURCES = rmapplugin.cpp \
46 SOURCES = rmapplugin.cpp \
47 rmappluginui.cpp \
47 rmappluginui.cpp \
48 rmapoperations.cpp \
48 rmapoperations.cpp \
49 ccsds.cpp \
49 ccsds.cpp \
50 ../common_PLE/qipdialogbox.cpp \
50 ../common_PLE/qipdialogbox.cpp \
51 ../common_PLE/gresbstatusenquiry.cpp \
51 ../common_PLE/gresbstatusenquiry.cpp \
52 rmappluginpythonwrapper.cpp \
52 rmappluginpythonwrapper.cpp \
53 stardundee.cpp \
53 stardundee.cpp \
54 gresb.cpp \
54 gresb.cpp \
55 tcpackettosend.cpp \
55 tcpackettosend.cpp \
56 tmpackettoread.cpp \
56 tmpackettoread.cpp \
57 tmstatistics.cpp \
57 tmstatistics.cpp \
58 wfpacket.cpp \
58 wfpacket.cpp \
59 tmechobridge.cpp \
59 tmechobridge.cpp \
60 entermode.cpp \
60 entermode.cpp \
61 lfractions.cpp \
61 lfractions.cpp \
62 /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \
62 /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \
63 moc/moc_rmapplugin.cpp \
63 moc/moc_rmapplugin.cpp \
64 moc/moc_qipdialogbox.cpp \
64 moc/moc_qipdialogbox.cpp \
65 moc/moc_gresbstatusenquiry.cpp \
65 moc/moc_gresbstatusenquiry.cpp \
66 moc/moc_rmappluginpythonwrapper.cpp \
66 moc/moc_rmappluginpythonwrapper.cpp \
67 moc/moc_stardundee.cpp \
67 moc/moc_stardundee.cpp \
68 moc/moc_gresb.cpp \
68 moc/moc_gresb.cpp \
69 moc/moc_tcpackettosend.cpp \
69 moc/moc_tcpackettosend.cpp \
70 moc/moc_tmpackettoread.cpp \
70 moc/moc_tmpackettoread.cpp \
71 moc/moc_tmstatistics.cpp \
71 moc/moc_tmstatistics.cpp \
72 moc/moc_wfpacket.cpp \
72 moc/moc_wfpacket.cpp \
73 moc/moc_tmechobridge.cpp \
73 moc/moc_tmechobridge.cpp \
74 moc/moc_entermode.cpp \
74 moc/moc_entermode.cpp \
75 moc/moc_lfractions.cpp \
75 moc/moc_lfractions.cpp \
76 moc/moc_genericPySysdriver.cpp \
76 moc/moc_genericPySysdriver.cpp \
77 moc/moc_lppmonplugin.cpp
77 moc/moc_lppmonplugin.cpp
78 OBJECTS = obj/rmapplugin.o \
78 OBJECTS = obj/rmapplugin.o \
79 obj/rmappluginui.o \
79 obj/rmappluginui.o \
80 obj/rmapoperations.o \
80 obj/rmapoperations.o \
81 obj/ccsds.o \
81 obj/ccsds.o \
82 obj/qipdialogbox.o \
82 obj/qipdialogbox.o \
83 obj/gresbstatusenquiry.o \
83 obj/gresbstatusenquiry.o \
84 obj/rmappluginpythonwrapper.o \
84 obj/rmappluginpythonwrapper.o \
85 obj/stardundee.o \
85 obj/stardundee.o \
86 obj/gresb.o \
86 obj/gresb.o \
87 obj/tcpackettosend.o \
87 obj/tcpackettosend.o \
88 obj/tmpackettoread.o \
88 obj/tmpackettoread.o \
89 obj/tmstatistics.o \
89 obj/tmstatistics.o \
90 obj/wfpacket.o \
90 obj/wfpacket.o \
91 obj/tmechobridge.o \
91 obj/tmechobridge.o \
92 obj/entermode.o \
92 obj/entermode.o \
93 obj/lfractions.o \
93 obj/lfractions.o \
94 obj/lppmonplugininterface.o \
94 obj/lppmonplugininterface.o \
95 obj/moc_rmappluginui.o \
95 obj/moc_rmappluginui.o \
96 obj/moc_rmapplugin.o \
96 obj/moc_rmapplugin.o \
97 obj/moc_qipdialogbox.o \
97 obj/moc_qipdialogbox.o \
98 obj/moc_gresbstatusenquiry.o \
98 obj/moc_gresbstatusenquiry.o \
99 obj/moc_rmappluginpythonwrapper.o \
99 obj/moc_rmappluginpythonwrapper.o \
100 obj/moc_stardundee.o \
100 obj/moc_stardundee.o \
101 obj/moc_gresb.o \
101 obj/moc_gresb.o \
102 obj/moc_tcpackettosend.o \
102 obj/moc_tcpackettosend.o \
103 obj/moc_tmpackettoread.o \
103 obj/moc_tmpackettoread.o \
104 obj/moc_tmstatistics.o \
104 obj/moc_tmstatistics.o \
105 obj/moc_wfpacket.o \
105 obj/moc_wfpacket.o \
106 obj/moc_tmechobridge.o \
106 obj/moc_tmechobridge.o \
107 obj/moc_entermode.o \
107 obj/moc_entermode.o \
108 obj/moc_lfractions.o \
108 obj/moc_lfractions.o \
109 obj/moc_genericPySysdriver.o \
109 obj/moc_genericPySysdriver.o \
110 obj/moc_lppmonplugin.o
110 obj/moc_lppmonplugin.o
111 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
111 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
112 /usr/lib64/qt4/mkspecs/common/linux.conf \
112 /usr/lib64/qt4/mkspecs/common/linux.conf \
113 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
113 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
114 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
114 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
115 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
115 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
116 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
116 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
117 /usr/lib64/qt4/mkspecs/qconfig.pri \
117 /usr/lib64/qt4/mkspecs/qconfig.pri \
118 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
118 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
119 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
119 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
120 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
120 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
121 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
121 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
122 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
122 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
123 /usr/lib64/qt4/mkspecs/features/release.prf \
123 /usr/lib64/qt4/mkspecs/features/release.prf \
124 /usr/lib64/qt4/mkspecs/features/default_post.prf \
124 /usr/lib64/qt4/mkspecs/features/default_post.prf \
125 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \
125 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \
126 /usr/lib64/qt4/mkspecs/features/pythonqt.prf \
126 /usr/lib64/qt4/mkspecs/features/pythonqt.prf \
127 /usr/lib64/qt4/mkspecs/features/shared.prf \
127 /usr/lib64/qt4/mkspecs/features/shared.prf \
128 /usr/lib64/qt4/mkspecs/features/dll.prf \
128 /usr/lib64/qt4/mkspecs/features/dll.prf \
129 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
129 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
130 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
130 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
131 /usr/lib64/qt4/mkspecs/features/qt.prf \
131 /usr/lib64/qt4/mkspecs/features/qt.prf \
132 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
132 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
133 /usr/lib64/qt4/mkspecs/features/moc.prf \
133 /usr/lib64/qt4/mkspecs/features/moc.prf \
134 /usr/lib64/qt4/mkspecs/features/resources.prf \
134 /usr/lib64/qt4/mkspecs/features/resources.prf \
135 /usr/lib64/qt4/mkspecs/features/uic.prf \
135 /usr/lib64/qt4/mkspecs/features/uic.prf \
136 /usr/lib64/qt4/mkspecs/features/yacc.prf \
136 /usr/lib64/qt4/mkspecs/features/yacc.prf \
137 /usr/lib64/qt4/mkspecs/features/lex.prf \
137 /usr/lib64/qt4/mkspecs/features/lex.prf \
138 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
138 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
139 rmapplugin.pro
139 rmapplugin.pro
140 QMAKE_TARGET = rmapplugin
140 QMAKE_TARGET = rmapplugin
141 DESTDIR = bin/
141 DESTDIR = bin/
142 TARGET = librmapplugin.so.1.0.0
142 TARGET = librmapplugin.so.1.0.0
143 TARGETA = bin/librmapplugin.a
143 TARGETA = bin/librmapplugin.a
144 TARGETD = librmapplugin.so.1.0.0
144 TARGETD = librmapplugin.so.1.0.0
145 TARGET0 = librmapplugin.so
145 TARGET0 = librmapplugin.so
146 TARGET1 = librmapplugin.so.1
146 TARGET1 = librmapplugin.so.1
147 TARGET2 = librmapplugin.so.1.0
147 TARGET2 = librmapplugin.so.1.0
148
148
149 first: all
149 first: all
150 ####### Implicit rules
150 ####### Implicit rules
151
151
152 .SUFFIXES: .o .c .cpp .cc .cxx .C
152 .SUFFIXES: .o .c .cpp .cc .cxx .C
153
153
154 .cpp.o:
154 .cpp.o:
155 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
155 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
156
156
157 .cc.o:
157 .cc.o:
158 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
158 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
159
159
160 .cxx.o:
160 .cxx.o:
161 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
161 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
162
162
163 .C.o:
163 .C.o:
164 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
164 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
165
165
166 .c.o:
166 .c.o:
167 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
167 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
168
168
169 ####### Build rules
169 ####### Build rules
170
170
171 all: Makefile bin/$(TARGET)
171 all: Makefile bin/$(TARGET)
172
172
173 bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
173 bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
174 @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/
174 @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/
175 -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
175 -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
176 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
176 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
177 -ln -s $(TARGET) $(TARGET0)
177 -ln -s $(TARGET) $(TARGET0)
178 -ln -s $(TARGET) $(TARGET1)
178 -ln -s $(TARGET) $(TARGET1)
179 -ln -s $(TARGET) $(TARGET2)
179 -ln -s $(TARGET) $(TARGET2)
180 -$(DEL_FILE) bin/$(TARGET)
180 -$(DEL_FILE) bin/$(TARGET)
181 -$(DEL_FILE) bin/$(TARGET0)
181 -$(DEL_FILE) bin/$(TARGET0)
182 -$(DEL_FILE) bin/$(TARGET1)
182 -$(DEL_FILE) bin/$(TARGET1)
183 -$(DEL_FILE) bin/$(TARGET2)
183 -$(DEL_FILE) bin/$(TARGET2)
184 -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/
184 -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/
185
185
186
186
187
187
188 staticlib: $(TARGETA)
188 staticlib: $(TARGETA)
189
189
190 $(TARGETA): $(OBJECTS) $(OBJCOMP)
190 $(TARGETA): $(OBJECTS) $(OBJCOMP)
191 -$(DEL_FILE) $(TARGETA)
191 -$(DEL_FILE) $(TARGETA)
192 $(AR) $(TARGETA) $(OBJECTS)
192 $(AR) $(TARGETA) $(OBJECTS)
193
193
194 Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
194 Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
195 /usr/lib64/qt4/mkspecs/common/linux.conf \
195 /usr/lib64/qt4/mkspecs/common/linux.conf \
196 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
196 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
197 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
197 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
198 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
198 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
199 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
199 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
200 /usr/lib64/qt4/mkspecs/qconfig.pri \
200 /usr/lib64/qt4/mkspecs/qconfig.pri \
201 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
201 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
202 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
202 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
203 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
203 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
204 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
204 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
205 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
205 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
206 /usr/lib64/qt4/mkspecs/features/release.prf \
206 /usr/lib64/qt4/mkspecs/features/release.prf \
207 /usr/lib64/qt4/mkspecs/features/default_post.prf \
207 /usr/lib64/qt4/mkspecs/features/default_post.prf \
208 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \
208 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \
209 /usr/lib64/qt4/mkspecs/features/pythonqt.prf \
209 /usr/lib64/qt4/mkspecs/features/pythonqt.prf \
210 /usr/lib64/qt4/mkspecs/features/shared.prf \
210 /usr/lib64/qt4/mkspecs/features/shared.prf \
211 /usr/lib64/qt4/mkspecs/features/dll.prf \
211 /usr/lib64/qt4/mkspecs/features/dll.prf \
212 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
212 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
213 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
213 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
214 /usr/lib64/qt4/mkspecs/features/qt.prf \
214 /usr/lib64/qt4/mkspecs/features/qt.prf \
215 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
215 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
216 /usr/lib64/qt4/mkspecs/features/moc.prf \
216 /usr/lib64/qt4/mkspecs/features/moc.prf \
217 /usr/lib64/qt4/mkspecs/features/resources.prf \
217 /usr/lib64/qt4/mkspecs/features/resources.prf \
218 /usr/lib64/qt4/mkspecs/features/uic.prf \
218 /usr/lib64/qt4/mkspecs/features/uic.prf \
219 /usr/lib64/qt4/mkspecs/features/yacc.prf \
219 /usr/lib64/qt4/mkspecs/features/yacc.prf \
220 /usr/lib64/qt4/mkspecs/features/lex.prf \
220 /usr/lib64/qt4/mkspecs/features/lex.prf \
221 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
221 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
222 /usr/lib64/libQtXml.prl \
222 /usr/lib64/libQtXml.prl \
223 /usr/lib64/libQtCore.prl \
223 /usr/lib64/libQtCore.prl \
224 /usr/lib64/libQtGui.prl \
224 /usr/lib64/libQtGui.prl \
225 /usr/lib64/libQtNetwork.prl
225 /usr/lib64/libQtNetwork.prl
226 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
226 $(QMAKE) -o Makefile rmapplugin.pro
227 /usr/lib64/qt4/mkspecs/common/unix.conf:
227 /usr/lib64/qt4/mkspecs/common/unix.conf:
228 /usr/lib64/qt4/mkspecs/common/linux.conf:
228 /usr/lib64/qt4/mkspecs/common/linux.conf:
229 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
229 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
230 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
230 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
231 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
231 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
232 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
232 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
233 /usr/lib64/qt4/mkspecs/qconfig.pri:
233 /usr/lib64/qt4/mkspecs/qconfig.pri:
234 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
234 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
235 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
235 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
236 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
236 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
237 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
237 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
238 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
238 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
239 /usr/lib64/qt4/mkspecs/features/release.prf:
239 /usr/lib64/qt4/mkspecs/features/release.prf:
240 /usr/lib64/qt4/mkspecs/features/default_post.prf:
240 /usr/lib64/qt4/mkspecs/features/default_post.prf:
241 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf:
241 /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf:
242 /usr/lib64/qt4/mkspecs/features/pythonqt.prf:
242 /usr/lib64/qt4/mkspecs/features/pythonqt.prf:
243 /usr/lib64/qt4/mkspecs/features/shared.prf:
243 /usr/lib64/qt4/mkspecs/features/shared.prf:
244 /usr/lib64/qt4/mkspecs/features/dll.prf:
244 /usr/lib64/qt4/mkspecs/features/dll.prf:
245 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
245 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
246 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
246 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
247 /usr/lib64/qt4/mkspecs/features/qt.prf:
247 /usr/lib64/qt4/mkspecs/features/qt.prf:
248 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
248 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
249 /usr/lib64/qt4/mkspecs/features/moc.prf:
249 /usr/lib64/qt4/mkspecs/features/moc.prf:
250 /usr/lib64/qt4/mkspecs/features/resources.prf:
250 /usr/lib64/qt4/mkspecs/features/resources.prf:
251 /usr/lib64/qt4/mkspecs/features/uic.prf:
251 /usr/lib64/qt4/mkspecs/features/uic.prf:
252 /usr/lib64/qt4/mkspecs/features/yacc.prf:
252 /usr/lib64/qt4/mkspecs/features/yacc.prf:
253 /usr/lib64/qt4/mkspecs/features/lex.prf:
253 /usr/lib64/qt4/mkspecs/features/lex.prf:
254 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
254 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
255 /usr/lib64/libQtXml.prl:
255 /usr/lib64/libQtXml.prl:
256 /usr/lib64/libQtCore.prl:
256 /usr/lib64/libQtCore.prl:
257 /usr/lib64/libQtGui.prl:
257 /usr/lib64/libQtGui.prl:
258 /usr/lib64/libQtNetwork.prl:
258 /usr/lib64/libQtNetwork.prl:
259 qmake: FORCE
259 qmake: FORCE
260 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
260 @$(QMAKE) -o Makefile rmapplugin.pro
261
261
262 dist:
262 dist:
263 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
263 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
264 $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents ../../DEV_PLE/header/ccsds_types.h rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h entermode.h lfractions.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp entermode.cpp lfractions.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0
264 $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents ../../DEV_PLE/header/ccsds_types.h rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h entermode.h lfractions.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp entermode.cpp lfractions.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0
265
265
266
266
267 clean:compiler_clean
267 clean:compiler_clean
268 -$(DEL_FILE) $(OBJECTS)
268 -$(DEL_FILE) $(OBJECTS)
269 -$(DEL_FILE) *~ core *.core
269 -$(DEL_FILE) *~ core *.core
270
270
271
271
272 ####### Sub-libraries
272 ####### Sub-libraries
273
273
274 distclean: clean
274 distclean: clean
275 -$(DEL_FILE) bin/$(TARGET)
275 -$(DEL_FILE) bin/$(TARGET)
276 -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA)
276 -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA)
277 -$(DEL_FILE) Makefile
277 -$(DEL_FILE) Makefile
278
278
279
279
280 check: first
280 check: first
281
281
282 mocclean: compiler_moc_header_clean compiler_moc_source_clean
282 mocclean: compiler_moc_header_clean compiler_moc_source_clean
283
283
284 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
284 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
285
285
286 compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
286 compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
287 compiler_moc_header_clean:
287 compiler_moc_header_clean:
288 -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
288 -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_entermode.cpp moc/moc_lfractions.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp
289 moc/moc_rmappluginui.cpp: rmapoperations.h \
289 moc/moc_rmappluginui.cpp: rmapoperations.h \
290 params.h \
290 params.h \
291 stardundee.h \
291 stardundee.h \
292 ccsds.h \
292 ccsds.h \
293 tmpackettoread.h \
293 tmpackettoread.h \
294 gresb.h \
294 gresb.h \
295 tmstatistics.h \
295 tmstatistics.h \
296 tmechobridge.h \
296 tmechobridge.h \
297 entermode.h \
297 entermode.h \
298 lfractions.h \
298 lfractions.h \
299 rmappluginui.h
299 rmappluginui.h
300 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp
300 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp
301
301
302 moc/moc_rmapplugin.cpp: rmappluginui.h \
302 moc/moc_rmapplugin.cpp: rmappluginui.h \
303 rmapoperations.h \
303 rmapoperations.h \
304 params.h \
304 params.h \
305 stardundee.h \
305 stardundee.h \
306 ccsds.h \
306 ccsds.h \
307 tmpackettoread.h \
307 tmpackettoread.h \
308 gresb.h \
308 gresb.h \
309 tmstatistics.h \
309 tmstatistics.h \
310 tmechobridge.h \
310 tmechobridge.h \
311 entermode.h \
311 entermode.h \
312 lfractions.h \
312 lfractions.h \
313 wfpacket.h \
313 wfpacket.h \
314 rmapplugin.h
314 rmapplugin.h
315 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp
315 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp
316
316
317 moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h
317 moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h
318 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp
318 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp
319
319
320 moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h
320 moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h
321 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp
321 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp
322
322
323 moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \
323 moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \
324 params.h \
324 params.h \
325 ccsds.h \
325 ccsds.h \
326 tcpackettosend.h \
326 tcpackettosend.h \
327 tmpackettoread.h \
327 tmpackettoread.h \
328 rmappluginpythonwrapper.h
328 rmappluginpythonwrapper.h
329 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp
329 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp
330
330
331 moc/moc_stardundee.cpp: rmapoperations.h \
331 moc/moc_stardundee.cpp: rmapoperations.h \
332 params.h \
332 params.h \
333 ccsds.h \
333 ccsds.h \
334 tmpackettoread.h \
334 tmpackettoread.h \
335 stardundee.h
335 stardundee.h
336 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp
336 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp
337
337
338 moc/moc_gresb.cpp: rmapoperations.h \
338 moc/moc_gresb.cpp: rmapoperations.h \
339 params.h \
339 params.h \
340 ccsds.h \
340 ccsds.h \
341 tmpackettoread.h \
341 tmpackettoread.h \
342 gresb.h
342 gresb.h
343 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp
343 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp
344
344
345 moc/moc_tcpackettosend.cpp: tcpackettosend.h
345 moc/moc_tcpackettosend.cpp: tcpackettosend.h
346 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tcpackettosend.h -o moc/moc_tcpackettosend.cpp
346 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tcpackettosend.h -o moc/moc_tcpackettosend.cpp
347
347
348 moc/moc_tmpackettoread.cpp: tmpackettoread.h
348 moc/moc_tmpackettoread.cpp: tmpackettoread.h
349 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
349 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
350
350
351 moc/moc_tmstatistics.cpp: tmpackettoread.h \
351 moc/moc_tmstatistics.cpp: tmpackettoread.h \
352 tmstatistics.h
352 tmstatistics.h
353 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp
353 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp
354
354
355 moc/moc_wfpacket.cpp: params.h \
355 moc/moc_wfpacket.cpp: params.h \
356 wfpacket.h
356 wfpacket.h
357 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp
357 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp
358
358
359 moc/moc_tmechobridge.cpp: tmpackettoread.h \
359 moc/moc_tmechobridge.cpp: tmpackettoread.h \
360 tmechobridge.h
360 tmechobridge.h
361 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmechobridge.h -o moc/moc_tmechobridge.cpp
361 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmechobridge.h -o moc/moc_tmechobridge.cpp
362
362
363 moc/moc_entermode.cpp: entermode.h
363 moc/moc_entermode.cpp: entermode.h
364 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) entermode.h -o moc/moc_entermode.cpp
364 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) entermode.h -o moc/moc_entermode.cpp
365
365
366 moc/moc_lfractions.cpp: entermode.h \
366 moc/moc_lfractions.cpp: entermode.h \
367 lfractions.h
367 lfractions.h
368 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfractions.h -o moc/moc_lfractions.cpp
368 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfractions.h -o moc/moc_lfractions.cpp
369
369
370 moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h
370 moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h
371 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp
371 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp
372
372
373 moc/moc_lppmonplugin.cpp: /usr/include/lppmon/lppmonplugin.h
373 moc/moc_lppmonplugin.cpp: /usr/include/lppmon/lppmonplugin.h
374 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/lppmonplugin.h -o moc/moc_lppmonplugin.cpp
374 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/lppmonplugin.h -o moc/moc_lppmonplugin.cpp
375
375
376 compiler_rcc_make_all:
376 compiler_rcc_make_all:
377 compiler_rcc_clean:
377 compiler_rcc_clean:
378 compiler_image_collection_make_all: qmake_image_collection.cpp
378 compiler_image_collection_make_all: qmake_image_collection.cpp
379 compiler_image_collection_clean:
379 compiler_image_collection_clean:
380 -$(DEL_FILE) qmake_image_collection.cpp
380 -$(DEL_FILE) qmake_image_collection.cpp
381 compiler_moc_source_make_all:
381 compiler_moc_source_make_all:
382 compiler_moc_source_clean:
382 compiler_moc_source_clean:
383 compiler_uic_make_all:
383 compiler_uic_make_all:
384 compiler_uic_clean:
384 compiler_uic_clean:
385 compiler_yacc_decl_make_all:
385 compiler_yacc_decl_make_all:
386 compiler_yacc_decl_clean:
386 compiler_yacc_decl_clean:
387 compiler_yacc_impl_make_all:
387 compiler_yacc_impl_make_all:
388 compiler_yacc_impl_clean:
388 compiler_yacc_impl_clean:
389 compiler_lex_make_all:
389 compiler_lex_make_all:
390 compiler_lex_clean:
390 compiler_lex_clean:
391 compiler_clean: compiler_moc_header_clean
391 compiler_clean: compiler_moc_header_clean
392
392
393 ####### Compile
393 ####### Compile
394
394
395 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
395 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
396 rmappluginui.h \
396 rmappluginui.h \
397 rmapoperations.h \
397 rmapoperations.h \
398 params.h \
398 params.h \
399 stardundee.h \
399 stardundee.h \
400 ccsds.h \
400 ccsds.h \
401 tmpackettoread.h \
401 tmpackettoread.h \
402 gresb.h \
402 gresb.h \
403 tmstatistics.h \
403 tmstatistics.h \
404 tmechobridge.h \
404 tmechobridge.h \
405 entermode.h \
405 entermode.h \
406 lfractions.h \
406 lfractions.h \
407 wfpacket.h \
407 wfpacket.h \
408 rmappluginpythonwrapper.h \
408 rmappluginpythonwrapper.h \
409 tcpackettosend.h
409 tcpackettosend.h
410 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
410 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
411
411
412 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
412 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
413 rmappluginui.h \
413 rmappluginui.h \
414 rmapoperations.h \
414 rmapoperations.h \
415 params.h \
415 params.h \
416 stardundee.h \
416 stardundee.h \
417 ccsds.h \
417 ccsds.h \
418 tmpackettoread.h \
418 tmpackettoread.h \
419 gresb.h \
419 gresb.h \
420 tmstatistics.h \
420 tmstatistics.h \
421 tmechobridge.h \
421 tmechobridge.h \
422 entermode.h \
422 entermode.h \
423 lfractions.h \
423 lfractions.h \
424 wfpacket.h
424 wfpacket.h
425 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
425 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
426
426
427 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h \
427 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h \
428 params.h
428 params.h
429 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp
429 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp
430
430
431 obj/ccsds.o: ccsds.cpp ccsds.h
431 obj/ccsds.o: ccsds.cpp ccsds.h
432 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp
432 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp
433
433
434 obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
434 obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
435 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp
435 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp
436
436
437 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
437 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
438 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
438 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
439
439
440 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \
440 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \
441 rmapoperations.h \
441 rmapoperations.h \
442 params.h \
442 params.h \
443 ccsds.h \
443 ccsds.h \
444 tcpackettosend.h \
444 tcpackettosend.h \
445 tmpackettoread.h
445 tmpackettoread.h
446 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp
446 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp
447
447
448 obj/stardundee.o: stardundee.cpp stardundee.h \
448 obj/stardundee.o: stardundee.cpp stardundee.h \
449 rmapoperations.h \
449 rmapoperations.h \
450 params.h \
450 params.h \
451 ccsds.h \
451 ccsds.h \
452 tmpackettoread.h
452 tmpackettoread.h
453 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp
453 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp
454
454
455 obj/gresb.o: gresb.cpp gresb.h \
455 obj/gresb.o: gresb.cpp gresb.h \
456 rmapoperations.h \
456 rmapoperations.h \
457 params.h \
457 params.h \
458 ccsds.h \
458 ccsds.h \
459 tmpackettoread.h
459 tmpackettoread.h
460 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp
460 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp
461
461
462 obj/tcpackettosend.o: tcpackettosend.cpp tcpackettosend.h
462 obj/tcpackettosend.o: tcpackettosend.cpp tcpackettosend.h
463 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tcpackettosend.o tcpackettosend.cpp
463 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tcpackettosend.o tcpackettosend.cpp
464
464
465 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
465 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
466 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
466 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
467
467
468 obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \
468 obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \
469 tmpackettoread.h
469 tmpackettoread.h
470 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp
470 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp
471
471
472 obj/wfpacket.o: wfpacket.cpp wfpacket.h \
472 obj/wfpacket.o: wfpacket.cpp wfpacket.h \
473 params.h
473 params.h
474 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp
474 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp
475
475
476 obj/tmechobridge.o: tmechobridge.cpp tmechobridge.h \
476 obj/tmechobridge.o: tmechobridge.cpp tmechobridge.h \
477 tmpackettoread.h
477 tmpackettoread.h
478 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmechobridge.o tmechobridge.cpp
478 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmechobridge.o tmechobridge.cpp
479
479
480 obj/entermode.o: entermode.cpp entermode.h
480 obj/entermode.o: entermode.cpp entermode.h
481 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/entermode.o entermode.cpp
481 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/entermode.o entermode.cpp
482
482
483 obj/lfractions.o: lfractions.cpp lfractions.h \
483 obj/lfractions.o: lfractions.cpp lfractions.h \
484 entermode.h
484 entermode.h
485 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lfractions.o lfractions.cpp
485 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lfractions.o lfractions.cpp
486
486
487 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
487 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
488 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
488 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
489 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
489 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
490
490
491 obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp
491 obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp
492 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp
492 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp
493
493
494 obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp
494 obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp
495 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp
495 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp
496
496
497 obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp
497 obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp
498 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp
498 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp
499
499
500 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
500 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
501 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
501 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
502
502
503 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
503 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
504 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
504 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
505
505
506 obj/moc_stardundee.o: moc/moc_stardundee.cpp
506 obj/moc_stardundee.o: moc/moc_stardundee.cpp
507 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp
507 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp
508
508
509 obj/moc_gresb.o: moc/moc_gresb.cpp
509 obj/moc_gresb.o: moc/moc_gresb.cpp
510 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp
510 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp
511
511
512 obj/moc_tcpackettosend.o: moc/moc_tcpackettosend.cpp
512 obj/moc_tcpackettosend.o: moc/moc_tcpackettosend.cpp
513 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tcpackettosend.o moc/moc_tcpackettosend.cpp
513 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tcpackettosend.o moc/moc_tcpackettosend.cpp
514
514
515 obj/moc_tmpackettoread.o: moc/moc_tmpackettoread.cpp
515 obj/moc_tmpackettoread.o: moc/moc_tmpackettoread.cpp
516 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmpackettoread.o moc/moc_tmpackettoread.cpp
516 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmpackettoread.o moc/moc_tmpackettoread.cpp
517
517
518 obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp
518 obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp
519 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp
519 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp
520
520
521 obj/moc_wfpacket.o: moc/moc_wfpacket.cpp
521 obj/moc_wfpacket.o: moc/moc_wfpacket.cpp
522 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp
522 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp
523
523
524 obj/moc_tmechobridge.o: moc/moc_tmechobridge.cpp
524 obj/moc_tmechobridge.o: moc/moc_tmechobridge.cpp
525 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmechobridge.o moc/moc_tmechobridge.cpp
525 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmechobridge.o moc/moc_tmechobridge.cpp
526
526
527 obj/moc_entermode.o: moc/moc_entermode.cpp
527 obj/moc_entermode.o: moc/moc_entermode.cpp
528 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_entermode.o moc/moc_entermode.cpp
528 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_entermode.o moc/moc_entermode.cpp
529
529
530 obj/moc_lfractions.o: moc/moc_lfractions.cpp
530 obj/moc_lfractions.o: moc/moc_lfractions.cpp
531 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lfractions.o moc/moc_lfractions.cpp
531 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lfractions.o moc/moc_lfractions.cpp
532
532
533 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
533 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
534 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
534 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
535
535
536 obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp
536 obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp
537 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp
537 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp
538
538
539 ####### Install
539 ####### Install
540
540
541 install_target: first FORCE
541 install_target: first FORCE
542 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
542 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
543 -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
543 -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
544 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
544 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
545 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
545 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
546 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
546 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
547
547
548 uninstall_target: FORCE
548 uninstall_target: FORCE
549 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
549 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
550 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
550 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
551 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
551 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
552 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
552 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
553 -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
553 -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
554
554
555
555
556 install: install_target FORCE
556 install: install_target FORCE
557
557
558 uninstall: uninstall_target FORCE
558 uninstall: uninstall_target FORCE
559
559
560 FORCE:
560 FORCE:
561
561
@@ -1,270 +1,270
1 #include "entermode.h"
1 #include "entermode.h"
2
2
3 EnterMode::EnterMode(QWidget *parent) :
3 EnterMode::EnterMode(QWidget *parent) :
4 QWidget(parent)
4 QWidget(parent)
5 {
5 {
6 button_enterModeStandby = new QPushButton(tr("STANDBY"));
6 button_enterModeStandby = new QPushButton(tr("STANDBY"));
7 button_enterModeNormal = new QPushButton(tr("NORMAL"));
7 button_enterModeNormal = new QPushButton(tr("NORMAL"));
8 button_enterModeBurst = new QPushButton(tr("BURST"));
8 button_enterModeBurst = new QPushButton(tr("BURST"));
9 button_enterModeSBM1 = new QPushButton(tr("SBM1"));
9 button_enterModeSBM1 = new QPushButton(tr("SBM1"));
10 button_enterModeSBM2 = new QPushButton(tr("SBM2"));
10 button_enterModeSBM2 = new QPushButton(tr("SBM2"));
11
11
12 button_reset = new QPushButton(tr("RESET"));
12 button_reset = new QPushButton(tr("RESET"));
13 button_updateInfo = new QPushButton(tr("UPDATE_INFO"));
13 button_updateInfo = new QPushButton(tr("UPDATE_INFO"));
14 button_enableCalibration = new QPushButton(tr("ENABLE_CAL"));
14 button_enableCalibration = new QPushButton(tr("ENABLE_CAL"));
15 button_disableCalibration = new QPushButton(tr("DISABLE_CAL"));
15 button_disableCalibration = new QPushButton(tr("DISABLE_CAL"));
16 button_updateTime = new QPushButton(tr("UPDATE_TIME"));
16 button_updateTime = new QPushButton(tr("UPDATE_TIME"));
17
17
18 mainLayout = new QGridLayout();
18 mainLayout = new QGridLayout();
19 overallLayout = new QGridLayout();
19 overallLayout = new QGridLayout();
20
20
21 layout_updateTime = new QVBoxLayout();
21 layout_updateTime = new QVBoxLayout();
22 layout_otherTC = new QVBoxLayout();
22 layout_otherTC = new QVBoxLayout();
23
23
24 arbitraryTime = new ArbitraryTime(0);
24 arbitraryTime = new ArbitraryTime(0);
25
25
26 layout_otherTC->addWidget(button_reset);
26 layout_otherTC->addWidget(button_reset);
27 layout_otherTC->addWidget(button_updateInfo);
27 layout_otherTC->addWidget(button_updateInfo);
28 layout_otherTC->addWidget(button_enableCalibration);
28 layout_otherTC->addWidget(button_enableCalibration);
29 layout_otherTC->addWidget(button_disableCalibration);
29 layout_otherTC->addWidget(button_disableCalibration);
30 layout_otherTC->addStretch();
30 layout_otherTC->addStretch();
31
31
32 layout_updateTime->addWidget(button_updateTime);
32 layout_updateTime->addWidget(button_updateTime);
33 layout_updateTime->addWidget(arbitraryTime);
33 layout_updateTime->addWidget(arbitraryTime);
34 layout_updateTime->addStretch();
34 layout_updateTime->addStretch();
35
35
36 groupBox = new QGroupBox(tr("ENTER_MODE"));
36 groupBox = new QGroupBox(tr("ENTER_MODE"));
37 groupBox_updateTime = new QGroupBox(tr("UPDATE_TIME"));
37 groupBox_updateTime = new QGroupBox(tr("UPDATE_TIME"));
38 groupBox_otherTC = new QGroupBox(tr("OTHER TC"));
38 groupBox_otherTC = new QGroupBox(tr("OTHER TC"));
39
39
40 mainLayout->addWidget(button_enterModeStandby, 0, 0, 1, 1);
40 mainLayout->addWidget(button_enterModeStandby, 0, 0, 1, 1);
41 mainLayout->addWidget(button_enterModeNormal, 1, 0, 1, 1);
41 mainLayout->addWidget(button_enterModeNormal, 1, 0, 1, 1);
42 mainLayout->addWidget(button_enterModeBurst, 2, 0, 1, 1);
42 mainLayout->addWidget(button_enterModeBurst, 2, 0, 1, 1);
43 mainLayout->addWidget(button_enterModeSBM1, 3, 0, 1, 1);
43 mainLayout->addWidget(button_enterModeSBM1, 3, 0, 1, 1);
44 mainLayout->addWidget(button_enterModeSBM2, 4, 0, 1, 1);
44 mainLayout->addWidget(button_enterModeSBM2, 4, 0, 1, 1);
45
45
46 mainLayout->setColumnStretch(1, 1);
46 mainLayout->setColumnStretch(1, 1);
47 mainLayout->setRowStretch(5, 1);
47 mainLayout->setRowStretch(5, 1);
48
48
49 groupBox->setLayout(mainLayout);
49 groupBox->setLayout(mainLayout);
50 groupBox_otherTC->setLayout(layout_otherTC);
50 groupBox_otherTC->setLayout(layout_otherTC);
51 groupBox_updateTime->setLayout(layout_updateTime);
51 groupBox_updateTime->setLayout(layout_updateTime);
52
52
53 parameterDump = new ParameterDump();
53 parameterDump = new ParameterDump();
54
54
55 connect(this->button_reset, SIGNAL(clicked()), this, SLOT(sendReset()));
55 connect(this->button_reset, SIGNAL(clicked()), this, SLOT(sendReset()));
56
56
57 connect(this->button_enterModeStandby, SIGNAL(clicked()), this, SLOT(enterModeStandby()));
57 connect(this->button_enterModeStandby, SIGNAL(clicked()), this, SLOT(enterModeStandby()));
58 connect(this->button_enterModeNormal, SIGNAL(clicked()), this, SLOT(enterModeNormal()));
58 connect(this->button_enterModeNormal, SIGNAL(clicked()), this, SLOT(enterModeNormal()));
59 connect(this->button_enterModeBurst, SIGNAL(clicked()), this, SLOT(enterModeBurst()));
59 connect(this->button_enterModeBurst, SIGNAL(clicked()), this, SLOT(enterModeBurst()));
60 connect(this->button_enterModeSBM1, SIGNAL(clicked()), this, SLOT(enterModeSBM1()));
60 connect(this->button_enterModeSBM1, SIGNAL(clicked()), this, SLOT(enterModeSBM1()));
61 connect(this->button_enterModeSBM2, SIGNAL(clicked()), this, SLOT(enterModeSBM2()));
61 connect(this->button_enterModeSBM2, SIGNAL(clicked()), this, SLOT(enterModeSBM2()));
62
62
63 connect(this->button_updateInfo, SIGNAL(clicked()), this, SLOT(sendUpdateInfo()));
63 connect(this->button_updateInfo, SIGNAL(clicked()), this, SLOT(sendUpdateInfo()));
64 connect(this->button_enableCalibration, SIGNAL(clicked()), this, SLOT(sendEnableCalibration()));
64 connect(this->button_enableCalibration, SIGNAL(clicked()), this, SLOT(sendEnableCalibration()));
65 connect(this->button_disableCalibration, SIGNAL(clicked()), this, SLOT(sendDisableCalibration()));
65 connect(this->button_disableCalibration, SIGNAL(clicked()), this, SLOT(sendDisableCalibration()));
66 connect(this->button_updateTime, SIGNAL(clicked()), this->arbitraryTime, SLOT(sendCurrentTimeToSend()));
66 connect(this->button_updateTime, SIGNAL(clicked()), this->arbitraryTime, SLOT(sendCurrentTimeToSend()));
67
67
68 overallLayout->addWidget(groupBox, 0, 0, 1, 1);
68 overallLayout->addWidget(groupBox, 0, 0, 1, 1);
69 overallLayout->addWidget(groupBox_updateTime, 1, 0, 1, 1);
69 overallLayout->addWidget(groupBox_updateTime, 1, 0, 1, 1);
70 overallLayout->addWidget(groupBox_otherTC, 2, 0, 1, 1);
70 overallLayout->addWidget(groupBox_otherTC, 2, 0, 1, 1);
71
71
72 this->setLayout(overallLayout);
72 this->setLayout(overallLayout);
73 }
73 }
74
74
75 void EnterMode::sendEnterMode( unsigned char mode)
75 void EnterMode::sendEnterMode( unsigned char mode)
76 {
76 {
77 Packet_TC_LFR_ENTER_MODE_t packet;
77 Packet_TC_LFR_ENTER_MODE_t packet;
78 unsigned char crcAsTwoBytes[2];
78 unsigned char crcAsTwoBytes[2];
79
79
80 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
80 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
81 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
81 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
82 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
82 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
83 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
83 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
84 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE >> 8);
84 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE >> 8);
85 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE );
85 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE );
86
86
87 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
87 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
88 packet.serviceType = TC_TYPE_DEFAULT;
88 packet.serviceType = TC_TYPE_DEFAULT;
89 packet.serviceSubType = TC_SUBTYPE_ENTER_MODE;
89 packet.serviceSubType = TC_SUBTYPE_ENTER_MODE;
90 packet.sourceID = SID_DEFAULT;
90 packet.sourceID = SID_TC_DEFAULT;
91 packet.spare = 0x00;
91 packet.spare = 0x00;
92 packet.mode = mode;
92 packet.mode = mode;
93 packet.enterModeTime[0] = 0x00;
93 packet.enterModeTime[0] = 0x00;
94 packet.enterModeTime[1] = 0x00;
94 packet.enterModeTime[1] = 0x00;
95 packet.enterModeTime[2] = 0x00;
95 packet.enterModeTime[2] = 0x00;
96 packet.enterModeTime[3] = 0x00;
96 packet.enterModeTime[3] = 0x00;
97 packet.enterModeTime[4] = 0x00;
97 packet.enterModeTime[4] = 0x00;
98 packet.enterModeTime[5] = 0x00;
98 packet.enterModeTime[5] = 0x00;
99
99
100 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
100 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
101 PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET - 2);
101 PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET - 2);
102 packet.crc[0] = crcAsTwoBytes[0];
102 packet.crc[0] = crcAsTwoBytes[0];
103 packet.crc[1] = crcAsTwoBytes[1];
103 packet.crc[1] = crcAsTwoBytes[1];
104
104
105 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET,
105 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET,
106 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
106 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
107 }
107 }
108
108
109 void EnterMode::enterModeStandby()
109 void EnterMode::enterModeStandby()
110 {
110 {
111 sendEnterMode( 0 );
111 sendEnterMode( 0 );
112 }
112 }
113
113
114 void EnterMode::enterModeNormal()
114 void EnterMode::enterModeNormal()
115 {
115 {
116 sendEnterMode( 1 );
116 sendEnterMode( 1 );
117 }
117 }
118
118
119 void EnterMode::enterModeBurst()
119 void EnterMode::enterModeBurst()
120 {
120 {
121 sendEnterMode( 2 );
121 sendEnterMode( 2 );
122 }
122 }
123
123
124 void EnterMode::enterModeSBM1()
124 void EnterMode::enterModeSBM1()
125 {
125 {
126 sendEnterMode( 3 );
126 sendEnterMode( 3 );
127 }
127 }
128
128
129 void EnterMode::enterModeSBM2()
129 void EnterMode::enterModeSBM2()
130 {
130 {
131 sendEnterMode( 4 );
131 sendEnterMode( 4 );
132 }
132 }
133
133
134 void EnterMode::sendReset()
134 void EnterMode::sendReset()
135 {
135 {
136 Packet_TC_LFR_RESET_t packet;
136 Packet_TC_LFR_RESET_t packet;
137 unsigned char crcAsTwoBytes[2];
137 unsigned char crcAsTwoBytes[2];
138
138
139 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
139 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
140 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
140 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
141 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
141 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
142 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
142 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
143 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET >> 8);
143 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET >> 8);
144 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET );
144 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET );
145
145
146 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
146 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
147 packet.serviceType = TC_TYPE_DEFAULT;
147 packet.serviceType = TC_TYPE_DEFAULT;
148 packet.serviceSubType = TC_SUBTYPE_RESET;
148 packet.serviceSubType = TC_SUBTYPE_RESET;
149 packet.sourceID = SID_DEFAULT;
149 packet.sourceID = SID_TC_DEFAULT;
150
150
151 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
151 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
152 PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET - 2);
152 PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET - 2);
153 packet.crc[0] = crcAsTwoBytes[0];
153 packet.crc[0] = crcAsTwoBytes[0];
154 packet.crc[1] = crcAsTwoBytes[1];
154 packet.crc[1] = crcAsTwoBytes[1];
155
155
156 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET,
156 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET,
157 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
157 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
158 }
158 }
159
159
160 void EnterMode::sendUpdateInfo()
160 void EnterMode::sendUpdateInfo()
161 {
161 {
162 Packet_TC_LFR_UPDATE_INFO_t packet;
162 Packet_TC_LFR_UPDATE_INFO_t packet;
163 unsigned char crcAsTwoBytes[2];
163 unsigned char crcAsTwoBytes[2];
164
164
165 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
165 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
166 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
166 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
167 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
167 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
168 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
168 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
169 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO >> 8);
169 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO >> 8);
170 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO );
170 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO );
171
171
172 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
172 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
173 packet.serviceType = TC_TYPE_DEFAULT;
173 packet.serviceType = TC_TYPE_DEFAULT;
174 packet.serviceSubType = TC_SUBTYPE_UPDATE_INFO;
174 packet.serviceSubType = TC_SUBTYPE_UPDATE_INFO;
175 packet.sourceID = SID_DEFAULT;
175 packet.sourceID = SID_TC_DEFAULT;
176
176
177 packet.set1 = 0x00;
177 packet.set1 = 0x00;
178 packet.set2 = 0x00;
178 packet.set2 = 0x00;
179 packet.set3_bias_setting_set1[0] = 0x00;
179 packet.set3_bias_setting_set1[0] = 0x00;
180 packet.set3_bias_setting_set1[1] = 0x00;
180 packet.set3_bias_setting_set1[1] = 0x00;
181 packet.set3_bias_setting_set1[2] = 0x00;
181 packet.set3_bias_setting_set1[2] = 0x00;
182 packet.set3_bias_setting_set1[3] = 0x00;
182 packet.set3_bias_setting_set1[3] = 0x00;
183 packet.set3_bias_setting_set1[4] = 0x00;
183 packet.set3_bias_setting_set1[4] = 0x00;
184 packet.set3_bias_setting_set2[5] = 0x00;
184 packet.set3_bias_setting_set2[5] = 0x00;
185 packet.set3_bias_voltage[0] = 0x00;
185 packet.set3_bias_voltage[0] = 0x00;
186 packet.set3_bias_voltage[1] = 0x00;
186 packet.set3_bias_voltage[1] = 0x00;
187 packet.set3_bias_voltage[2] = 0x00;
187 packet.set3_bias_voltage[2] = 0x00;
188 packet.set3_bias_voltage[3] = 0x00;
188 packet.set3_bias_voltage[3] = 0x00;
189 packet.set4[0] = 0x00;
189 packet.set4[0] = 0x00;
190 packet.set4[1] = 0x00;
190 packet.set4[1] = 0x00;
191 packet.set4[2] = 0x00;
191 packet.set4[2] = 0x00;
192 packet.set4[3] = 0x00;
192 packet.set4[3] = 0x00;
193 packet.set4[4] = 0x00;
193 packet.set4[4] = 0x00;
194 packet.set4[5] = 0x00;
194 packet.set4[5] = 0x00;
195 packet.set4[6] = 0x00;
195 packet.set4[6] = 0x00;
196 packet.set4[7] = 0x00;
196 packet.set4[7] = 0x00;
197 packet.set5 = 0x00;
197 packet.set5 = 0x00;
198 packet.set6 = 0x00;
198 packet.set6 = 0x00;
199 packet.set7[0] = 0x00;
199 packet.set7[0] = 0x00;
200 packet.set7[1] = 0x00;
200 packet.set7[1] = 0x00;
201 packet.set7[2] = 0x00;
201 packet.set7[2] = 0x00;
202 packet.set7[3] = 0x00;
202 packet.set7[3] = 0x00;
203 packet.set7[4] = 0x00;
203 packet.set7[4] = 0x00;
204 packet.set7[5] = 0x00;
204 packet.set7[5] = 0x00;
205 packet.set7[6] = 0x00;
205 packet.set7[6] = 0x00;
206 packet.set7[7] = 0x00;
206 packet.set7[7] = 0x00;
207
207
208 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
208 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
209 PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET - 2);
209 PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET - 2);
210 packet.crc[0] = crcAsTwoBytes[0];
210 packet.crc[0] = crcAsTwoBytes[0];
211 packet.crc[1] = crcAsTwoBytes[1];
211 packet.crc[1] = crcAsTwoBytes[1];
212
212
213 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET,
213 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET,
214 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
214 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
215 }
215 }
216
216
217 void EnterMode::sendEnableCalibration()
217 void EnterMode::sendEnableCalibration()
218 {
218 {
219 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
219 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
220 unsigned char crcAsTwoBytes[2];
220 unsigned char crcAsTwoBytes[2];
221
221
222 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
222 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
223 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
223 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
224 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
224 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
225 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
225 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
226 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION >> 8);
226 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION >> 8);
227 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION );
227 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION );
228
228
229 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
229 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
230 packet.serviceType = TC_TYPE_DEFAULT;
230 packet.serviceType = TC_TYPE_DEFAULT;
231 packet.serviceSubType = TC_SUBTYPE_ENABLE_CALIBRATION;
231 packet.serviceSubType = TC_SUBTYPE_ENABLE_CALIBRATION;
232 packet.sourceID = SID_DEFAULT;
232 packet.sourceID = SID_TC_DEFAULT;
233
233
234 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
234 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
235 PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
235 PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
236 packet.crc[0] = crcAsTwoBytes[0];
236 packet.crc[0] = crcAsTwoBytes[0];
237 packet.crc[1] = crcAsTwoBytes[1];
237 packet.crc[1] = crcAsTwoBytes[1];
238
238
239 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
239 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
240 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
240 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
241 }
241 }
242
242
243 void EnterMode::sendDisableCalibration()
243 void EnterMode::sendDisableCalibration()
244 {
244 {
245 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
245 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
246 unsigned char crcAsTwoBytes[2];
246 unsigned char crcAsTwoBytes[2];
247
247
248 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
248 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
249 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
249 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
250 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
250 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
251 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
251 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
252 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION >> 8);
252 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION >> 8);
253 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION );
253 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION );
254
254
255 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
255 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
256 packet.serviceType = TC_TYPE_DEFAULT;
256 packet.serviceType = TC_TYPE_DEFAULT;
257 packet.serviceSubType = TC_SUBTYPE_DISABLE_CALIBRATION;
257 packet.serviceSubType = TC_SUBTYPE_DISABLE_CALIBRATION;
258 packet.sourceID = SID_DEFAULT;
258 packet.sourceID = SID_TC_DEFAULT;
259
259
260 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
260 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
261 PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
261 PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
262 packet.crc[0] = crcAsTwoBytes[0];
262 packet.crc[0] = crcAsTwoBytes[0];
263 packet.crc[1] = crcAsTwoBytes[1];
263 packet.crc[1] = crcAsTwoBytes[1];
264
264
265 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
265 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
266 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
266 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
267 }
267 }
268
268
269
269
270
270
@@ -1,845 +1,850
1 #include "stardundee.h"
1 #include "stardundee.h"
2 #include <QTime>
2 #include <QTime>
3 #include <math.h>
3 #include <math.h>
4 #include "ccsds.h"
4 #include "ccsds.h"
5
5
6 StarDundee::StarDundee(QWidget *parent) :
6 StarDundee::StarDundee(QWidget *parent) :
7 QWidget(parent)
7 QWidget(parent)
8 {
8 {
9 // Packet receiver
9 // Packet receiver
10 timer = new QTimer;
10 timer = new QTimer;
11 rmapPacketSEMAPHORE = new QSemaphore;
11 rmapPacketSEMAPHORE = new QSemaphore;
12 ccsdsPacketSEMAPHORE = new QSemaphore;
12 ccsdsPacketSEMAPHORE = new QSemaphore;
13 rmapPacket = (char*) malloc(RMAP_MAX_PACKET_LENGTH);
13 rmapPacket = (char*) malloc(RMAP_MAX_PACKET_LENGTH);
14 ccsdsPacket = (unsigned char*) malloc(CCSDS_MAX_PACKET_LENGTH);
14 ccsdsPacket = (unsigned char*) malloc(CCSDS_MAX_PACKET_LENGTH);
15 spwPacket = (char*) malloc( qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH) );
15 spwPacket = (char*) malloc( qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH) );
16
16
17 starDundeeStatusQueryDialog = new QDialog;
17 starDundeeStatusQueryDialog = new QDialog;
18
18
19 commandCode = invalid0; // initialization of the cmmand code for the RMAP transfers
19 commandCode = invalid0; // initialization of the cmmand code for the RMAP transfers
20 rmapTargetLogicalAddress = DEFAULT_TARGET;
20 rmapTargetLogicalAddress = DEFAULT_TARGET;
21 rmapSourceLogicalAddress = DEFAULT_SOURCE;
21 rmapSourceLogicalAddress = DEFAULT_SOURCE;
22
22
23 connection_LAYOUT = new QGridLayout;
23 connection_LAYOUT = new QGridLayout;
24
24
25 usbDeviceNumber_LABEL = new QLabel(tr("USB device number: "));
25 usbDeviceNumber_LABEL = new QLabel(tr("USB device number: "));
26 linkNumber_LABEL = new QLabel(tr("SpaceWire link number: "));
26 linkNumber_LABEL = new QLabel(tr("SpaceWire link number: "));
27 starDundeeStatusQueryDialogLabel = new QLabel(tr("SpaceWire link not running"));
27 starDundeeStatusQueryDialogLabel = new QLabel(tr("SpaceWire link not running"));
28
28
29 //*** QPUSHBUTTON ***//
29 //*** QPUSHBUTTON ***//
30 starDundeeStatusQueryRetryButton = new QPushButton(tr("Retry"));
30 starDundeeStatusQueryRetryButton = new QPushButton(tr("Retry"));
31 starDundeeStatusQueryAbortButton = new QPushButton(tr("Abort"));
31 starDundeeStatusQueryAbortButton = new QPushButton(tr("Abort"));
32
32
33 usbDeviceNumber_SPINBOX = new QSpinBox;
33 usbDeviceNumber_SPINBOX = new QSpinBox;
34 usbDeviceNumber_SPINBOX->setRange(0,32);
34 usbDeviceNumber_SPINBOX->setRange(0,32);
35 usbDeviceNumber_SPINBOX->setValue(0);
35 usbDeviceNumber_SPINBOX->setValue(0);
36 linkNumber_SPINBOX = new QSpinBox;
36 linkNumber_SPINBOX = new QSpinBox;
37 linkNumber_SPINBOX->setRange(1,2);
37 linkNumber_SPINBOX->setRange(1,2);
38 linkNumber_SPINBOX->setValue(1);
38 linkNumber_SPINBOX->setValue(1);
39
39
40 // STAR DUNDEE STATUS QUERY DIALOG
40 // STAR DUNDEE STATUS QUERY DIALOG
41 starDundeeStatusQueryDialogLayout = new QGridLayout;
41 starDundeeStatusQueryDialogLayout = new QGridLayout;
42 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryDialogLabel, 0, 0, 1, 2);
42 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryDialogLabel, 0, 0, 1, 2);
43 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryRetryButton, 1, 0, 0);
43 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryRetryButton, 1, 0, 0);
44 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryAbortButton, 1, 1, 0);
44 starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryAbortButton, 1, 1, 0);
45 starDundeeStatusQueryDialog->setLayout(starDundeeStatusQueryDialogLayout);
45 starDundeeStatusQueryDialog->setLayout(starDundeeStatusQueryDialogLayout);
46
46
47 connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1);
47 connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1);
48 connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1);
48 connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1);
49 connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1);
49 connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1);
50 connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1);
50 connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1);
51
51
52 connection_LAYOUT->setRowStretch(2, 1);
52 connection_LAYOUT->setRowStretch(2, 1);
53 connection_LAYOUT->setColumnStretch(2, 1);
53 connection_LAYOUT->setColumnStretch(2, 1);
54
54
55 this->setLayout(connection_LAYOUT);
55 this->setLayout(connection_LAYOUT);
56
56
57 connect(starDundeeStatusQueryRetryButton, SIGNAL(clicked()), this, SLOT(reTestSPWLink()));
57 connect(starDundeeStatusQueryRetryButton, SIGNAL(clicked()), this, SLOT(reTestSPWLink()));
58 connect(starDundeeStatusQueryAbortButton, SIGNAL(clicked()), starDundeeStatusQueryDialog, SLOT(reject()));
58 connect(starDundeeStatusQueryAbortButton, SIGNAL(clicked()), starDundeeStatusQueryDialog, SLOT(reject()));
59
59
60 connect(this->timer, SIGNAL(timeout()), this, SLOT(receivePollingLoop()));
60 connect(this->timer, SIGNAL(timeout()), this, SLOT(receivePollingLoop()));
61 }
61 }
62
62
63 StarDundee::~StarDundee()
63 StarDundee::~StarDundee()
64 {
64 {
65 free(rmapPacket);
65 free(rmapPacket);
66 free(ccsdsPacket);
66 free(ccsdsPacket);
67 free(spwPacket);
67 free(spwPacket);
68 USBSpaceWire_Close(hDevice); // Close the device
68 USBSpaceWire_Close(hDevice); // Close the device
69 }
69 }
70
70
71 void StarDundee::Open()
71 void StarDundee::Open()
72 {
72 {
73 int status;
73 int status;
74 U32 statusControl;
74 U32 statusControl;
75
75
76 if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device
76 if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device
77 {
77 {
78 emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))");
78 emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))");
79 return;
79 return;
80 }
80 }
81 emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: "
81 emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: "
82 + QString::number(usbDeviceNumber_SPINBOX->value()));
82 + QString::number(usbDeviceNumber_SPINBOX->value()));
83
83
84 USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode
84 USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode
85 CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP for the StarDundee brick configuration
85 CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP for the StarDundee brick configuration
86 CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices
86 CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices
87
87
88 // Set the path and return path to the device
88 // Set the path and return path to the device
89 CFGSpaceWire_StackClear();
89 CFGSpaceWire_StackClear();
90 CFGSpaceWire_AddrStackPush(0);
90 CFGSpaceWire_AddrStackPush(0);
91 CFGSpaceWire_AddrStackPush(254);
91 CFGSpaceWire_AddrStackPush(254);
92 CFGSpaceWire_RetAddrStackPush(254);
92 CFGSpaceWire_RetAddrStackPush(254);
93
93
94 // set the base transmit rate to 100 MHz
94 // set the base transmit rate to 100 MHz
95 status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff);
95 status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff);
96 if (status != CFG_TRANSFER_SUCCESS)
96 if (status != CFG_TRANSFER_SUCCESS)
97 {
97 {
98 emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate");
98 emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate");
99 }
99 }
100 else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz");
100 else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz");
101 // read the link status
101 // read the link status
102 if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS)
102 if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS)
103 {
103 {
104 emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value()));
104 emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value()));
105 }
105 }
106 else
106 else
107 {
107 {
108 emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value()));
108 emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value()));
109
109
110 // Set the link status control register properties
110 // Set the link status control register properties
111 CFGSpaceWire_LSEnableAutoStart(&statusControl, 1);
111 CFGSpaceWire_LSEnableAutoStart(&statusControl, 1);
112 CFGSpaceWire_LSEnableStart(&statusControl, 1);
112 CFGSpaceWire_LSEnableStart(&statusControl, 1);
113 CFGSpaceWire_LSEnableDisabled(&statusControl, 0);
113 CFGSpaceWire_LSEnableDisabled(&statusControl, 0);
114 CFGSpaceWire_LSEnableTristate(&statusControl, 0);
114 CFGSpaceWire_LSEnableTristate(&statusControl, 0);
115 CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz
115 CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz
116
116
117 // Set the link status control register
117 // Set the link status control register
118 if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS)
118 if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS)
119 {
119 {
120 emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
120 emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
121 }
121 }
122 else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
122 else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
123 }
123 }
124
124
125 if (CFGSpaceWire_SetAsInterface(hDevice, 1, 0) != CFG_TRANSFER_SUCCESS)
125 if (CFGSpaceWire_SetAsInterface(hDevice, 1, 0) != CFG_TRANSFER_SUCCESS)
126 {
126 {
127 emit sendMessage("Could not set the device to be an interface");
127 emit sendMessage("Could not set the device to be an interface");
128 }
128 }
129 else
129 else
130 {
130 {
131 emit sendMessage("Device set to be an interface");
131 emit sendMessage("Device set to be an interface");
132 }
132 }
133
133
134 //setRoutingTableEntry(rmapTargetLogicalAddress, (1<<linkNumber_SPINBOX->value()));
134 //setRoutingTableEntry(rmapTargetLogicalAddress, (1<<linkNumber_SPINBOX->value()));
135 //setRoutingTableEntry(rmapSourceLogicalAddress, (1<<3));
135 //setRoutingTableEntry(rmapSourceLogicalAddress, (1<<3));
136 //GetRoutingTableEntry(rmapTargetLogicalAddress);
136 //GetRoutingTableEntry(rmapTargetLogicalAddress);
137 //GetRoutingTableEntry(rmapSourceLogicalAddress);
137 //GetRoutingTableEntry(rmapSourceLogicalAddress);
138
138
139 USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports
139 USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports
140 USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints
140 USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints
141
141
142 emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes");
142 emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes");
143 emit sendMessage("The driver's current read buffer size is " + QString::number(USBSpaceWire_GetDriverReadBufferSize(hDevice)) + " bytes");
143 emit sendMessage("The driver's current read buffer size is " + QString::number(USBSpaceWire_GetDriverReadBufferSize(hDevice)) + " bytes");
144 emit sendMessage("USBSpaceWire_IsReadThrottling is " + QString::number(USBSpaceWire_IsReadThrottling(hDevice)));
144 emit sendMessage("USBSpaceWire_IsReadThrottling is " + QString::number(USBSpaceWire_IsReadThrottling(hDevice)));
145
145
146 // initialize SPW packet semaphores
146 // initialize SPW packet semaphores
147 while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire();
147 while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire();
148 while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire();
148 while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire();
149
149
150 if (getLinkStatus(linkNumber_SPINBOX->value()))
150 if (getLinkStatus(linkNumber_SPINBOX->value()))
151 {
151 {
152 emit isOpen(true);
152 emit isOpen(true);
153 timer->start(100); // starts the periodical timer, period = 100ms
153 timer->start(1); // starts the periodical timer, period = 100ms
154 }
154 }
155 else
155 else
156 {
156 {
157 starDundeeStatusQueryDialog->exec();
157 starDundeeStatusQueryDialog->exec();
158 }
158 }
159 }
159 }
160
160
161 void StarDundee::Close()
161 void StarDundee::Close()
162 {
162 {
163 USBSpaceWire_Close(hDevice); // Close the device
163 USBSpaceWire_Close(hDevice); // Close the device
164 emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value()));
164 emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value()));
165
165
166 USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports
166 USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports
167
167
168 emit isOpen(false);
168 emit isOpen(false);
169 }
169 }
170
170
171 unsigned char StarDundee::setRoutingTableEntry(int tableEntry, U32 dwOutputPorts)
171 unsigned char StarDundee::setRoutingTableEntry(int tableEntry, U32 dwOutputPorts)
172 {
172 {
173 U32 routingTableEntry;
173 U32 routingTableEntry;
174 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET entryNumber
174 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET entryNumber
175 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
175 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
176 {
176 {
177 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
177 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
178 }
178 }
179 // Build the routing table entry
179 // Build the routing table entry
180 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
180 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
181 dwOutputPorts, // route out of port dwOutputPorts
181 dwOutputPorts, // route out of port dwOutputPorts
182 0, // header deletion disabled
182 0, // header deletion disabled
183 0); // priority normal
183 0); // priority normal
184 // Set the routing table entry for logical address tableEntry
184 // Set the routing table entry for logical address tableEntry
185 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
185 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
186 {
186 {
187 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
187 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
188 }
188 }
189 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
189 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
190 return 1;
190 return 1;
191 }
191 }
192
192
193 unsigned int StarDundee::GetRoutingTableEntry(int tableEntry)
193 unsigned int StarDundee::GetRoutingTableEntry(int tableEntry)
194 {
194 {
195 U32 routingTableEntry, outputPorts;
195 U32 routingTableEntry, outputPorts;
196 char enabled, delHead, priority;
196 char enabled, delHead, priority;
197 int portNum;
197 int portNum;
198
198
199 emit sendMessage("GetRoutingTableEntry [" + QString::number(tableEntry) + "]");
199 emit sendMessage("GetRoutingTableEntry [" + QString::number(tableEntry) + "]");
200 // Read the routing table entry
200 // Read the routing table entry
201 if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS)
201 if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS)
202 {
202 {
203 emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]");
203 emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]");
204 }
204 }
205 else
205 else
206 {
206 {
207 // Display the routing table entry properties
207 // Display the routing table entry properties
208 CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled);
208 CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled);
209 CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead);
209 CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead);
210 CFGSpaceWire_RTIsPriority(routingTableEntry, &priority);
210 CFGSpaceWire_RTIsPriority(routingTableEntry, &priority);
211 CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts);
211 CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts);
212 emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled));
212 emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled));
213 emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead));
213 emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead));
214 emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority));
214 emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority));
215 emit sendMessage("CFGSpaceWire_RTGetOutputPorts : ");
215 emit sendMessage("CFGSpaceWire_RTGetOutputPorts : ");
216 for (portNum = 0; portNum < 32; portNum++)
216 for (portNum = 0; portNum < 32; portNum++)
217 {
217 {
218 if (outputPorts & (1 << portNum))
218 if (outputPorts & (1 << portNum))
219 {
219 {
220 emit sendMessage(QString::number(portNum));
220 emit sendMessage(QString::number(portNum));
221 }
221 }
222 }
222 }
223 }
223 }
224
224
225 return 1;
225 return 1;
226 }
226 }
227
227
228 unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address)
228 unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address)
229 {
229 {
230 unsigned int remainingCount = count;
230 unsigned int remainingCount = count;
231 unsigned int iOffset = 0;
231 unsigned int iOffset = 0;
232 QString console_message;
232 QString console_message;
233 char* data;
233 char* data;
234
234
235 if(rmapPacketSEMAPHORE->available()!=0)
235 if(rmapPacketSEMAPHORE->available()!=0)
236 {
236 {
237 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped");
237 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped");
238 return 1;
238 return 1;
239 }
239 }
240
240
241 emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
241 emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
242
242
243 data = (char*) malloc(READ_WRITE_MAX_COUNTS*4);
243 data = (char*) malloc(READ_WRITE_MAX_COUNTS*4);
244
244
245 emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
245 emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
246 emit sendMessage(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
246
247
247 while (remainingCount > READ_WRITE_MAX_COUNTS)
248 while (remainingCount > READ_WRITE_MAX_COUNTS)
248 {
249 {
249 for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++)
250 for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++)
250 {
251 {
251 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
252 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
252 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
253 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
253 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
254 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
254 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
255 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
255 }
256 }
256
257
257 console_message.sprintf("remainingCount: %d => ", remainingCount);
258 console_message.sprintf("remainingCount: %d => ", remainingCount);
258 emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16));
259 emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16));
259
260
260 if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0)
261 if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0)
261 {
262 {
262 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
263 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
263 return 1;
264 return 1;
264 }
265 }
265
266
266 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
267 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
267 address = address + READ_WRITE_MAX_COUNTS * 4;
268 address = address + READ_WRITE_MAX_COUNTS * 4;
268 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
269 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
269 }
270 }
270
271
271 if (remainingCount > 0)
272 if (remainingCount > 0)
272 {
273 {
273 for (unsigned int i = 0; i<remainingCount; i++)
274 for (unsigned int i = 0; i<remainingCount; i++)
274 {
275 {
275 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
276 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
276 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
277 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
277 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
278 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
278 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
279 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
279 }
280 }
280
281
281 console_message.sprintf("remainingCount: %d => ", remainingCount);
282 console_message.sprintf("remainingCount: %d => ", remainingCount);
282 emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16));
283 emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16));
283
284
284 if (WriteBLOCK(data, remainingCount*4, address)==0)
285 if (WriteBLOCK(data, remainingCount*4, address)==0)
285 {
286 {
286 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
287 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
287 return 1;
288 return 1;
288 }
289 }
289 }
290 }
290
291
291 emit appendToLog(QString("*** STOP *** WRITE"));
292 emit appendToLog(QString("*** STOP *** WRITE"));
293 emit sendMessage(QString("*** STOP *** WRITE"));
292 free(data);
294 free(data);
293 return count;
295 return count;
294 }
296 }
295
297
296 unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address)
298 unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address)
297 {
299 {
298 unsigned int remainingCount = count;
300 unsigned int remainingCount = count;
299 unsigned int iOffset = 0;
301 unsigned int iOffset = 0;
300 QString console_message;
302 QString console_message;
301
303
302 if(rmapPacketSEMAPHORE->available()!=0)
304 if(rmapPacketSEMAPHORE->available()!=0)
303 {
305 {
304 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped");
306 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped");
305 return 1;
307 return 1;
306 }
308 }
309
307 emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
310 emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
311 emit sendMessage(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
308
312
309 while (remainingCount > READ_WRITE_MAX_COUNTS)
313 while (remainingCount > READ_WRITE_MAX_COUNTS)
310 {
314 {
311 console_message.sprintf("remainingCount: %d => ", remainingCount);
315 console_message.sprintf("remainingCount: %d => ", remainingCount);
312 emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16));
316 emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16));
313
317
314 if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0)
318 if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0)
315 {
319 {
316 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
320 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
317 return 1;
321 return 1;
318 }
322 }
319
323
320 for(int i=0;i<READ_WRITE_MAX_COUNTS;i++)
324 for(int i=0;i<READ_WRITE_MAX_COUNTS;i++)
321 {
325 {
322 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
326 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
323 for(int j=1;j<4;j++)
327 for(int j=1;j<4;j++)
324 {
328 {
325 Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH]))
329 Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH]))
326 + Value[i+iOffset]*256;
330 + Value[i+iOffset]*256;
327 }
331 }
328 }
332 }
329
333
330 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
334 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
331 address = address + READ_WRITE_MAX_COUNTS * 4;
335 address = address + READ_WRITE_MAX_COUNTS * 4;
332 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
336 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
333 this->acquireRMAPSemaphore();
337 this->acquireRMAPSemaphore();
334 }
338 }
335
339
336 if (remainingCount > 0)
340 if (remainingCount > 0)
337 {
341 {
338 console_message.sprintf("remainingCount: %d => ", remainingCount);
342 console_message.sprintf("remainingCount: %d => ", remainingCount);
339 emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16));
343 emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16));
340
344
341 if (this->ReadBLOCK(4*remainingCount, address)==0)
345 if (this->ReadBLOCK(4*remainingCount, address)==0)
342 {
346 {
343 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
347 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
344 return 1;
348 return 1;
345 }
349 }
346
350
347 for(unsigned int i=0;i<remainingCount;i++)
351 for(unsigned int i=0;i<remainingCount;i++)
348 {
352 {
349 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
353 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
350 for(int j=1;j<4;j++)
354 for(int j=1;j<4;j++)
351 {
355 {
352 Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256;
356 Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256;
353 }
357 }
354 }
358 }
355 this->acquireRMAPSemaphore();
359 this->acquireRMAPSemaphore();
356 }
360 }
357
361
358 emit appendToLog(QString("*** STOP *** READ "));
362 emit appendToLog(QString("*** STOP *** READ "));
363 emit sendMessage(QString("*** STOP *** READ "));
359 return count;
364 return count;
360 }
365 }
361
366
362 unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address)
367 unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address)
363 {
368 {
364 RMAP *RMAPCommand;
369 RMAP *RMAPCommand;
365 char * packet;
370 char * packet;
366 char* aux;
371 char* aux;
367 unsigned char offset, headerSize, CRCSize;
372 unsigned char offset, headerSize, CRCSize;
368 unsigned int totalSize;
373 unsigned int totalSize;
369 int errorCode;
374 int errorCode;
370 QString console_message;
375 QString console_message;
371
376
372 if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0)
377 if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0)
373 {
378 {
374 this->Close();
379 this->Close();
375 return 1;
380 return 1;
376 }
381 }
377
382
378 RMAPCommand = new RMAP(this->commandCode,
383 RMAPCommand = new RMAP(this->commandCode,
379 rmapTargetLogicalAddress,
384 rmapTargetLogicalAddress,
380 rmapSourceLogicalAddress,
385 rmapSourceLogicalAddress,
381 address,
386 address,
382 nbBytes,
387 nbBytes,
383 data);
388 data);
384 headerSize = sizeof(RMAPCommand->RMAPHeader);
389 headerSize = sizeof(RMAPCommand->RMAPHeader);
385 CRCSize = 1;
390 CRCSize = 1;
386
391
387 //*************************
392 //*************************
388 // BUILD THE PACKET TO SEND
393 // BUILD THE PACKET TO SEND
389 totalSize = headerSize + nbBytes + CRCSize + PATH_ADDRESSING_OFFSET;
394 totalSize = headerSize + nbBytes + CRCSize + PATH_ADDRESSING_OFFSET;
390 packet = (char*) malloc( totalSize );
395 packet = (char*) malloc( totalSize );
391 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
396 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
392 packet[0] = this->linkNumber_SPINBOX->value();
397 packet[0] = this->linkNumber_SPINBOX->value();
393 for(unsigned int i = 0; i<headerSize; i++) packet[i+PATH_ADDRESSING_OFFSET] = aux[i];
398 for(unsigned int i = 0; i<headerSize; i++) packet[i+PATH_ADDRESSING_OFFSET] = aux[i];
394 offset = headerSize;
399 offset = headerSize;
395 for(unsigned int i = 0; i<nbBytes; i++)
400 for(unsigned int i = 0; i<nbBytes; i++)
396 {
401 {
397 packet[i+offset+PATH_ADDRESSING_OFFSET] = data[i];
402 packet[i+offset+PATH_ADDRESSING_OFFSET] = data[i];
398 }
403 }
399 packet[nbBytes+offset+PATH_ADDRESSING_OFFSET] = RMAPCommand->dataCRC;
404 packet[nbBytes+offset+PATH_ADDRESSING_OFFSET] = RMAPCommand->dataCRC;
400
405
401 //****************
406 //****************
402 // SEND THE PACKET
407 // SEND THE PACKET
403 result = USBSpaceWire_SendPacket(hDevice,
408 result = USBSpaceWire_SendPacket(hDevice,
404 packet,
409 packet,
405 totalSize,
410 totalSize,
406 BWAIT_1, &pIdentifier);
411 BWAIT_1, &pIdentifier);
407 if (result != TRANSFER_SUCCESS)
412 if (result != TRANSFER_SUCCESS)
408 {
413 {
409 emit sendMessage("ERROR *** WriteStarDundee when sending packet of size "
414 emit sendMessage("ERROR *** WriteStarDundee when sending packet of size "
410 + QString::number(totalSize) +", with code: " + QString::number(result));
415 + QString::number(totalSize) +", with code: " + QString::number(result));
411 USBSpaceWire_FreeSend(hDevice, pIdentifier);
416 USBSpaceWire_FreeSend(hDevice, pIdentifier);
412 free(data);
417 free(data);
413 return 1;
418 return 1;
414 }
419 }
415 else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize));
420 // else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize));
416
421
417 //**************
422 //**************
418 // Free the send
423 // Free the send
419 USBSpaceWire_FreeSend(hDevice, pIdentifier);
424 USBSpaceWire_FreeSend(hDevice, pIdentifier);
420 free(packet);
425 free(packet);
421
426
422 if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) |
427 if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) |
423 (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) )
428 (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) )
424 {
429 {
425 // WAIT FOR THE RMAP REPLY PACKET
430 // WAIT FOR THE RMAP REPLY PACKET
426 errorCode = this->receiveSPWPacket(1);
431 errorCode = this->receiveSPWPacket(1);
427 if (errorCode<=0)
432 if (errorCode<=0)
428 {
433 {
429 emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode));
434 emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode));
430 return 0;
435 return 0;
431 }
436 }
432 if(rmapPacketSize != 8)
437 if(rmapPacketSize != 8)
433 {
438 {
434 console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n");
439 console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n");
435 emit appendToLog(console_message);
440 emit appendToLog(console_message);
436 return 0;
441 return 0;
437 }
442 }
438 switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply
443 switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply
439 {
444 {
440 case 0:
445 case 0:
441 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull");
446 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull");
442 break;
447 break;
443 case 1:
448 case 1:
444 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** General error code");
449 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** General error code");
445 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 1 General error code");
450 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 1 General error code");
446 break;
451 break;
447 case 2:
452 case 2:
448 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Unused RMAP packet type or command code");
453 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Unused RMAP packet type or command code");
449 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 2 Unused RMAP packet type or command code");
454 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 2 Unused RMAP packet type or command code");
450 break;
455 break;
451 case 3:
456 case 3:
452 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid key");
457 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid key");
453 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 3 Invalid key");
458 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 3 Invalid key");
454 break;
459 break;
455 case 4:
460 case 4:
456 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid data CRC");
461 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid data CRC");
457 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 4 Invalid data CRC");
462 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 4 Invalid data CRC");
458 break;
463 break;
459 case 5:
464 case 5:
460 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Early EOP");
465 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Early EOP");
461 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 5 Early EOP");
466 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 5 Early EOP");
462 break;
467 break;
463 case 6:
468 case 6:
464 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Too much data");
469 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Too much data");
465 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 6 Too much data");
470 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 6 Too much data");
466 break;
471 break;
467 case 7:
472 case 7:
468 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** EEP");
473 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** EEP");
469 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 7 EEP");
474 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 7 EEP");
470 break;
475 break;
471 case 8:
476 case 8:
472 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Reserved");
477 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Reserved");
473 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 8 Reserved");
478 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 8 Reserved");
474 break;
479 break;
475 case 9:
480 case 9:
476 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Verify buffer overrun");
481 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Verify buffer overrun");
477 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 9 Verify buffer overrun");
482 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 9 Verify buffer overrun");
478 break;
483 break;
479 case 10:
484 case 10:
480 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMAP command not implemented or not authorised");
485 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMAP command not implemented or not authorised");
481 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 10 RMAP command not implemented or not authorised");
486 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 10 RMAP command not implemented or not authorised");
482 break;
487 break;
483 case 11:
488 case 11:
484 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMW data length error");
489 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMW data length error");
485 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 11 RMAP RMW data length error");
490 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 11 RMAP RMW data length error");
486 break;
491 break;
487 case 12:
492 case 12:
488 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid target logical address");
493 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid target logical address");
489 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 12 Invalid target logical address");
494 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 12 Invalid target logical address");
490 break;
495 break;
491 }
496 }
492 this->acquireRMAPSemaphore();
497 this->acquireRMAPSemaphore();
493 }
498 }
494 else
499 else
495 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
500 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
496
501
497 return nbBytes;
502 return nbBytes;
498 }
503 }
499
504
500 unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address)
505 unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address)
501 {
506 {
502 int errorCode;
507 int errorCode;
503 RMAP *RMAPCommand;
508 RMAP *RMAPCommand;
504 char *packet;
509 char *packet;
505 char *aux;
510 char *aux;
506 unsigned int dataLength = 0;
511 unsigned int dataLength = 0;
507 unsigned int totalSize = 0;
512 unsigned int totalSize = 0;
508
513
509 //**********************
514 //**********************
510 // Check the link status
515 // Check the link status
511 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
516 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
512 {
517 {
513 this->Close();
518 this->Close();
514 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
519 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
515 return 0;
520 return 0;
516 }
521 }
517
522
518 //**********************
523 //**********************
519 // SEND THE READ COMMAND
524 // SEND THE READ COMMAND
520 if (nbBytes > 4)
525 if (nbBytes > 4)
521 {
526 {
522 RMAPCommand = new RMAP(read_Inc,
527 RMAPCommand = new RMAP(read_Inc,
523 rmapTargetLogicalAddress,
528 rmapTargetLogicalAddress,
524 rmapSourceLogicalAddress,
529 rmapSourceLogicalAddress,
525 address,
530 address,
526 nbBytes,
531 nbBytes,
527 NULL);
532 NULL);
528 }
533 }
529 else
534 else
530 {
535 {
531 RMAPCommand = new RMAP(read_Single,
536 RMAPCommand = new RMAP(read_Single,
532 rmapTargetLogicalAddress,
537 rmapTargetLogicalAddress,
533 rmapSourceLogicalAddress,
538 rmapSourceLogicalAddress,
534 address,
539 address,
535 nbBytes,
540 nbBytes,
536 NULL);
541 NULL);
537 }
542 }
538
543
539 //*************************
544 //*************************
540 // BUILD THE PACKET TO SEND
545 // BUILD THE PACKET TO SEND
541 totalSize = sizeof(RMAPCommand->RMAPHeader) + PATH_ADDRESSING_OFFSET;
546 totalSize = sizeof(RMAPCommand->RMAPHeader) + PATH_ADDRESSING_OFFSET;
542 packet = (char*) malloc( totalSize );
547 packet = (char*) malloc( totalSize );
543 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
548 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
544 packet[0] = this->linkNumber_SPINBOX->value();
549 packet[0] = this->linkNumber_SPINBOX->value();
545 for (unsigned int i = 0; i<sizeof(RMAPCommand->RMAPHeader); i++)
550 for (unsigned int i = 0; i<sizeof(RMAPCommand->RMAPHeader); i++)
546 packet[i+PATH_ADDRESSING_OFFSET] = aux[i];
551 packet[i+PATH_ADDRESSING_OFFSET] = aux[i];
547
552
548 //****************
553 //****************
549 // SEND THE PACKET
554 // SEND THE PACKET
550 result = USBSpaceWire_SendPacket(hDevice,
555 result = USBSpaceWire_SendPacket(hDevice,
551 packet,
556 packet,
552 totalSize,
557 totalSize,
553 BWAIT_1, &pIdentifier);
558 BWAIT_1, &pIdentifier);
554 if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command ");
559 if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command ");
555 else
560 else
556 {
561 {
557 emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command");
562 // emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command");
558 emit appendToLog("packet sent, B0 = " + QString::number(packet[0], 16)
563 // emit appendToLog("packet sent, B0 = " + QString::number(packet[0], 16)
559 + " *** B1 = " + QString::number(packet[1], 16)
564 // + " *** B1 = " + QString::number(packet[1], 16)
560 + " *** B2 = " + QString::number(packet[2], 16)
565 // + " *** B2 = " + QString::number(packet[2], 16)
561 + " *** B3 = " + QString::number(packet[3], 16)
566 // + " *** B3 = " + QString::number(packet[3], 16)
562 + " *** B4 = " + QString::number(packet[4], 16)
567 // + " *** B4 = " + QString::number(packet[4], 16)
563 + " *** B5 = " + QString::number(packet[5], 16)
568 // + " *** B5 = " + QString::number(packet[5], 16)
564 );
569 // );
565 }
570 }
566
571
567 //**************
572 //**************
568 // Free the send
573 // Free the send
569 USBSpaceWire_FreeSend(hDevice, pIdentifier);
574 USBSpaceWire_FreeSend(hDevice, pIdentifier);
570 free(packet);
575 free(packet);
571
576
572 //*********************************
577 //*********************************
573 // RECEIVE THE INCOMING RMAP PACKET
578 // RECEIVE THE INCOMING RMAP PACKET
574 errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet
579 errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet
575 if (errorCode<=0)
580 if (errorCode<=0)
576 {
581 {
577 emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode));
582 emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode));
578 return 0;
583 return 0;
579 }
584 }
580 dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH;
585 dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH;
581 if(dataLength != nbBytes)
586 if(dataLength != nbBytes)
582 {
587 {
583 emit appendToLog("WARNING === in function READ of StarDundee *** number of data received ("
588 emit appendToLog("WARNING === in function READ of StarDundee *** number of data received ("
584 +QString::number(dataLength)
589 +QString::number(dataLength)
585 +") not equal to number of data requested ("
590 +") not equal to number of data requested ("
586 +QString::number(nbBytes)
591 +QString::number(nbBytes)
587 +")");
592 +")");
588 return 0;
593 return 0;
589 }
594 }
590 return dataLength;
595 return dataLength;
591 }
596 }
592
597
593 unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication)
598 unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication)
594 {
599 {
595 char protocoleIdentifier = 0x02;
600 char protocoleIdentifier = 0x02;
596 char reserved = 0x00;
601 char reserved = 0x00;
597 char *SPWData;
602 char *SPWData;
598 unsigned int totalSize;
603 unsigned int totalSize;
599
604
600 if (count>248)
605 if (count>248)
601 {
606 {
602 emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n");
607 emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n");
603 return 1;
608 return 1;
604 }
609 }
605
610
606 emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)");
611 emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)");
607
612
608 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
613 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
609 {
614 {
610 this->Close();
615 this->Close();
611 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
616 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
612 return 1;
617 return 1;
613 }
618 }
614
619
615 totalSize = count + 4 + PATH_ADDRESSING_OFFSET; // The StarDundee brick is in PATH addressing
620 totalSize = count + 4 + PATH_ADDRESSING_OFFSET; // The StarDundee brick is in PATH addressing
616 SPWData = (char*) malloc(totalSize);
621 SPWData = (char*) malloc(totalSize);
617 // SPW HEADER
622 // SPW HEADER
618 SPWData[0] = this->linkNumber_SPINBOX->value(); // 1 by default, value can be 1 or 2
623 SPWData[0] = this->linkNumber_SPINBOX->value(); // 1 by default, value can be 1 or 2
619 SPWData[0+PATH_ADDRESSING_OFFSET] = targetLogicalAddress;
624 SPWData[0+PATH_ADDRESSING_OFFSET] = targetLogicalAddress;
620 SPWData[1+PATH_ADDRESSING_OFFSET] = protocoleIdentifier;
625 SPWData[1+PATH_ADDRESSING_OFFSET] = protocoleIdentifier;
621 SPWData[2+PATH_ADDRESSING_OFFSET] = reserved;
626 SPWData[2+PATH_ADDRESSING_OFFSET] = reserved;
622 SPWData[3+PATH_ADDRESSING_OFFSET] = userApplication;
627 SPWData[3+PATH_ADDRESSING_OFFSET] = userApplication;
623 // CCSDS PACKET
628 // CCSDS PACKET
624 for (unsigned int i = 0; i<count; i++)
629 for (unsigned int i = 0; i<count; i++)
625 {
630 {
626 SPWData[i+4+PATH_ADDRESSING_OFFSET] = Value[i];
631 SPWData[i+4+PATH_ADDRESSING_OFFSET] = Value[i];
627 }
632 }
628
633
629 //****************
634 //****************
630 // SEND THE PACKET
635 // SEND THE PACKET
631 result = USBSpaceWire_SendPacket(hDevice,
636 result = USBSpaceWire_SendPacket(hDevice,
632 SPWData,
637 SPWData,
633 totalSize,
638 totalSize,
634 BWAIT_1, &pIdentifier);
639 BWAIT_1, &pIdentifier);
635 if (result != TRANSFER_SUCCESS)
640 if (result != TRANSFER_SUCCESS)
636 {
641 {
637 emit sendMessage("ERROR *** WriteSPW when sending packet of size "
642 emit sendMessage("ERROR *** WriteSPW when sending packet of size "
638 + QString::number(totalSize) +", with code: " + QString::number(result));
643 + QString::number(totalSize) +", with code: " + QString::number(result));
639 USBSpaceWire_FreeSend(hDevice, pIdentifier);
644 USBSpaceWire_FreeSend(hDevice, pIdentifier);
640 free(SPWData);
645 free(SPWData);
641 return 0;
646 return 0;
642 }
647 }
643 else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize-1));
648 else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize-1));
644 emit appendToLog("packet sent, B0 = " + QString::number(SPWData[0])
649 emit appendToLog("packet sent, B0 = " + QString::number(SPWData[0])
645 + " *** B1 = " + QString::number(SPWData[1])
650 + " *** B1 = " + QString::number(SPWData[1])
646 + " *** B2 = " + QString::number(SPWData[2])
651 + " *** B2 = " + QString::number(SPWData[2])
647 + " *** B3 = " + QString::number(SPWData[3])
652 + " *** B3 = " + QString::number(SPWData[3])
648 + " *** B4 = " + QString::number(SPWData[4])
653 + " *** B4 = " + QString::number(SPWData[4])
649 + " *** B5 = " + QString::number(SPWData[5])
654 + " *** B5 = " + QString::number(SPWData[5])
650 + " *** B6 = " + QString::number(SPWData[6])
655 + " *** B6 = " + QString::number(SPWData[6])
651 + " *** B7 = " + QString::number(SPWData[7])
656 + " *** B7 = " + QString::number(SPWData[7])
652 + " *** B8 = " + QString::number(SPWData[8])
657 + " *** B8 = " + QString::number(SPWData[8])
653 + " *** B9 = " + QString::number(SPWData[9])
658 + " *** B9 = " + QString::number(SPWData[9])
654 + " *** B10 = " + QString::number(SPWData[10])
659 + " *** B10 = " + QString::number(SPWData[10])
655 + " *** B11 = " + QString::number(SPWData[11])
660 + " *** B11 = " + QString::number(SPWData[11])
656 + " *** B12 = " + QString::number(SPWData[12])
661 + " *** B12 = " + QString::number(SPWData[12])
657 );
662 );
658
663
659 //**************
664 //**************
660 // Free the send
665 // Free the send
661 USBSpaceWire_FreeSend(hDevice, pIdentifier);
666 USBSpaceWire_FreeSend(hDevice, pIdentifier);
662 free(SPWData);
667 free(SPWData);
663
668
664 emit appendToLog(QString("*** CCSDS packet sent"));
669 emit appendToLog(QString("*** CCSDS packet sent"));
665
670
666 return 1;
671 return 1;
667 }
672 }
668
673
669 unsigned int StarDundee::getLinkStatus(unsigned char link)
674 unsigned int StarDundee::getLinkStatus(unsigned char link)
670 {
675 {
671 U32 statusControl, errorStatus, portType;
676 U32 statusControl, errorStatus, portType;
672 U32 linkStatus, operatingSpeed, outputPortConnection;
677 U32 linkStatus, operatingSpeed, outputPortConnection;
673 char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate;
678 char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate;
674
679
675 // Read the link status control register
680 // Read the link status control register
676 if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS)
681 if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS)
677 {
682 {
678 emit appendToLog("Could not read link status control for link" + QString::number(link));
683 emit appendToLog("Could not read link status control for link" + QString::number(link));
679 }
684 }
680 else
685 else
681 {
686 {
682 // Display the link status control register properties
687 // Display the link status control register properties
683 CFGSpaceWire_LSPortType(statusControl, &portType);
688 CFGSpaceWire_LSPortType(statusControl, &portType);
684 if (portType == CFG_CONFIGURATION_PORT)
689 if (portType == CFG_CONFIGURATION_PORT)
685 {
690 {
686 CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus);
691 CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus);
687 //emit appendToLog("Configuration port error status = " + QString::number(errorStatus));
692 //emit appendToLog("Configuration port error status = " + QString::number(errorStatus));
688 }
693 }
689 else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT)
694 else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT)
690 {
695 {
691 CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus);
696 CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus);
692 //emit appendToLog("External port error status = " + QString::number(errorStatus));
697 //emit appendToLog("External port error status = " + QString::number(errorStatus));
693 }
698 }
694 else
699 else
695 {
700 {
696 CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus);
701 CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus);
697 //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus));
702 //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus));
698 }
703 }
699 CFGSpaceWire_LSLinkState(statusControl, &linkStatus);
704 CFGSpaceWire_LSLinkState(statusControl, &linkStatus);
700 CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning);
705 CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning);
701 CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart);
706 CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart);
702 CFGSpaceWire_LSIsStart(statusControl, &isStart);
707 CFGSpaceWire_LSIsStart(statusControl, &isStart);
703 CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled);
708 CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled);
704 CFGSpaceWire_LSIsTristate(statusControl, &isTristate);
709 CFGSpaceWire_LSIsTristate(statusControl, &isTristate);
705 CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed);
710 CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed);
706 CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection);
711 CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection);
707 //emit appendToLog("The link state is = " + QString::number(linkStatus));
712 //emit appendToLog("The link state is = " + QString::number(linkStatus));
708 //emit appendToLog("The link is running = " + QString::number(isLinkRunning));
713 //emit appendToLog("The link is running = " + QString::number(isLinkRunning));
709 //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart));
714 //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart));
710 //emit appendToLog("The start bit is enabled = " + QString::number(isStart));
715 //emit appendToLog("The start bit is enabled = " + QString::number(isStart));
711 //emit appendToLog("The link is disabled = " + QString::number(isDisabled));
716 //emit appendToLog("The link is disabled = " + QString::number(isDisabled));
712 //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart));
717 //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart));
713 //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed));
718 //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed));
714 //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection));
719 //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection));
715 }
720 }
716 if (linkStatus == 5) return 1;
721 if (linkStatus == 5) return 1;
717 else return 0;
722 else return 0;
718 }
723 }
719
724
720 void StarDundee::receivePollingLoop()
725 void StarDundee::receivePollingLoop()
721 {
726 {
722 timer->blockSignals(true);
727 timer->blockSignals(true);
723 if (USBSpaceWire_WaitOnReadPacketAvailable(hDevice, 0)) receiveSPWPacketLoop(0);
728 if (USBSpaceWire_WaitOnReadPacketAvailable(hDevice, 0)) receiveSPWPacketLoop(0);
724 timer->blockSignals(false);
729 timer->blockSignals(false);
725 }
730 }
726
731
727 int StarDundee::receiveSPWPacketLoop(unsigned char requestID)
732 int StarDundee::receiveSPWPacketLoop(unsigned char requestID)
728 {
733 {
729 int result = 0;
734 int result = 0;
730 emit appendToLog("Number of packets dropped by the driver: " +
735 emit appendToLog("Number of packets dropped by the driver: " +
731 QString::number(USBSpaceWire_GetDriverDroppedPackets(hDevice)));
736 QString::number(USBSpaceWire_GetDriverDroppedPackets(hDevice)));
732
737
733 while (USBSpaceWire_WaitOnReadPacketAvailable(hDevice, 0))
738 while (USBSpaceWire_WaitOnReadPacketAvailable(hDevice, 0))
734 {
739 {
735 result = receiveSPWPacket(requestID);
740 result = receiveSPWPacket(requestID);
736 }
741 }
737
742
738 return result;
743 return result;
739 }
744 }
740
745
741 int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT
746 int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT
742 {
747 {
743 unsigned int packetLength;
748 unsigned int packetLength;
744 unsigned int nbBytes;
749 unsigned int nbBytes;
745 unsigned nPacketNum;
750 unsigned nPacketNum;
746 USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read
751 USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read
747
752
748 if (requestID==1)
753 if (requestID==1)
749 {
754 {
750 if (rmapPacketSEMAPHORE->available())
755 if (rmapPacketSEMAPHORE->available())
751 {
756 {
752 return rmapPacketSize;
757 return rmapPacketSize;
753 }
758 }
754 }
759 }
755
760
756 //********************
761 //********************
757 // TRY TO RECEIVE DATA
762 // TRY TO RECEIVE DATA
758 nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive
763 nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive
759 nPacketNum = 1;
764 nPacketNum = 1;
760 result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifierRead);
765 result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifierRead);
761 if (result != TRANSFER_SUCCESS)
766 if (result != TRANSFER_SUCCESS)
762 {
767 {
763 emit sendMessage("Error: Could not receive the packet");
768 emit sendMessage("Error: Could not receive the packet");
764 USBSpaceWire_FreeRead(hDevice, pIdentifierRead); // Free the read buffer
769 USBSpaceWire_FreeRead(hDevice, pIdentifierRead); // Free the read buffer
765 return 0;
770 return 0;
766 }
771 }
767 else
772 else
768 {
773 {
769 packetLength = properties.len;
774 packetLength = properties.len;
770 if (properties.eop == SPACEWIRE_USB_NO_EOP)
775 if (properties.eop == SPACEWIRE_USB_NO_EOP)
771 {
776 {
772 emit appendToLog("No end of packet marker received");
777 emit appendToLog("No end of packet marker received");
773 }
778 }
774 else if (properties.eop == SPACEWIRE_USB_EOP)
779 // else if (properties.eop == SPACEWIRE_USB_EOP)
775 {
780 // {
776 emit appendToLog("Normal end of packet marker received");
781 // emit appendToLog("Normal end of packet marker received");
777 }
782 // }
778 else if (properties.eop == SPACEWIRE_USB_EEP)
783 else if (properties.eop == SPACEWIRE_USB_EEP)
779 {
784 {
780 emit appendToLog("Error end of packet marker received");
785 emit appendToLog("Error end of packet marker received");
781 }
786 }
782
787
783 USBSpaceWire_FreeRead(hDevice, pIdentifierRead); // Free the read buffer
788 USBSpaceWire_FreeRead(hDevice, pIdentifierRead); // Free the read buffer
784 }
789 }
785
790
786 switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet
791 switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet
787 {
792 {
788 case 1: // 0x01 is the protocole identifier for RMAP packets
793 case 1: // 0x01 is the protocole identifier for RMAP packets
789 if (rmapPacketSEMAPHORE->available()!=0) return -3; // ERROR === previous RMAP packet not processed yet
794 if (rmapPacketSEMAPHORE->available()!=0) return -3; // ERROR === previous RMAP packet not processed yet
790 for(unsigned int i=0; i<packetLength; i++) rmapPacket[i] = spwPacket[i];
795 for(unsigned int i=0; i<packetLength; i++) rmapPacket[i] = spwPacket[i];
791 rmapPacketSize = packetLength;
796 rmapPacketSize = packetLength;
792 rmapPacketSEMAPHORE->release();
797 rmapPacketSEMAPHORE->release();
793 emit appendToLog("RMAP packet of size " + QString::number(packetLength) + " received");
798 // emit appendToLog("RMAP packet of size " + QString::number(packetLength) + " received");
794 emit appendToLog("packet received, B0 = " + QString::number(spwPacket[0], 16)
799 // emit appendToLog("packet received, B0 = " + QString::number(spwPacket[0], 16)
795 + " *** B1 = " + QString::number(spwPacket[1], 16)
800 // + " *** B1 = " + QString::number(spwPacket[1], 16)
796 + " *** B2 = " + QString::number(spwPacket[2], 16)
801 // + " *** B2 = " + QString::number(spwPacket[2], 16)
797 + " *** B3 = " + QString::number(spwPacket[3], 16)
802 // + " *** B3 = " + QString::number(spwPacket[3], 16)
798 + " *** B4 = " + QString::number(spwPacket[4], 16)
803 // + " *** B4 = " + QString::number(spwPacket[4], 16)
799 + " *** B5 = " + QString::number(spwPacket[5], 16)
804 // + " *** B5 = " + QString::number(spwPacket[5], 16)
800 );
805 // );
801 return packetLength;
806 return packetLength;
802
807
803 case 2: // 0x02 is the protocole identifier for CCSDS packets
808 case 2: // 0x02 is the protocole identifier for CCSDS packets
804 if (ccsdsPacketSEMAPHORE->available()!=0)
809 if (ccsdsPacketSEMAPHORE->available()!=0)
805 {
810 {
806 emit sendMessage("in function [receiveSPWPacket] === ERROR === previous CCSDS packet not processed yet");
811 emit sendMessage("in function [receiveSPWPacket] === ERROR === previous CCSDS packet not processed yet");
807 return -4; // ERROR === previous CCSDS packet not processed yet
812 return -4; // ERROR === previous CCSDS packet not processed yet
808 }
813 }
809 for(unsigned int i=0; i<packetLength; i++) ccsdsPacket[i] = spwPacket[i];
814 for(unsigned int i=0; i<packetLength; i++) ccsdsPacket[i] = spwPacket[i];
810 ccsdsPacketSize = packetLength;
815 ccsdsPacketSize = packetLength;
811 emit appendToLog("CCSDS packet of size " + QString::number(packetLength) + " received");
816 emit appendToLog("CCSDS packet of size " + QString::number(packetLength) + " received");
812 emit appendToLog("packet received, byte0 " + QString::number(spwPacket[0], 16)
817 emit appendToLog("packet received, byte0 " + QString::number(spwPacket[0], 16)
813 + " *** byte1 " + QString::number(spwPacket[1], 16)
818 + " *** byte1 " + QString::number(spwPacket[1], 16)
814 + " *** byte2 " + QString::number(spwPacket[2], 16)
819 + " *** byte2 " + QString::number(spwPacket[2], 16)
815 + " *** byte3 " + QString::number(spwPacket[3], 16));
820 + " *** byte3 " + QString::number(spwPacket[3], 16));
816 storeCCSDSPacket(ccsdsPacket, packetLength);
821 storeCCSDSPacket(ccsdsPacket, packetLength);
817 return packetLength;
822 return packetLength;
818 default:
823 default:
819 emit appendToLog("packet received, byte0 " + QString::number(spwPacket[0], 16)
824 emit appendToLog("packet received, byte0 " + QString::number(spwPacket[0], 16)
820 + " *** byte1 " + QString::number(spwPacket[1], 16)
825 + " *** byte1 " + QString::number(spwPacket[1], 16)
821 + " *** byte2 " + QString::number(spwPacket[2], 16)
826 + " *** byte2 " + QString::number(spwPacket[2], 16)
822 + " *** byte3 " + QString::number(spwPacket[3], 16));
827 + " *** byte3 " + QString::number(spwPacket[3], 16));
823 return 0;
828 return 0;
824 }
829 }
825 return 0;
830 return 0;
826 }
831 }
827
832
828 unsigned int StarDundee::storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size)
833 unsigned int StarDundee::storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size)
829 {
834 {
830 TMPacketToRead *generalPacket;
835 TMPacketToRead *generalPacket;
831
836
832 generalPacket = new TMPacketToRead(ccsdsPacket, size);
837 generalPacket = new TMPacketToRead(ccsdsPacket, size);
833 emit sendPacket(generalPacket);
838 emit sendPacket(generalPacket);
834
839
835 return 1;
840 return 1;
836 }
841 }
837
842
838 void StarDundee::reTestSPWLink() // SLOT
843 void StarDundee::reTestSPWLink() // SLOT
839 {
844 {
840 if (getLinkStatus(linkNumber_SPINBOX->value()))
845 if (getLinkStatus(linkNumber_SPINBOX->value()))
841 {
846 {
842 emit isOpen(true);
847 emit isOpen(true);
843 starDundeeStatusQueryDialog->accept();
848 starDundeeStatusQueryDialog->accept();
844 }
849 }
845 }
850 }
@@ -1,903 +1,903
1 #include "tmstatistics.h"
1 #include "tmstatistics.h"
2 #include <QtGui>
2 #include <QtGui>
3 #include <QFontInfo>
3 #include <QFontInfo>
4 #include <stdio.h>
4 #include <stdio.h>
5
5
6 TMStatistics::TMStatistics(QWidget *parent) :
6 TMStatistics::TMStatistics(QWidget *parent) :
7 QWidget(parent)
7 QWidget(parent)
8 {
8 {
9 // Create Fonts
9 // Create Fonts
10 QFont font;
10 QFont font;
11 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
11 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
12
12
13 label_UNKNOWN = new QLabel("UNKNOWN");
13 label_UNKNOWN = new QLabel("UNKNOWN");
14 label_UNKNOWN_nb = new QLabel("-");
14 label_UNKNOWN_nb = new QLabel("-");
15
15
16 mainLayout = new QGridLayout();
16 mainLayout = new QGridLayout();
17 layout_stat = new QGridLayout(); // TM stastictics
17 layout_stat = new QGridLayout(); // TM stastictics
18 layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_
18 layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_
19 layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_
19 layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_
20 layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_
20 layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_
21 layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_
21 layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_
22 layout_last = new QGridLayout(); // last TM description
22 layout_last = new QGridLayout(); // last TM description
23 layout_record = new QVBoxLayout();
23 layout_record = new QVBoxLayout();
24
24
25 //***************
25 //***************
26 // TM_LFR_TC_EXE_
26 // TM_LFR_TC_EXE_
27 label_SUCC = new QLabel("SUCCESS");
27 label_SUCC = new QLabel("SUCCESS");
28 label_INCO = new QLabel("INCONSISTENT");
28 label_INCO = new QLabel("INCONSISTENT");
29 label_NOTE = new QLabel("NOT_EXECUTABLE");
29 label_NOTE = new QLabel("NOT_EXECUTABLE");
30 label_NOTI = new QLabel("NOT_IMPLEMENTED");
30 label_NOTI = new QLabel("NOT_IMPLEMENTED");
31 label_ERRO = new QLabel("ERROR");
31 label_ERRO = new QLabel("ERROR");
32 label_CORR = new QLabel("CORRUPTED");
32 label_CORR = new QLabel("CORRUPTED");
33 label_HK = new QLabel("TM_LFR_HK");
33 label_HK = new QLabel("TM_LFR_HK");
34 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
34 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
35 //
35 //
36 label_SUCC_nb = new QLabel("-");
36 label_SUCC_nb = new QLabel("-");
37 label_INCO_nb = new QLabel("-");
37 label_INCO_nb = new QLabel("-");
38 label_NOTE_nb = new QLabel("-");
38 label_NOTE_nb = new QLabel("-");
39 label_NOTI_nb = new QLabel("-");
39 label_NOTI_nb = new QLabel("-");
40 label_ERRO_nb = new QLabel("-");
40 label_ERRO_nb = new QLabel("-");
41 label_CORR_nb = new QLabel("-");
41 label_CORR_nb = new QLabel("-");
42 label_HK_nb = new QLabel("-");
42 label_HK_nb = new QLabel("-");
43 label_DUMP_nb = new QLabel("-");
43 label_DUMP_nb = new QLabel("-");
44
44
45 //***********************
45 //***********************
46 // TM_LFR_SCIENCE_NORMAL_
46 // TM_LFR_SCIENCE_NORMAL_
47 label_NORM_SWF_F0 = new QLabel("SWF_F0");
47 label_NORM_SWF_F0 = new QLabel("SWF_F0");
48 label_NORM_SWF_F1 = new QLabel("SWF_F1");
48 label_NORM_SWF_F1 = new QLabel("SWF_F1");
49 label_NORM_SWF_F2 = new QLabel("SWF_F2");
49 label_NORM_SWF_F2 = new QLabel("SWF_F2");
50 label_NORM_CWF_F3 = new QLabel("CWF_F3");
50 label_NORM_CWF_F3 = new QLabel("CWF_F3");
51 label_NORM_ASM_F0 = new QLabel("ASM_F0");
51 label_NORM_ASM_F0 = new QLabel("ASM_F0");
52 label_NORM_ASM_F1 = new QLabel("ASM_F1");
52 label_NORM_ASM_F1 = new QLabel("ASM_F1");
53 label_NORM_ASM_F2 = new QLabel("ASM_F2");
53 label_NORM_ASM_F2 = new QLabel("ASM_F2");
54 label_NORM_BP1_F0 = new QLabel("BP1_F0");
54 label_NORM_BP1_F0 = new QLabel("BP1_F0");
55 label_NORM_BP1_F1 = new QLabel("BP1_F1");
55 label_NORM_BP1_F1 = new QLabel("BP1_F1");
56 label_NORM_BP1_F2 = new QLabel("BP1_F2");
56 label_NORM_BP1_F2 = new QLabel("BP1_F2");
57 label_NORM_BP2_F0 = new QLabel("BP2_F0");
57 label_NORM_BP2_F0 = new QLabel("BP2_F0");
58 label_NORM_BP2_F1 = new QLabel("BP2_F1");
58 label_NORM_BP2_F1 = new QLabel("BP2_F1");
59 label_NORM_BP2_F2 = new QLabel("BP2_F2");
59 label_NORM_BP2_F2 = new QLabel("BP2_F2");
60 //
60 //
61 label_NORM_SWF_F0_nb = new QLabel("-");
61 label_NORM_SWF_F0_nb = new QLabel("-");
62 label_NORM_SWF_F1_nb = new QLabel("-");
62 label_NORM_SWF_F1_nb = new QLabel("-");
63 label_NORM_SWF_F2_nb = new QLabel("-");
63 label_NORM_SWF_F2_nb = new QLabel("-");
64 label_NORM_CWF_F3_nb = new QLabel("-");
64 label_NORM_CWF_F3_nb = new QLabel("-");
65 label_NORM_ASM_F0_nb = new QLabel("-");
65 label_NORM_ASM_F0_nb = new QLabel("-");
66 label_NORM_ASM_F1_nb = new QLabel("-");
66 label_NORM_ASM_F1_nb = new QLabel("-");
67 label_NORM_ASM_F2_nb = new QLabel("-");
67 label_NORM_ASM_F2_nb = new QLabel("-");
68 label_NORM_BP1_F0_nb = new QLabel("-");
68 label_NORM_BP1_F0_nb = new QLabel("-");
69 label_NORM_BP1_F1_nb = new QLabel("-");
69 label_NORM_BP1_F1_nb = new QLabel("-");
70 label_NORM_BP1_F2_nb = new QLabel("-");
70 label_NORM_BP1_F2_nb = new QLabel("-");
71 label_NORM_BP2_F0_nb = new QLabel("-");
71 label_NORM_BP2_F0_nb = new QLabel("-");
72 label_NORM_BP2_F1_nb = new QLabel("-");
72 label_NORM_BP2_F1_nb = new QLabel("-");
73 label_NORM_BP2_F2_nb = new QLabel("-");
73 label_NORM_BP2_F2_nb = new QLabel("-");
74
74
75 //**********************
75 //**********************
76 // TM_LFR_SCIENCE_BURST_
76 // TM_LFR_SCIENCE_BURST_
77 label_BURST_CWF_F2 = new QLabel("CWF_F2");
77 label_BURST_CWF_F2 = new QLabel("CWF_F2");
78 label_BURST_BP1_F0 = new QLabel("BP1_F0");
78 label_BURST_BP1_F0 = new QLabel("BP1_F0");
79 label_BURST_BP2_F0 = new QLabel("BP2_F0");
79 label_BURST_BP2_F0 = new QLabel("BP2_F0");
80 label_BURST_BP1_F1 = new QLabel("BP1_F1");
80 label_BURST_BP1_F1 = new QLabel("BP1_F1");
81 label_BURST_BP2_F1 = new QLabel("BP2_F1");
81 label_BURST_BP2_F1 = new QLabel("BP2_F1");
82 //
82 //
83 label_BURST_CWF_F2_nb = new QLabel("-");
83 label_BURST_CWF_F2_nb = new QLabel("-");
84 label_BURST_BP1_F0_nb = new QLabel("-");
84 label_BURST_BP1_F0_nb = new QLabel("-");
85 label_BURST_BP2_F0_nb = new QLabel("-");
85 label_BURST_BP2_F0_nb = new QLabel("-");
86 label_BURST_BP1_F1_nb = new QLabel("-");
86 label_BURST_BP1_F1_nb = new QLabel("-");
87 label_BURST_BP2_F1_nb = new QLabel("-");
87 label_BURST_BP2_F1_nb = new QLabel("-");
88
88
89 //*********************
89 //*********************
90 // TM_LFR_SCIENCE_SBM1_
90 // TM_LFR_SCIENCE_SBM1_
91 label_SBM1_CWF_F1 = new QLabel("CWF_F1");
91 label_SBM1_CWF_F1 = new QLabel("CWF_F1");
92 label_SBM1_BP1_F0 = new QLabel("BP1_F0");
92 label_SBM1_BP1_F0 = new QLabel("BP1_F0");
93 label_SBM1_BP2_F0 = new QLabel("BP2_F0");
93 label_SBM1_BP2_F0 = new QLabel("BP2_F0");
94 //
94 //
95 label_SBM1_CWF_F1_nb = new QLabel("-");
95 label_SBM1_CWF_F1_nb = new QLabel("-");
96 label_SBM1_BP1_F0_nb = new QLabel("-");
96 label_SBM1_BP1_F0_nb = new QLabel("-");
97 label_SBM1_BP2_F0_nb = new QLabel("-");
97 label_SBM1_BP2_F0_nb = new QLabel("-");
98
98
99 //*********************
99 //*********************
100 // TM_LFR_SCIENCE_SBM2_
100 // TM_LFR_SCIENCE_SBM2_
101 label_SBM2_CWF_F2 = new QLabel("CWF_F2");
101 label_SBM2_CWF_F2 = new QLabel("CWF_F2");
102 label_SBM2_BP1_F0 = new QLabel("BP1_F0");
102 label_SBM2_BP1_F0 = new QLabel("BP1_F0");
103 label_SBM2_BP2_F0 = new QLabel("BP2_F0");
103 label_SBM2_BP2_F0 = new QLabel("BP2_F0");
104 label_SBM2_BP1_F1 = new QLabel("BP1_F1");
104 label_SBM2_BP1_F1 = new QLabel("BP1_F1");
105 label_SBM2_BP2_F1 = new QLabel("BP2_F1");
105 label_SBM2_BP2_F1 = new QLabel("BP2_F1");
106 //
106 //
107 label_SBM2_CWF_F2_nb = new QLabel("-");
107 label_SBM2_CWF_F2_nb = new QLabel("-");
108 label_SBM2_BP1_F0_nb = new QLabel("-");
108 label_SBM2_BP1_F0_nb = new QLabel("-");
109 label_SBM2_BP2_F0_nb = new QLabel("-");
109 label_SBM2_BP2_F0_nb = new QLabel("-");
110 label_SBM2_BP1_F1_nb = new QLabel("-");
110 label_SBM2_BP1_F1_nb = new QLabel("-");
111 label_SBM2_BP2_F1_nb = new QLabel("-");
111 label_SBM2_BP2_F1_nb = new QLabel("-");
112
112
113 //********
113 //********
114 // LAST TM
114 // LAST TM
115 label_PID = new QLabel("PID");
115 label_PID = new QLabel("PID");
116 label_CAT = new QLabel("CAT");
116 label_CAT = new QLabel("CAT");
117 label_TYP = new QLabel("Type");
117 label_TYP = new QLabel("Type");
118 label_SUB = new QLabel("Subtype");
118 label_SUB = new QLabel("Subtype");
119 label_SID = new QLabel("SID");
119 label_SID = new QLabel("SID");
120 label_SIZ = new QLabel("Length");
120 label_SIZ = new QLabel("Length");
121 label_coarse_time = new QLabel("Coarse time: ");
121 label_coarse_time = new QLabel("Coarse time: ");
122 label_fine_time = new QLabel("Fine time: ");
122 label_fine_time = new QLabel("Fine time: ");
123 //
123 //
124 label_PID_is = new QLabel("-");
124 label_PID_is = new QLabel("-");
125 label_CAT_is = new QLabel("-");
125 label_CAT_is = new QLabel("-");
126 label_TYP_is = new QLabel("-");
126 label_TYP_is = new QLabel("-");
127 label_SUB_is = new QLabel("-");
127 label_SUB_is = new QLabel("-");
128 label_SID_is = new QLabel("-");
128 label_SID_is = new QLabel("-");
129 label_SIZ_is = new QLabel("-");
129 label_SIZ_is = new QLabel("-");
130 label_coarse_time_val = new QLabel("-");
130 label_coarse_time_val = new QLabel("-");
131 label_fine_time_val = new QLabel("-");
131 label_fine_time_val = new QLabel("-");
132
132
133 // QPushButton
133 // QPushButton
134 button_reset_stat = new QPushButton("reset stat");
134 button_reset_stat = new QPushButton("reset stat");
135 button_chooseDir = new QPushButton("choose dir");
135 button_chooseDir = new QPushButton("choose dir");
136
136
137 //QCheckBox
137 //QCheckBox
138 checkbox_record = new QCheckBox("Record packets");
138 checkbox_record = new QCheckBox("Record packets");
139 checkbox_packetLog = new QCheckBox("Log packets");
139 checkbox_packetLog = new QCheckBox("Log packets");
140 label_currentDir = new QLabel("Current Dir: -");
140 label_currentDir = new QLabel("Current Dir: -");
141
141
142 //**********
142 //**********
143 // QGroupBox
143 // QGroupBox
144 this->setStyleSheet("QGroupBox {border: 1px solid black; }");
144 this->setStyleSheet("QGroupBox {border: 1px solid black; }");
145
145
146 groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_");
146 groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_");
147 groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_");
147 groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_");
148 groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_");
148 groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_");
149 groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_");
149 groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_");
150 groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_");
150 groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_");
151 groupbox_last = new QGroupBox("Last TM received");
151 groupbox_last = new QGroupBox("Last TM received");
152 groupbox_record = new QGroupBox("Packet recording");
152 groupbox_record = new QGroupBox("Packet recording");
153
153
154 readSettings();
154 readSettings();
155 logFile = new QFile();
155 logFile = new QFile();
156 packetLogFile = new QFile();
156 packetLogFile = new QFile();
157 logFileEn = false;
157 logFileEn = false;
158 packetLogFileEn = false;
158 packetLogFileEn = false;
159
159
160 initConstants();
160 initConstants();
161
161
162 buildMonitor_NORM();
162 buildMonitor_NORM();
163 buildMonitor_BURST();
163 buildMonitor_BURST();
164 buildMonitor_SBM1();
164 buildMonitor_SBM1();
165 buildMonitor_SBM2();
165 buildMonitor_SBM2();
166 buildMonitor();
166 buildMonitor();
167
167
168 groupbox_stat->setFont(font);
168 groupbox_stat->setFont(font);
169 groupbox_NORM->setFont(font);
169 groupbox_NORM->setFont(font);
170 groupbox_BURST->setFont(font);
170 groupbox_BURST->setFont(font);
171 groupbox_SBM1->setFont(font);
171 groupbox_SBM1->setFont(font);
172 groupbox_SBM2->setFont(font);
172 groupbox_SBM2->setFont(font);
173 groupbox_last->setFont(font);
173 groupbox_last->setFont(font);
174 groupbox_record->setFont(font);
174 groupbox_record->setFont(font);
175
175
176 connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics()));
176 connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics()));
177 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
177 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
178
178
179 connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int)));
179 connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int)));
180 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int)));
180 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int)));
181 }
181 }
182
182
183 void TMStatistics::initConstants()
183 void TMStatistics::initConstants()
184 {
184 {
185 UNKNOWN_nb = 0;
185 UNKNOWN_nb = 0;
186
186
187 // TM_LFR_TC_EXE_
187 // TM_LFR_TC_EXE_
188 SUCC_nb = 0;
188 SUCC_nb = 0;
189 INCO_nb = 0;
189 INCO_nb = 0;
190 NOTE_nb = 0;
190 NOTE_nb = 0;
191 NOTI_nb = 0;
191 NOTI_nb = 0;
192 ERRO_nb = 0;
192 ERRO_nb = 0;
193 CORR_nb = 0;
193 CORR_nb = 0;
194 HK_nb = 0;
194 HK_nb = 0;
195 DUMP_nb = 0;
195 DUMP_nb = 0;
196
196
197 // TM_LFR_SCIENCE_NORMAL_
197 // TM_LFR_SCIENCE_NORMAL_
198 NORM_SWF_F0_nb = 0;
198 NORM_SWF_F0_nb = 0;
199 NORM_SWF_F1_nb = 0;
199 NORM_SWF_F1_nb = 0;
200 NORM_SWF_F2_nb = 0;
200 NORM_SWF_F2_nb = 0;
201 NORM_CWF_F3_nb = 0;
201 NORM_CWF_F3_nb = 0;
202 NORM_ASM_F0_nb = 0;
202 NORM_ASM_F0_nb = 0;
203 NORM_ASM_F1_nb = 0;
203 NORM_ASM_F1_nb = 0;
204 NORM_ASM_F2_nb = 0;
204 NORM_ASM_F2_nb = 0;
205 NORM_BP1_F0_nb = 0;
205 NORM_BP1_F0_nb = 0;
206 NORM_BP1_F1_nb = 0;
206 NORM_BP1_F1_nb = 0;
207 NORM_BP1_F2_nb = 0;
207 NORM_BP1_F2_nb = 0;
208 NORM_BP2_F0_nb = 0;
208 NORM_BP2_F0_nb = 0;
209 NORM_BP2_F1_nb = 0;
209 NORM_BP2_F1_nb = 0;
210 NORM_BP2_F2_nb = 0;
210 NORM_BP2_F2_nb = 0;
211
211
212 BURST_CWF_F2_nb = 0;
212 BURST_CWF_F2_nb = 0;
213 BURST_BP1_F0_nb = 0;
213 BURST_BP1_F0_nb = 0;
214 BURST_BP2_F0_nb = 0;
214 BURST_BP2_F0_nb = 0;
215 BURST_BP1_F1_nb = 0;
215 BURST_BP1_F1_nb = 0;
216 BURST_BP2_F1_nb = 0;
216 BURST_BP2_F1_nb = 0;
217 SBM1_CWF_F1_nb = 0;
217 SBM1_CWF_F1_nb = 0;
218 SBM1_BP1_F0_nb = 0;
218 SBM1_BP1_F0_nb = 0;
219 SBM1_BP2_F0_nb = 0;
219 SBM1_BP2_F0_nb = 0;
220 SBM2_CWF_F2_nb = 0;
220 SBM2_CWF_F2_nb = 0;
221 SBM2_BP1_F0_nb = 0;
221 SBM2_BP1_F0_nb = 0;
222 SBM2_BP2_F0_nb = 0;
222 SBM2_BP2_F0_nb = 0;
223 SBM2_BP1_F1_nb = 0;
223 SBM2_BP1_F1_nb = 0;
224 SBM2_BP2_F1_nb = 0;
224 SBM2_BP2_F1_nb = 0;
225 }
225 }
226
226
227 void TMStatistics::buildMonitor_NORM()
227 void TMStatistics::buildMonitor_NORM()
228 {
228 {
229 layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1);
229 layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1);
230 layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1);
230 layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1);
231 layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1);
231 layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1);
232 layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1);
232 layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1);
233 //
233 //
234 layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1);
234 layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1);
235 layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1);
235 layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1);
236 layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1);
236 layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1);
237 layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1);
237 layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1);
238 //
238 //
239 layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1);
239 layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1);
240 layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1);
240 layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1);
241 layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1);
241 layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1);
242 //
242 //
243 layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1);
243 layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1);
244 layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1);
244 layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1);
245 layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1);
245 layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1);
246 //
246 //
247 layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1);
247 layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1);
248 layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1);
248 layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1);
249 layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1);
249 layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1);
250 layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1);
250 layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1);
251 layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1);
251 layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1);
252 layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1);
252 layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1);
253 //
253 //
254 layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1);
254 layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1);
255 layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1);
255 layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1);
256 layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1);
256 layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1);
257 layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1);
257 layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1);
258 layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1);
258 layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1);
259 layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1);
259 layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1);
260 }
260 }
261
261
262 void TMStatistics::buildMonitor_BURST()
262 void TMStatistics::buildMonitor_BURST()
263 {
263 {
264 layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1);
264 layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1);
265 layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1);
265 layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1);
266 layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1);
266 layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1);
267 layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1);
267 layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1);
268 layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1);
268 layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1);
269 //
269 //
270 layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1);
270 layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1);
271 layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1);
271 layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1);
272 layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1);
272 layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1);
273 layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1);
273 layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1);
274 layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1);
274 layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1);
275 //
275 //
276 layout_BURST->setRowStretch(5, 1);
276 layout_BURST->setRowStretch(5, 1);
277 layout_BURST->setColumnStretch(2,1);
277 layout_BURST->setColumnStretch(2,1);
278 }
278 }
279
279
280 void TMStatistics::buildMonitor_SBM1()
280 void TMStatistics::buildMonitor_SBM1()
281 {
281 {
282 layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1);
282 layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1);
283 layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1);
283 layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1);
284 layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1);
284 layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1);
285 //
285 //
286 layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1);
286 layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1);
287 layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1);
287 layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1);
288 layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1);
288 layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1);
289 //
289 //
290 layout_SBM1->setRowStretch(3, 1);
290 layout_SBM1->setRowStretch(3, 1);
291 layout_SBM1->setColumnStretch(2,1);
291 layout_SBM1->setColumnStretch(2,1);
292 }
292 }
293
293
294 void TMStatistics::buildMonitor_SBM2()
294 void TMStatistics::buildMonitor_SBM2()
295 {
295 {
296 layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1);
296 layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1);
297 layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1);
297 layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1);
298 layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1);
298 layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1);
299 layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1);
299 layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1);
300 layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1);
300 layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1);
301 //
301 //
302 layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1);
302 layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1);
303 layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1);
303 layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1);
304 layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1);
304 layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1);
305 layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1);
305 layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1);
306 layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1);
306 layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1);
307 //
307 //
308 layout_SBM2->setRowStretch(5, 1);
308 layout_SBM2->setRowStretch(5, 1);
309 layout_SBM2->setColumnStretch(2,1);
309 layout_SBM2->setColumnStretch(2,1);
310 }
310 }
311
311
312 void TMStatistics::buildMonitor()
312 void TMStatistics::buildMonitor()
313 {
313 {
314 //***************
314 //***************
315 // TM_LFR_TC_EXE_
315 // TM_LFR_TC_EXE_
316 layout_stat->addWidget(label_SUCC, 0, 0, 1, 1);
316 layout_stat->addWidget(label_SUCC, 0, 0, 1, 1);
317 layout_stat->addWidget(label_INCO, 1, 0, 1, 1);
317 layout_stat->addWidget(label_INCO, 1, 0, 1, 1);
318 layout_stat->addWidget(label_NOTE, 2, 0, 1, 1);
318 layout_stat->addWidget(label_NOTE, 2, 0, 1, 1);
319 layout_stat->addWidget(label_NOTI, 3, 0, 1, 1);
319 layout_stat->addWidget(label_NOTI, 3, 0, 1, 1);
320 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
320 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
321 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
321 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
322 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
322 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
323 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
323 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
324 //
324 //
325 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
325 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
326 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
326 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
327 layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1);
327 layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1);
328 layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1);
328 layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1);
329 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
329 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
330 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
330 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
331 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
331 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
332 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
332 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
333
333
334 //********
334 //********
335 // LAST TM
335 // LAST TM
336 layout_last->addWidget(label_PID, 0, 0, 1, 1);
336 layout_last->addWidget(label_PID, 0, 0, 1, 1);
337 layout_last->addWidget(label_CAT, 0, 1, 1, 1);
337 layout_last->addWidget(label_CAT, 0, 1, 1, 1);
338 layout_last->addWidget(label_TYP, 0, 2, 1, 1);
338 layout_last->addWidget(label_TYP, 0, 2, 1, 1);
339 layout_last->addWidget(label_SUB, 0, 3, 1, 1);
339 layout_last->addWidget(label_SUB, 0, 3, 1, 1);
340 layout_last->addWidget(label_SID, 0, 4, 1, 1);
340 layout_last->addWidget(label_SID, 0, 4, 1, 1);
341 layout_last->addWidget(label_SIZ, 0, 5, 1, 1);
341 layout_last->addWidget(label_SIZ, 0, 5, 1, 1);
342 //
342 //
343 layout_last->addWidget(label_PID_is, 1, 0, 1, 1);
343 layout_last->addWidget(label_PID_is, 1, 0, 1, 1);
344 layout_last->addWidget(label_CAT_is, 1, 1, 1, 1);
344 layout_last->addWidget(label_CAT_is, 1, 1, 1, 1);
345 layout_last->addWidget(label_TYP_is, 1, 2, 1, 1);
345 layout_last->addWidget(label_TYP_is, 1, 2, 1, 1);
346 layout_last->addWidget(label_SUB_is, 1, 3, 1, 1);
346 layout_last->addWidget(label_SUB_is, 1, 3, 1, 1);
347 layout_last->addWidget(label_SID_is, 1, 4, 1, 1);
347 layout_last->addWidget(label_SID_is, 1, 4, 1, 1);
348 layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1);
348 layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1);
349 //
349 //
350 layout_last->addWidget(label_coarse_time, 2, 0, 1, 1);
350 layout_last->addWidget(label_coarse_time, 2, 0, 1, 1);
351 layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1);
351 layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1);
352 layout_last->addWidget(label_fine_time, 2, 2, 1, 1);
352 layout_last->addWidget(label_fine_time, 2, 2, 1, 1);
353 layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1);
353 layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1);
354 //
354 //
355 layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1);
355 layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1);
356 layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1);
356 layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1);
357
357
358 layout_record->addWidget(checkbox_record);
358 layout_record->addWidget(checkbox_record);
359 layout_record->addWidget(checkbox_packetLog);
359 layout_record->addWidget(checkbox_packetLog);
360 layout_record->addWidget(button_chooseDir);
360 layout_record->addWidget(button_chooseDir);
361 layout_record->addWidget(label_currentDir);
361 layout_record->addWidget(label_currentDir);
362 layout_record->insertStretch(4, 1);
362 layout_record->insertStretch(4, 1);
363
363
364 //***********
364 //***********
365 // groupboxes
365 // groupboxes
366 groupbox_stat->setLayout(layout_stat);
366 groupbox_stat->setLayout(layout_stat);
367 groupbox_NORM->setLayout(layout_NORM);
367 groupbox_NORM->setLayout(layout_NORM);
368 groupbox_BURST->setLayout(layout_BURST);
368 groupbox_BURST->setLayout(layout_BURST);
369 groupbox_SBM1->setLayout(layout_SBM1);
369 groupbox_SBM1->setLayout(layout_SBM1);
370 groupbox_SBM2->setLayout(layout_SBM2);
370 groupbox_SBM2->setLayout(layout_SBM2);
371 groupbox_last->setLayout(layout_last);
371 groupbox_last->setLayout(layout_last);
372 groupbox_record->setLayout(layout_record);
372 groupbox_record->setLayout(layout_record);
373 //
373 //
374 mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1);
374 mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1);
375 mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1);
375 mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1);
376 mainLayout->addWidget(groupbox_last, 2, 0, 1, 2);
376 mainLayout->addWidget(groupbox_last, 2, 0, 1, 2);
377 mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1);
377 mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1);
378 mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1);
378 mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1);
379 mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1);
379 mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1);
380 mainLayout->addWidget(groupbox_record, 1, 2, 1, 1);
380 mainLayout->addWidget(groupbox_record, 1, 2, 1, 1);
381 mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3);
381 mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3);
382 mainLayout->setColumnStretch(3, 1);
382 mainLayout->setColumnStretch(3, 1);
383 mainLayout->setRowStretch(4, 1);
383 mainLayout->setRowStretch(4, 1);
384 //
384 //
385 this->setLayout(mainLayout);
385 this->setLayout(mainLayout);
386 }
386 }
387
387
388 void TMStatistics::resetStatistics()
388 void TMStatistics::resetStatistics()
389 {
389 {
390 initConstants();
390 initConstants();
391 //
391 //
392 label_UNKNOWN_nb->setText("-");
392 label_UNKNOWN_nb->setText("-");
393 label_SUCC_nb->setText("-");
393 label_SUCC_nb->setText("-");
394 label_INCO_nb->setText("-");
394 label_INCO_nb->setText("-");
395 label_NOTE_nb->setText("-");
395 label_NOTE_nb->setText("-");
396 label_NOTI_nb->setText("-");
396 label_NOTI_nb->setText("-");
397 label_ERRO_nb->setText("-");
397 label_ERRO_nb->setText("-");
398 label_CORR_nb->setText("-");
398 label_CORR_nb->setText("-");
399 label_HK_nb->setText("-");
399 label_HK_nb->setText("-");
400 label_DUMP_nb->setText("-");
400 label_DUMP_nb->setText("-");
401 //
401 //
402 label_NORM_SWF_F0_nb->setText("-");
402 label_NORM_SWF_F0_nb->setText("-");
403 label_NORM_SWF_F1_nb->setText("-");
403 label_NORM_SWF_F1_nb->setText("-");
404 label_NORM_SWF_F2_nb->setText("-");
404 label_NORM_SWF_F2_nb->setText("-");
405 label_NORM_CWF_F3_nb->setText("-");
405 label_NORM_CWF_F3_nb->setText("-");
406 label_NORM_ASM_F0_nb->setText("-");
406 label_NORM_ASM_F0_nb->setText("-");
407 //
407 //
408 label_BURST_CWF_F2_nb->setText("-");
408 label_BURST_CWF_F2_nb->setText("-");
409 //
409 //
410 label_SBM1_CWF_F1_nb->setText("-");
410 label_SBM1_CWF_F1_nb->setText("-");
411 //
411 //
412 label_SBM2_CWF_F2_nb->setText("-");
412 label_SBM2_CWF_F2_nb->setText("-");
413 //
413 //
414 label_PID_is->setText("-");
414 label_PID_is->setText("-");
415 label_CAT_is->setText("-");
415 label_CAT_is->setText("-");
416 label_TYP_is->setText("-");
416 label_TYP_is->setText("-");
417 label_SUB_is->setText("-");
417 label_SUB_is->setText("-");
418 label_SID_is->setText("-");
418 label_SID_is->setText("-");
419 label_SIZ_is->setText("-");
419 label_SIZ_is->setText("-");
420 //
420 //
421 label_coarse_time_val->setText("-");
421 label_coarse_time_val->setText("-");
422 label_fine_time_val->setText("-");
422 label_fine_time_val->setText("-");
423 }
423 }
424
424
425 void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat,
425 void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat,
426 unsigned char typ, unsigned char sub,
426 unsigned char typ, unsigned char sub,
427 unsigned int sid, unsigned int length,
427 unsigned int sid, unsigned int length,
428 unsigned int coarse_t, unsigned int fine_t)
428 unsigned int coarse_t, unsigned int fine_t)
429 {
429 {
430 if (cat == TM_PACKET_CAT_TC_EXE)
430 if (cat == TM_PACKET_CAT_TC_EXE)
431 {
431 {
432 if (typ == TM_TYPE_TC_EXE)
432 if (typ == TM_TYPE_TC_EXE)
433 {
433 {
434 if (sub == TM_SUBTYPE_EXE_OK)
434 if (sub == TM_SUBTYPE_EXE_OK)
435 {
435 {
436 SUCC_nb = SUCC_nb + 1;
436 SUCC_nb = SUCC_nb + 1;
437 label_SUCC_nb->setText(QString::number(SUCC_nb));
437 label_SUCC_nb->setText(QString::number(SUCC_nb));
438 }
438 }
439 else if (sub == TM_SUBTYPE_EXE_NOK)
439 else if (sub == TM_SUBTYPE_EXE_NOK)
440 {
440 {
441 if (sid == SID_EXE_INC)
441 if (sid == WRONG_APP_DATA)
442 {
442 {
443 INCO_nb = INCO_nb + 1;
443 INCO_nb = INCO_nb + 1;
444 label_INCO_nb->setText(QString::number(INCO_nb));
444 label_INCO_nb->setText(QString::number(INCO_nb));
445 }
445 }
446 else if (sid == SID_NOT_EXE)
446 else if (sid == TC_NOT_EXE)
447 {
447 {
448 NOTE_nb = NOTE_nb + 1;
448 NOTE_nb = NOTE_nb + 1;
449 label_NOTE_nb->setText(QString::number(NOTE_nb));
449 label_NOTE_nb->setText(QString::number(NOTE_nb));
450 }
450 }
451 else if (sid == SID_NOT_IMP)
451 else if (sid == FUNCT_NOT_IMPL)
452 {
452 {
453 NOTI_nb = NOTI_nb + 1;
453 NOTI_nb = NOTI_nb + 1;
454 label_NOTI_nb->setText(QString::number(NOTI_nb));
454 label_NOTI_nb->setText(QString::number(NOTI_nb));
455 }
455 }
456 else if (sid == SID_EXE_ERR)
456 else if (sid == FAIL_DETECTED)
457 {
457 {
458 ERRO_nb = ERRO_nb + 1;
458 ERRO_nb = ERRO_nb + 1;
459 label_ERRO_nb->setText(QString::number(ERRO_nb));
459 label_ERRO_nb->setText(QString::number(ERRO_nb));
460 }
460 }
461 else if (sid == SID_EXE_CORR)
461 else if (sid == CORRUPTED)
462 {
462 {
463 CORR_nb = CORR_nb + 1;
463 CORR_nb = CORR_nb + 1;
464 label_CORR_nb->setText(QString::number(CORR_nb));
464 label_CORR_nb->setText(QString::number(CORR_nb));
465 }
465 }
466 else incrementUnknown();
466 else incrementUnknown();
467 }
467 }
468 else incrementUnknown();
468 else incrementUnknown();
469 }
469 }
470 else
470 else
471 incrementUnknown();
471 incrementUnknown();
472 }
472 }
473 else if (cat == TM_PACKET_CAT_HK)
473 else if (cat == TM_PACKET_CAT_HK)
474 {
474 {
475 if (typ == TM_TYPE_HK)
475 if (typ == TM_TYPE_HK)
476 {
476 {
477 if (sub == TM_SUBTYPE_HK)
477 if (sub == TM_SUBTYPE_HK)
478 if (sid == SID_HK)
478 if (sid == SID_HK)
479 {
479 {
480 HK_nb = HK_nb + 1;
480 HK_nb = HK_nb + 1;
481 label_HK_nb->setText(QString::number(HK_nb));
481 label_HK_nb->setText(QString::number(HK_nb));
482 }
482 }
483 else
483 else
484 {
484 {
485 incrementUnknown();
485 incrementUnknown();
486 }
486 }
487 else
487 else
488 {
488 {
489 incrementUnknown();
489 incrementUnknown();
490 }
490 }
491 }
491 }
492 else
492 else
493 {
493 {
494 incrementUnknown();
494 incrementUnknown();
495 }
495 }
496 }
496 }
497 else if (cat == TM_PACKET_CAT_PARAMETER_DUMP)
497 else if (cat == TM_PACKET_CAT_PARAMETER_DUMP)
498 {
498 {
499 if (typ == TM_TYPE_PARAMETER_DUMP)
499 if (typ == TM_TYPE_PARAMETER_DUMP)
500 {
500 {
501 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
501 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
502 if (sid == SID_PARAMETER_DUMP)
502 if (sid == SID_PARAMETER_DUMP)
503 {
503 {
504 DUMP_nb = DUMP_nb + 1;
504 DUMP_nb = DUMP_nb + 1;
505 label_DUMP_nb->setText(QString::number(DUMP_nb));
505 label_DUMP_nb->setText(QString::number(DUMP_nb));
506 }
506 }
507 else
507 else
508 {
508 {
509 incrementUnknown();
509 incrementUnknown();
510 }
510 }
511 else
511 else
512 {
512 {
513 incrementUnknown();
513 incrementUnknown();
514 }
514 }
515 }
515 }
516 else
516 else
517 {
517 {
518 incrementUnknown();
518 incrementUnknown();
519 }
519 }
520 }
520 }
521 else if (cat == TM_PACKET_CAT_SCIENCE)
521 else if (cat == TM_PACKET_CAT_SCIENCE)
522 {
522 {
523 if (typ == TM_TYPE_LFR_SCIENCE)
523 if (typ == TM_TYPE_LFR_SCIENCE)
524 {
524 {
525 if (sub == TM_SUBTYPE_SCIENCE)
525 if (sub == TM_SUBTYPE_SCIENCE)
526 {
526 {
527 if (sid == SID_NORM_CWF_F3)
527 if (sid == SID_NORM_CWF_F3)
528 {
528 {
529 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
529 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
530 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
530 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
531 }
531 }
532 else if (sid == SID_BURST_CWF_F2)
532 else if (sid == SID_BURST_CWF_F2)
533 {
533 {
534 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
534 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
535 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
535 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
536 }
536 }
537 else if (sid == SID_NORM_SWF_F0)
537 else if (sid == SID_NORM_SWF_F0)
538 {
538 {
539 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
539 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
540 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
540 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
541 }
541 }
542 else if (sid == SID_NORM_SWF_F1)
542 else if (sid == SID_NORM_SWF_F1)
543 {
543 {
544 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
544 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
545 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
545 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
546 }
546 }
547 else if (sid == SID_NORM_SWF_F2)
547 else if (sid == SID_NORM_SWF_F2)
548 {
548 {
549 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
549 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
550 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
550 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
551 }
551 }
552 else if (sid == SID_NORM_ASM_F0)
552 else if (sid == SID_NORM_ASM_F0)
553 {
553 {
554 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
554 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
555 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
555 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
556 }
556 }
557 else if (sid == SID_SBM1_CWF_F1)
557 else if (sid == SID_SBM1_CWF_F1)
558 {
558 {
559 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
559 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
560 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
560 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
561 }
561 }
562 else if (sid == SID_SBM2_CWF_F2)
562 else if (sid == SID_SBM2_CWF_F2)
563 {
563 {
564 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
564 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
565 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
565 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
566 }
566 }
567 else
567 else
568 {
568 {
569 incrementUnknown();
569 incrementUnknown();
570 }
570 }
571 }
571 }
572 }
572 }
573 else
573 else
574 {
574 {
575 incrementUnknown();
575 incrementUnknown();
576 }
576 }
577 }
577 }
578 else
578 else
579 {
579 {
580 incrementUnknown();
580 incrementUnknown();
581 }
581 }
582
582
583 label_PID_is->setText(QString::number(pid));
583 label_PID_is->setText(QString::number(pid));
584 label_CAT_is->setText(QString::number(cat));
584 label_CAT_is->setText(QString::number(cat));
585 label_TYP_is->setText(QString::number(typ));
585 label_TYP_is->setText(QString::number(typ));
586 label_SUB_is->setText(QString::number(sub));
586 label_SUB_is->setText(QString::number(sub));
587 label_SID_is->setText(QString::number(sid));
587 label_SID_is->setText(QString::number(sid));
588 label_SIZ_is->setText(QString::number(length));
588 label_SIZ_is->setText(QString::number(length));
589 label_coarse_time_val->setText(QString::number(coarse_t, 16));
589 label_coarse_time_val->setText(QString::number(coarse_t, 16));
590 label_fine_time_val->setText(QString::number(fine_t, 16));
590 label_fine_time_val->setText(QString::number(fine_t, 16));
591 }
591 }
592
592
593 void TMStatistics::incrementUnknown()
593 void TMStatistics::incrementUnknown()
594 {
594 {
595 UNKNOWN_nb = UNKNOWN_nb + 1;
595 UNKNOWN_nb = UNKNOWN_nb + 1;
596 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
596 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
597 }
597 }
598
598
599 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
599 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
600 {
600 {
601 unsigned char pid = 0;
601 unsigned char pid = 0;
602
602
603 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
603 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
604
604
605 return pid;
605 return pid;
606 }
606 }
607
607
608 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
608 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
609 {
609 {
610 unsigned char cat = 0;
610 unsigned char cat = 0;
611
611
612 cat = packet->Value[5] & 0x0f;
612 cat = packet->Value[5] & 0x0f;
613
613
614 return cat;
614 return cat;
615 }
615 }
616
616
617 unsigned char TMStatistics::getSegmentationGroupingFlag(TMPacketToRead *packet)
617 unsigned char TMStatistics::getSegmentationGroupingFlag(TMPacketToRead *packet)
618 {
618 {
619 unsigned char segmentationGroupingFlag;
619 unsigned char segmentationGroupingFlag;
620
620
621 segmentationGroupingFlag = (unsigned char) (packet->Value[6] >> 6);
621 segmentationGroupingFlag = (unsigned char) (packet->Value[6] >> 6);
622
622
623 return segmentationGroupingFlag;
623 return segmentationGroupingFlag;
624 }
624 }
625
625
626 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
626 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
627 {
627 {
628 unsigned char typ = 0;
628 unsigned char typ = 0;
629
629
630 typ = packet->Value[11]; // TYPE
630 typ = packet->Value[11]; // TYPE
631
631
632 return typ;
632 return typ;
633 }
633 }
634
634
635 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
635 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
636 {
636 {
637 unsigned char sub = 0;
637 unsigned char sub = 0;
638
638
639 sub = packet->Value[12]; // SUBTYPE
639 sub = packet->Value[12]; // SUBTYPE
640
640
641 return sub;
641 return sub;
642 }
642 }
643
643
644 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
644 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
645 {
645 {
646 unsigned int length = 0;
646 unsigned int length = 0;
647
647
648 length = packet->Value[8] * 256 + packet->Value[9];
648 length = packet->Value[8] * 256 + packet->Value[9];
649
649
650 return length;
650 return length;
651 }
651 }
652
652
653 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
653 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
654 {
654 {
655 unsigned int coarse = 0;
655 unsigned int coarse = 0;
656
656
657 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
657 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
658 + packet->Value[16] * pow(2, 8) + packet->Value[17];
658 + packet->Value[16] * pow(2, 8) + packet->Value[17];
659
659
660 return coarse;
660 return coarse;
661 }
661 }
662
662
663 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
663 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
664 {
664 {
665 unsigned int fine = 0;
665 unsigned int fine = 0;
666
666
667 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
667 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
668
668
669 return fine;
669 return fine;
670 }
670 }
671
671
672 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
672 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
673 unsigned char pid, unsigned char cat,
673 unsigned char pid, unsigned char cat,
674 unsigned char typ, unsigned char sub)
674 unsigned char typ, unsigned char sub)
675 {
675 {
676 unsigned int sid = 0;
676 unsigned int sid = 0;
677 QByteArray packetAsAnArray;
677 QByteArray packetAsAnArray;
678 QString packetName;
678 QString packetName;
679 QTime currentTime;
679 QTime currentTime;
680 QDate currentDate;
680 QDate currentDate;
681
681
682 if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE)
682 if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE)
683 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
683 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
684 sid = packet->Value[20] * 256 + packet->Value[21];
684 sid = packet->Value[20] * 256 + packet->Value[21];
685 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
685 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
686 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
686 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
687 sid = SID_HK;
687 sid = SID_HK;
688 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
688 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
689 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
689 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
690 sid = SID_PARAMETER_DUMP;
690 sid = SID_PARAMETER_DUMP;
691 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE)
691 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE)
692 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
692 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
693 sid = packet->Value[20];
693 sid = packet->Value[20];
694 else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE)
694 else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE)
695 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
695 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
696 sid = packet->Value[20];
696 sid = packet->Value[20];
697
697
698 if (logFileEn == true)
698 if (logFileEn == true)
699 {
699 {
700 // packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4));
700 // packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4));
701 logFile->write((char *) &packet->Value[4], (packet->size-4));
701 logFile->write((char *) &packet->Value[4], (packet->size-4));
702 // *(this->logFileStrm)
702 // *(this->logFileStrm)
703 // << packetAsAnArray;
703 // << packetAsAnArray;
704 }
704 }
705
705
706 if (packetLogFileEn == true)
706 if (packetLogFileEn == true)
707 {
707 {
708 currentTime = QTime::currentTime();
708 currentTime = QTime::currentTime();
709 currentDate = QDate::currentDate();
709 currentDate = QDate::currentDate();
710 packetName = getPacketName( typ, sub, sid);
710 packetName = getPacketName( typ, sub, sid);
711
711
712 *(this->packetLogFileStrm)
712 *(this->packetLogFileStrm)
713 << QString::number(currentDate.year()) + " "
713 << QString::number(currentDate.year()) + " "
714 << QString::number(currentDate.month()) + " "
714 << QString::number(currentDate.month()) + " "
715 << QString::number(currentDate.day()) + " "
715 << QString::number(currentDate.day()) + " "
716 << QTime::currentTime().toString() + ":"
716 << QTime::currentTime().toString() + ":"
717 << QString::number(currentTime.msec()) + " "
717 << QString::number(currentTime.msec()) + " "
718 << packetName
718 << packetName
719 << " time = 0x " + QString::number(
719 << " time = 0x " + QString::number(
720 (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17],
720 (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17],
721 16).right(8)
721 16).right(8)
722 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
722 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
723 << endl;
723 << endl;
724 }
724 }
725
725
726 return sid;
726 return sid;
727 }
727 }
728
728
729 void TMStatistics::buildFileName()
729 void TMStatistics::buildFileName()
730 {
730 {
731 QTime time;
731 QTime time;
732 QDate date;
732 QDate date;
733 QString dateTime;
733 QString dateTime;
734 QString prefix;
734 QString prefix;
735
735
736 date = QDate::currentDate();
736 date = QDate::currentDate();
737 time = QTime::currentTime();
737 time = QTime::currentTime();
738
738
739 dateTime = QString::number( date.year() ) + "_"
739 dateTime = QString::number( date.year() ) + "_"
740 + QString::number( date.month() ) + "_"
740 + QString::number( date.month() ) + "_"
741 + QString::number( date.day() ) + "-"
741 + QString::number( date.day() ) + "-"
742 + QString::number( time.hour() ) + "_"
742 + QString::number( time.hour() ) + "_"
743 + QString::number( time.minute() ) + "_"
743 + QString::number( time.minute() ) + "_"
744 + QString::number( time.second() );
744 + QString::number( time.second() );
745
745
746 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
746 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
747
747
748 if(this->logFile->isOpen()) this->logFile->close();
748 if(this->logFile->isOpen()) this->logFile->close();
749 this->logFile->setFileName( prefix + "packet_record.data");
749 this->logFile->setFileName( prefix + "packet_record.data");
750 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
750 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
751 }
751 }
752
752
753 void TMStatistics::buildPacketLogFileName()
753 void TMStatistics::buildPacketLogFileName()
754 {
754 {
755 QTime time;
755 QTime time;
756 QDate date;
756 QDate date;
757 QString dateTime;
757 QString dateTime;
758 QString prefix;
758 QString prefix;
759
759
760 date = QDate::currentDate();
760 date = QDate::currentDate();
761 time = QTime::currentTime();
761 time = QTime::currentTime();
762
762
763 dateTime = QString::number( date.year() ) + "_"
763 dateTime = QString::number( date.year() ) + "_"
764 + QString::number( date.month() ) + "_"
764 + QString::number( date.month() ) + "_"
765 + QString::number( date.day() ) + "-"
765 + QString::number( date.day() ) + "-"
766 + QString::number( time.hour() ) + "_"
766 + QString::number( time.hour() ) + "_"
767 + QString::number( time.minute() ) + "_"
767 + QString::number( time.minute() ) + "_"
768 + QString::number( time.second() );
768 + QString::number( time.second() );
769
769
770 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
770 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
771
771
772 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
772 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
773 this->packetLogFile->setFileName( prefix + "packet_log.data");
773 this->packetLogFile->setFileName( prefix + "packet_log.data");
774 if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile);
774 if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile);
775 }
775 }
776
776
777 void TMStatistics::storePackets( int state )
777 void TMStatistics::storePackets( int state )
778 {
778 {
779 if (state == Qt::Checked)
779 if (state == Qt::Checked)
780 {
780 {
781 buildFileName();
781 buildFileName();
782 logFileEn = true;
782 logFileEn = true;
783 }
783 }
784 else
784 else
785 {
785 {
786 if(this->logFile->isOpen()) this->logFile->close();
786 if(this->logFile->isOpen()) this->logFile->close();
787 logFileEn = false;
787 logFileEn = false;
788 }
788 }
789 }
789 }
790
790
791 void TMStatistics::logPackets( int state )
791 void TMStatistics::logPackets( int state )
792 {
792 {
793 if (state == Qt::Checked)
793 if (state == Qt::Checked)
794 {
794 {
795 buildPacketLogFileName();
795 buildPacketLogFileName();
796 packetLogFileEn = true;
796 packetLogFileEn = true;
797 }
797 }
798 else
798 else
799 {
799 {
800 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
800 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
801 packetLogFileEn = false;
801 packetLogFileEn = false;
802 }
802 }
803 }
803 }
804
804
805 void TMStatistics::chooseDir()
805 void TMStatistics::chooseDir()
806 {
806 {
807 QString tmpDefaultStorageDirectory;
807 QString tmpDefaultStorageDirectory;
808 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
808 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
809 "choose the directory",
809 "choose the directory",
810 QDir::homePath(),
810 QDir::homePath(),
811 QFileDialog::ShowDirsOnly);
811 QFileDialog::ShowDirsOnly);
812
812
813 if( !tmpDefaultStorageDirectory.isEmpty() )
813 if( !tmpDefaultStorageDirectory.isEmpty() )
814 {
814 {
815 defaultStorageDirectory = tmpDefaultStorageDirectory;
815 defaultStorageDirectory = tmpDefaultStorageDirectory;
816 }
816 }
817
817
818 label_currentDir->setText(defaultStorageDirectory);
818 label_currentDir->setText(defaultStorageDirectory);
819 }
819 }
820
820
821 void TMStatistics::closeEvent(QCloseEvent *event)
821 void TMStatistics::closeEvent(QCloseEvent *event)
822 {
822 {
823 if(this->logFile->isOpen())
823 if(this->logFile->isOpen())
824 {
824 {
825 this->logFileStrm->flush();
825 this->logFileStrm->flush();
826 this->logFile->waitForBytesWritten(3000);
826 this->logFile->waitForBytesWritten(3000);
827 this->logFile->close();
827 this->logFile->close();
828 }
828 }
829 writeSettings();
829 writeSettings();
830 event->accept();
830 event->accept();
831 }
831 }
832
832
833 QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid)
833 QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid)
834 {
834 {
835 QString packetName = "default";
835 QString packetName = "default";
836 if (type == TM_TYPE_TC_EXE)
836 if (type == TM_TYPE_TC_EXE)
837 {
837 {
838 if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS";
838 if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS";
839 if (subtype == TM_SUBTYPE_EXE_NOK)
839 if (subtype == TM_SUBTYPE_EXE_NOK)
840 {
840 {
841 if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
841 if (sid == WRONG_APP_DATA) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
842 if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
842 if (sid == TC_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
843 if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
843 if (sid == FUNCT_NOT_IMPL) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
844 if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR";
844 if (sid == FAIL_DETECTED) packetName = "TM_LFR_TC_EXE_ERROR";
845 if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED";
845 if (sid == CORRUPTED) packetName = "TM_LFR_TC_EXE_CORRUPTED";
846 }
846 }
847 }
847 }
848 if (type == TM_TYPE_HK)
848 if (type == TM_TYPE_HK)
849 {
849 {
850 if (subtype == TM_SUBTYPE_HK)
850 if (subtype == TM_SUBTYPE_HK)
851 {
851 {
852 if (sid == SID_HK) packetName = "TM_LFR_HK";
852 if (sid == SID_HK) packetName = "TM_LFR_HK";
853 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
853 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
854 }
854 }
855 }
855 }
856 if (type == TM_TYPE_LFR_SCIENCE)
856 if (type == TM_TYPE_LFR_SCIENCE)
857 {
857 {
858 if (subtype == TM_SUBTYPE_SCIENCE)
858 if (subtype == TM_SUBTYPE_SCIENCE)
859 {
859 {
860 if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0";
860 if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0";
861 if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1";
861 if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1";
862 if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2";
862 if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2";
863 if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3";
863 if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3";
864 if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2";
864 if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2";
865 if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1";
865 if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1";
866 if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2";
866 if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2";
867 if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0";
867 if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0";
868 if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1";
868 if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1";
869 if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2";
869 if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2";
870 if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0";
870 if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0";
871 if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1";
871 if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1";
872 if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2";
872 if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2";
873 if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0";
873 if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0";
874 if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1";
874 if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1";
875 if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2";
875 if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2";
876 if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0";
876 if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0";
877 if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0";
877 if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0";
878 if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1";
878 if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1";
879 if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1";
879 if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1";
880 if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0";
880 if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0";
881 if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0";
881 if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0";
882 if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0";
882 if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0";
883 if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0";
883 if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0";
884 if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1";
884 if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1";
885 if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1";
885 if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1";
886 }
886 }
887 }
887 }
888
888
889 return packetName;
889 return packetName;
890 }
890 }
891
891
892 void TMStatistics::readSettings()
892 void TMStatistics::readSettings()
893 {
893 {
894 QSettings settings("lpp", "lfrsgse");
894 QSettings settings("lpp", "lfrsgse");
895 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
895 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
896 label_currentDir->setText(defaultStorageDirectory);
896 label_currentDir->setText(defaultStorageDirectory);
897 }
897 }
898
898
899 void TMStatistics::writeSettings()
899 void TMStatistics::writeSettings()
900 {
900 {
901 QSettings settings("lpp", "lfrsgse");
901 QSettings settings("lpp", "lfrsgse");
902 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
902 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
903 }
903 }
General Comments 0
You need to be logged in to leave comments. Login now