##// END OF EJS Templates
gselesia changed to process CWF_F3 light waveforms...
leroy -
r52:061b27b067a0 default
parent child
Show More
@@ -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-03T07:18:57. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T09:55:13. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
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,391 +1,381
1 #############################################################################
1 #############################################################################
2 # Makefile for building: lfrsgse
2 # Makefile for building: lfrsgse
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Aug 1 07:46:21 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Thu Oct 10 08:44:30 2013
4 # Project: gselesia.pro
4 # Project: gselesia.pro
5 # Template: app
5 # Template: app
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
7 #############################################################################
7 #############################################################################
8
8
9 ####### Compiler, tools and options
9 ####### Compiler, tools and options
10
10
11 CC = gcc
11 CC = gcc
12 CXX = g++
12 CXX = g++
13 DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
13 DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I.
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/parameterdump -I.
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lparameterdump -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
20 AR = ar cqs
20 AR = ar cqs
21 RANLIB =
21 RANLIB =
22 QMAKE = /usr/bin/qmake-qt4
22 QMAKE = /usr/bin/qmake-qt4
23 TAR = tar -cf
23 TAR = tar -cf
24 COMPRESS = gzip -9f
24 COMPRESS = gzip -9f
25 COPY = cp -f
25 COPY = cp -f
26 SED = sed
26 SED = sed
27 COPY_FILE = $(COPY)
27 COPY_FILE = $(COPY)
28 COPY_DIR = $(COPY) -r
28 COPY_DIR = $(COPY) -r
29 STRIP =
29 STRIP =
30 INSTALL_FILE = install -m 644 -p
30 INSTALL_FILE = install -m 644 -p
31 INSTALL_DIR = $(COPY_DIR)
31 INSTALL_DIR = $(COPY_DIR)
32 INSTALL_PROGRAM = install -m 755 -p
32 INSTALL_PROGRAM = install -m 755 -p
33 DEL_FILE = rm -f
33 DEL_FILE = rm -f
34 SYMLINK = ln -f -s
34 SYMLINK = ln -f -s
35 DEL_DIR = rmdir
35 DEL_DIR = rmdir
36 MOVE = mv -f
36 MOVE = mv -f
37 CHK_DIR_EXISTS= test -d
37 CHK_DIR_EXISTS= test -d
38 MKDIR = mkdir -p
38 MKDIR = mkdir -p
39
39
40 ####### Output directory
40 ####### Output directory
41
41
42 OBJECTS_DIR = ./
42 OBJECTS_DIR = ./
43
43
44 ####### Files
44 ####### Files
45
45
46 SOURCES = main.cpp \
46 SOURCES = main.cpp \
47 mainwindow.cpp \
47 mainwindow.cpp \
48 mainwindowui.cpp \
48 mainwindowui.cpp \
49 lfrxmlhandler.cpp \
49 lfrxmlhandler.cpp \
50 lfrxmlwriter.cpp \
50 lfrxmlwriter.cpp \
51 ../rmapplugin/tmstatistics.cpp \
51 ../rmapplugin/tmstatistics.cpp \
52 ../rmapplugin/tmpackettoread.cpp \
52 ../rmapplugin/tmpackettoread.cpp \
53 ../rmapplugin/wfpacket.cpp \
53 ../rmapplugin/wfpacket.cpp \
54 ../rmapplugin/spectrapacket.cpp \
54 ../rmapplugin/spectrapacket.cpp \
55 ../common_PLE/qipdialogbox.cpp \
55 ../common_PLE/qipdialogbox.cpp \
56 ../common_PLE/hkdisplay.cpp \
56 ../common_PLE/hkdisplay.cpp \
57 lfrxmlparser.cpp \
57 lfrxmlparser.cpp moc_mainwindow.cpp \
58 lfrspectrogram.cpp moc_mainwindow.cpp \
59 moc_mainwindowui.cpp \
58 moc_mainwindowui.cpp \
60 moc_lfrxmlhandler.cpp \
59 moc_lfrxmlhandler.cpp \
61 moc_lfrxmlwriter.cpp \
60 moc_lfrxmlwriter.cpp \
62 moc_tmstatistics.cpp \
61 moc_tmstatistics.cpp \
63 moc_tmpackettoread.cpp \
62 moc_tmpackettoread.cpp \
64 moc_wfpacket.cpp \
63 moc_wfpacket.cpp \
65 moc_spectrapacket.cpp \
64 moc_spectrapacket.cpp \
66 moc_qipdialogbox.cpp \
65 moc_qipdialogbox.cpp \
67 moc_hkdisplay.cpp \
66 moc_hkdisplay.cpp \
68 moc_lfrxmlparser.cpp \
67 moc_lfrxmlparser.cpp
69 moc_lfrspectrogram.cpp
70 OBJECTS = main.o \
68 OBJECTS = main.o \
71 mainwindow.o \
69 mainwindow.o \
72 mainwindowui.o \
70 mainwindowui.o \
73 lfrxmlhandler.o \
71 lfrxmlhandler.o \
74 lfrxmlwriter.o \
72 lfrxmlwriter.o \
75 tmstatistics.o \
73 tmstatistics.o \
76 tmpackettoread.o \
74 tmpackettoread.o \
77 wfpacket.o \
75 wfpacket.o \
78 spectrapacket.o \
76 spectrapacket.o \
79 qipdialogbox.o \
77 qipdialogbox.o \
80 hkdisplay.o \
78 hkdisplay.o \
81 lfrxmlparser.o \
79 lfrxmlparser.o \
82 lfrspectrogram.o \
83 moc_mainwindow.o \
80 moc_mainwindow.o \
84 moc_mainwindowui.o \
81 moc_mainwindowui.o \
85 moc_lfrxmlhandler.o \
82 moc_lfrxmlhandler.o \
86 moc_lfrxmlwriter.o \
83 moc_lfrxmlwriter.o \
87 moc_tmstatistics.o \
84 moc_tmstatistics.o \
88 moc_tmpackettoread.o \
85 moc_tmpackettoread.o \
89 moc_wfpacket.o \
86 moc_wfpacket.o \
90 moc_spectrapacket.o \
87 moc_spectrapacket.o \
91 moc_qipdialogbox.o \
88 moc_qipdialogbox.o \
92 moc_hkdisplay.o \
89 moc_hkdisplay.o \
93 moc_lfrxmlparser.o \
90 moc_lfrxmlparser.o
94 moc_lfrspectrogram.o
95 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
91 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
96 /usr/lib64/qt4/mkspecs/common/linux.conf \
92 /usr/lib64/qt4/mkspecs/common/linux.conf \
97 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
93 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
98 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
94 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
99 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
95 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
100 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
96 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
101 /usr/lib64/qt4/mkspecs/qconfig.pri \
97 /usr/lib64/qt4/mkspecs/qconfig.pri \
102 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
98 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
103 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
99 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
104 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
100 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
105 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
101 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
106 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
102 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
107 /usr/lib64/qt4/mkspecs/features/release.prf \
103 /usr/lib64/qt4/mkspecs/features/release.prf \
108 /usr/lib64/qt4/mkspecs/features/default_post.prf \
104 /usr/lib64/qt4/mkspecs/features/default_post.prf \
105 /usr/lib64/qt4/mkspecs/features/shared.prf \
109 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
106 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
110 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
107 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
111 /usr/lib64/qt4/mkspecs/features/qt.prf \
108 /usr/lib64/qt4/mkspecs/features/qt.prf \
112 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
109 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
113 /usr/lib64/qt4/mkspecs/features/moc.prf \
110 /usr/lib64/qt4/mkspecs/features/moc.prf \
114 /usr/lib64/qt4/mkspecs/features/resources.prf \
111 /usr/lib64/qt4/mkspecs/features/resources.prf \
115 /usr/lib64/qt4/mkspecs/features/uic.prf \
112 /usr/lib64/qt4/mkspecs/features/uic.prf \
116 /usr/lib64/qt4/mkspecs/features/yacc.prf \
113 /usr/lib64/qt4/mkspecs/features/yacc.prf \
117 /usr/lib64/qt4/mkspecs/features/lex.prf \
114 /usr/lib64/qt4/mkspecs/features/lex.prf \
118 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
115 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
119 gselesia.pro
116 gselesia.pro
120 QMAKE_TARGET = lfrsgse
117 QMAKE_TARGET = lfrsgse
121 DESTDIR =
118 DESTDIR =
122 TARGET = lfrsgse
119 TARGET = lfrsgse
123
120
124 first: all
121 first: all
125 ####### Implicit rules
122 ####### Implicit rules
126
123
127 .SUFFIXES: .o .c .cpp .cc .cxx .C
124 .SUFFIXES: .o .c .cpp .cc .cxx .C
128
125
129 .cpp.o:
126 .cpp.o:
130 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
127 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
131
128
132 .cc.o:
129 .cc.o:
133 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
130 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
134
131
135 .cxx.o:
132 .cxx.o:
136 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
133 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
137
134
138 .C.o:
135 .C.o:
139 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
136 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
140
137
141 .c.o:
138 .c.o:
142 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
139 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
143
140
144 ####### Build rules
141 ####### Build rules
145
142
146 all: Makefile $(TARGET)
143 all: Makefile $(TARGET)
147
144
148 $(TARGET): $(OBJECTS)
145 $(TARGET): $(OBJECTS)
149 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
146 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
150
147
151 Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
148 Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
152 /usr/lib64/qt4/mkspecs/common/linux.conf \
149 /usr/lib64/qt4/mkspecs/common/linux.conf \
153 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
150 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
154 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
151 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
155 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
152 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
156 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
153 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
157 /usr/lib64/qt4/mkspecs/qconfig.pri \
154 /usr/lib64/qt4/mkspecs/qconfig.pri \
158 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
155 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
159 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
156 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
160 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
157 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
161 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
158 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
162 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
159 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
163 /usr/lib64/qt4/mkspecs/features/release.prf \
160 /usr/lib64/qt4/mkspecs/features/release.prf \
164 /usr/lib64/qt4/mkspecs/features/default_post.prf \
161 /usr/lib64/qt4/mkspecs/features/default_post.prf \
162 /usr/lib64/qt4/mkspecs/features/shared.prf \
165 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
163 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
166 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
164 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
167 /usr/lib64/qt4/mkspecs/features/qt.prf \
165 /usr/lib64/qt4/mkspecs/features/qt.prf \
168 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
166 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
169 /usr/lib64/qt4/mkspecs/features/moc.prf \
167 /usr/lib64/qt4/mkspecs/features/moc.prf \
170 /usr/lib64/qt4/mkspecs/features/resources.prf \
168 /usr/lib64/qt4/mkspecs/features/resources.prf \
171 /usr/lib64/qt4/mkspecs/features/uic.prf \
169 /usr/lib64/qt4/mkspecs/features/uic.prf \
172 /usr/lib64/qt4/mkspecs/features/yacc.prf \
170 /usr/lib64/qt4/mkspecs/features/yacc.prf \
173 /usr/lib64/qt4/mkspecs/features/lex.prf \
171 /usr/lib64/qt4/mkspecs/features/lex.prf \
174 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
172 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
175 /usr/lib64/libQtXml.prl \
173 /usr/lib64/libQtXml.prl \
176 /usr/lib64/libQtCore.prl \
174 /usr/lib64/libQtCore.prl \
177 /usr/lib64/libQtGui.prl \
175 /usr/lib64/libQtGui.prl \
178 /usr/lib64/libQtNetwork.prl
176 /usr/lib64/libQtNetwork.prl
179 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
177 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
180 /usr/lib64/qt4/mkspecs/common/unix.conf:
178 /usr/lib64/qt4/mkspecs/common/unix.conf:
181 /usr/lib64/qt4/mkspecs/common/linux.conf:
179 /usr/lib64/qt4/mkspecs/common/linux.conf:
182 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
180 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
183 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
181 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
184 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
182 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
185 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
183 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
186 /usr/lib64/qt4/mkspecs/qconfig.pri:
184 /usr/lib64/qt4/mkspecs/qconfig.pri:
187 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
185 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
188 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
186 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
189 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
187 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
190 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
188 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
191 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
189 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
192 /usr/lib64/qt4/mkspecs/features/release.prf:
190 /usr/lib64/qt4/mkspecs/features/release.prf:
193 /usr/lib64/qt4/mkspecs/features/default_post.prf:
191 /usr/lib64/qt4/mkspecs/features/default_post.prf:
192 /usr/lib64/qt4/mkspecs/features/shared.prf:
194 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
193 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
195 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
194 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
196 /usr/lib64/qt4/mkspecs/features/qt.prf:
195 /usr/lib64/qt4/mkspecs/features/qt.prf:
197 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
196 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
198 /usr/lib64/qt4/mkspecs/features/moc.prf:
197 /usr/lib64/qt4/mkspecs/features/moc.prf:
199 /usr/lib64/qt4/mkspecs/features/resources.prf:
198 /usr/lib64/qt4/mkspecs/features/resources.prf:
200 /usr/lib64/qt4/mkspecs/features/uic.prf:
199 /usr/lib64/qt4/mkspecs/features/uic.prf:
201 /usr/lib64/qt4/mkspecs/features/yacc.prf:
200 /usr/lib64/qt4/mkspecs/features/yacc.prf:
202 /usr/lib64/qt4/mkspecs/features/lex.prf:
201 /usr/lib64/qt4/mkspecs/features/lex.prf:
203 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
202 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
204 /usr/lib64/libQtXml.prl:
203 /usr/lib64/libQtXml.prl:
205 /usr/lib64/libQtCore.prl:
204 /usr/lib64/libQtCore.prl:
206 /usr/lib64/libQtGui.prl:
205 /usr/lib64/libQtGui.prl:
207 /usr/lib64/libQtNetwork.prl:
206 /usr/lib64/libQtNetwork.prl:
208 qmake: FORCE
207 qmake: FORCE
209 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
208 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
210
209
211 dist:
210 dist:
212 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
211 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
213 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/qipdialogbox.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/TC_types.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp lfrspectrogram.cpp .tmp/lfrsgse1.0.0/ && (cd `dirname .tmp/lfrsgse1.0.0` && $(TAR) lfrsgse1.0.0.tar lfrsgse1.0.0 && $(COMPRESS) lfrsgse1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse1.0.0`/lfrsgse1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse1.0.0
212 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/qipdialogbox.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/TC_types.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp .tmp/lfrsgse1.0.0/ && (cd `dirname .tmp/lfrsgse1.0.0` && $(TAR) lfrsgse1.0.0.tar lfrsgse1.0.0 && $(COMPRESS) lfrsgse1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse1.0.0`/lfrsgse1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse1.0.0
214
213
215
214
216 clean:compiler_clean
215 clean:compiler_clean
217 -$(DEL_FILE) $(OBJECTS)
216 -$(DEL_FILE) $(OBJECTS)
218 -$(DEL_FILE) *~ core *.core
217 -$(DEL_FILE) *~ core *.core
219
218
220
219
221 ####### Sub-libraries
220 ####### Sub-libraries
222
221
223 distclean: clean
222 distclean: clean
224 -$(DEL_FILE) $(TARGET)
223 -$(DEL_FILE) $(TARGET)
225 -$(DEL_FILE) Makefile
224 -$(DEL_FILE) Makefile
226
225
227
226
228 check: first
227 check: first
229
228
230 mocclean: compiler_moc_header_clean compiler_moc_source_clean
229 mocclean: compiler_moc_header_clean compiler_moc_source_clean
231
230
232 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
231 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
233
232
234 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
233 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
235 compiler_moc_header_clean:
234 compiler_moc_header_clean:
236 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
235 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
237 moc_mainwindow.cpp: lfrxmlhandler.h \
236 moc_mainwindow.cpp: lfrxmlhandler.h \
238 lfrxmlwriter.h \
237 lfrxmlwriter.h \
239 mainwindowui.h \
238 mainwindowui.h \
240 lfrspectrogram.h \
239 lfrspectrogram.h \
241 lfrxmlparser.h \
240 lfrxmlparser.h \
242 mainwindow.h
241 mainwindow.h
243 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
242 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
244
243
245 moc_mainwindowui.cpp: lfrspectrogram.h \
244 moc_mainwindowui.cpp: lfrspectrogram.h \
246 mainwindowui.h
245 mainwindowui.h
247 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp
246 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp
248
247
249 moc_lfrxmlhandler.cpp: lfrxmlhandler.h
248 moc_lfrxmlhandler.cpp: lfrxmlhandler.h
250 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp
249 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp
251
250
252 moc_lfrxmlwriter.cpp: lfrxmlwriter.h
251 moc_lfrxmlwriter.cpp: lfrxmlwriter.h
253 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp
252 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp
254
253
255 moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h
254 moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h
256 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp
255 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp
257
256
258 moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h
257 moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h
259 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp
258 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp
260
259
261 moc_wfpacket.cpp: ../rmapplugin/wfpacket.h
260 moc_wfpacket.cpp: ../rmapplugin/wfpacket.h
262 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp
261 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp
263
262
264 moc_spectrapacket.cpp: ../rmapplugin/spectrapacket.h
263 moc_spectrapacket.cpp: ../rmapplugin/spectrapacket.h
265 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/spectrapacket.h -o moc_spectrapacket.cpp
264 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/spectrapacket.h -o moc_spectrapacket.cpp
266
265
267 moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h
266 moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h
268 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp
267 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp
269
268
270 moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h
269 moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h
271 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp
270 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp
272
271
273 moc_lfrxmlparser.cpp: lfrxmlparser.h
272 moc_lfrxmlparser.cpp: lfrxmlparser.h
274 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp
273 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp
275
274
276 moc_lfrspectrogram.cpp: lfrspectrogram.h
277 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp
278
279 compiler_rcc_make_all:
275 compiler_rcc_make_all:
280 compiler_rcc_clean:
276 compiler_rcc_clean:
281 compiler_image_collection_make_all: qmake_image_collection.cpp
277 compiler_image_collection_make_all: qmake_image_collection.cpp
282 compiler_image_collection_clean:
278 compiler_image_collection_clean:
283 -$(DEL_FILE) qmake_image_collection.cpp
279 -$(DEL_FILE) qmake_image_collection.cpp
284 compiler_moc_source_make_all:
280 compiler_moc_source_make_all:
285 compiler_moc_source_clean:
281 compiler_moc_source_clean:
286 compiler_uic_make_all:
282 compiler_uic_make_all:
287 compiler_uic_clean:
283 compiler_uic_clean:
288 compiler_yacc_decl_make_all:
284 compiler_yacc_decl_make_all:
289 compiler_yacc_decl_clean:
285 compiler_yacc_decl_clean:
290 compiler_yacc_impl_make_all:
286 compiler_yacc_impl_make_all:
291 compiler_yacc_impl_clean:
287 compiler_yacc_impl_clean:
292 compiler_lex_make_all:
288 compiler_lex_make_all:
293 compiler_lex_clean:
289 compiler_lex_clean:
294 compiler_clean: compiler_moc_header_clean
290 compiler_clean: compiler_moc_header_clean
295
291
296 ####### Compile
292 ####### Compile
297
293
298 main.o: main.cpp mainwindow.h \
294 main.o: main.cpp mainwindow.h \
299 lfrxmlhandler.h \
295 lfrxmlhandler.h \
300 lfrxmlwriter.h \
296 lfrxmlwriter.h \
301 mainwindowui.h \
297 mainwindowui.h \
302 lfrspectrogram.h \
298 lfrspectrogram.h \
303 lfrxmlparser.h
299 lfrxmlparser.h
304 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
300 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
305
301
306 mainwindow.o: mainwindow.cpp mainwindow.h \
302 mainwindow.o: mainwindow.cpp mainwindow.h \
307 lfrxmlhandler.h \
303 lfrxmlhandler.h \
308 lfrxmlwriter.h \
304 lfrxmlwriter.h \
309 mainwindowui.h \
305 mainwindowui.h \
310 lfrspectrogram.h \
306 lfrspectrogram.h \
311 lfrxmlparser.h
307 lfrxmlparser.h
312 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
308 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
313
309
314 mainwindowui.o: mainwindowui.cpp mainwindowui.h \
310 mainwindowui.o: mainwindowui.cpp mainwindowui.h \
315 lfrspectrogram.h
311 lfrspectrogram.h
316 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp
312 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp
317
313
318 lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h
314 lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h
319 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp
315 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp
320
316
321 lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h
317 lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h
322 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp
318 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp
323
319
324 tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h
320 tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h
325 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp
321 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp
326
322
327 tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h
323 tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h
328 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp
324 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp
329
325
330 wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h
326 wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h
331 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp
327 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp
332
328
333 spectrapacket.o: ../rmapplugin/spectrapacket.cpp ../rmapplugin/spectrapacket.h
329 spectrapacket.o: ../rmapplugin/spectrapacket.cpp ../rmapplugin/spectrapacket.h
334 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o spectrapacket.o ../rmapplugin/spectrapacket.cpp
330 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o spectrapacket.o ../rmapplugin/spectrapacket.cpp
335
331
336 qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
332 qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
337 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp
333 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp
338
334
339 hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h
335 hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h
340 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp
336 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp
341
337
342 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h
338 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h
343 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp
339 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp
344
340
345 lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h
346 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp
347
348 moc_mainwindow.o: moc_mainwindow.cpp
341 moc_mainwindow.o: moc_mainwindow.cpp
349 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
342 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
350
343
351 moc_mainwindowui.o: moc_mainwindowui.cpp
344 moc_mainwindowui.o: moc_mainwindowui.cpp
352 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp
345 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp
353
346
354 moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp
347 moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp
355 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp
348 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp
356
349
357 moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp
350 moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp
358 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp
351 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp
359
352
360 moc_tmstatistics.o: moc_tmstatistics.cpp
353 moc_tmstatistics.o: moc_tmstatistics.cpp
361 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp
354 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp
362
355
363 moc_tmpackettoread.o: moc_tmpackettoread.cpp
356 moc_tmpackettoread.o: moc_tmpackettoread.cpp
364 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp
357 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp
365
358
366 moc_wfpacket.o: moc_wfpacket.cpp
359 moc_wfpacket.o: moc_wfpacket.cpp
367 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp
360 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp
368
361
369 moc_spectrapacket.o: moc_spectrapacket.cpp
362 moc_spectrapacket.o: moc_spectrapacket.cpp
370 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_spectrapacket.o moc_spectrapacket.cpp
363 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_spectrapacket.o moc_spectrapacket.cpp
371
364
372 moc_qipdialogbox.o: moc_qipdialogbox.cpp
365 moc_qipdialogbox.o: moc_qipdialogbox.cpp
373 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp
366 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp
374
367
375 moc_hkdisplay.o: moc_hkdisplay.cpp
368 moc_hkdisplay.o: moc_hkdisplay.cpp
376 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp
369 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp
377
370
378 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
371 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
379 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp
372 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp
380
373
381 moc_lfrspectrogram.o: moc_lfrspectrogram.cpp
382 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp
383
384 ####### Install
374 ####### Install
385
375
386 install: FORCE
376 install: FORCE
387
377
388 uninstall: FORCE
378 uninstall: FORCE
389
379
390 FORCE:
380 FORCE:
391
381
@@ -1,56 +1,54
1 #-------------------------------------------------
1 #-------------------------------------------------
2 #
2 #
3 # Project created by QtCreator 2013-05-03T14:05:02
3 # Project created by QtCreator 2013-05-03T14:05:02
4 #
4 #
5 #-------------------------------------------------
5 #-------------------------------------------------
6
6
7 QT += core gui
7 QT += core gui
8 QT += network
8 QT += network
9 QT += xml
9 QT += xml
10
10
11 TARGET = lfrsgse
11 TARGET = lfrsgse
12 TEMPLATE = app
12 TEMPLATE = app
13
13
14 INCLUDEPATH += \
14 INCLUDEPATH += \
15 $${PWD} \
15 $${PWD} \
16 ../common_PLE \
16 ../common_PLE \
17 ../rmapplugin \
17 ../rmapplugin \
18 ../../DEV_PLE/header \
18 ../../DEV_PLE/header \
19 $$[QT_INSTALL_HEADERS]/lppmon/common \
19 $$[QT_INSTALL_HEADERS]/lppmon/common \
20 $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \
20 $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay \
21 $$[QT_INSTALL_HEADERS]/lppmon/parameterdump
21 $$[QT_INSTALL_HEADERS]/lppmon/parameterdump
22
22
23 LIBS += -llppmoncommon -lwfdisplay -lqwt5-qt4 -lparameterdump
23 LIBS += -llppmoncommon -lwfdisplay -lparameterdump
24
24
25 SOURCES += main.cpp\
25 SOURCES += main.cpp\
26 mainwindow.cpp \
26 mainwindow.cpp \
27 mainwindowui.cpp \
27 mainwindowui.cpp \
28 lfrxmlhandler.cpp \
28 lfrxmlhandler.cpp \
29 lfrxmlwriter.cpp \
29 lfrxmlwriter.cpp \
30 ../rmapplugin/tmstatistics.cpp \
30 ../rmapplugin/tmstatistics.cpp \
31 ../rmapplugin/tmpackettoread.cpp \
31 ../rmapplugin/tmpackettoread.cpp \
32 ../rmapplugin/wfpacket.cpp \
32 ../rmapplugin/wfpacket.cpp \
33 ../rmapplugin/spectrapacket.cpp \
33 ../rmapplugin/spectrapacket.cpp \
34 ../common_PLE/qipdialogbox.cpp \
34 ../common_PLE/qipdialogbox.cpp \
35 ../common_PLE/hkdisplay.cpp \
35 ../common_PLE/hkdisplay.cpp \
36 lfrxmlparser.cpp \
36 lfrxmlparser.cpp
37 lfrspectrogram.cpp
38
37
39 HEADERS += mainwindow.h \
38 HEADERS += mainwindow.h \
40 mainwindowui.h \
39 mainwindowui.h \
41 lfrxmlhandler.h \
40 lfrxmlhandler.h \
42 lfrxmlwriter.h \
41 lfrxmlwriter.h \
43 ../rmapplugin/tmstatistics.h \
42 ../rmapplugin/tmstatistics.h \
44 ../rmapplugin/tmpackettoread.h \
43 ../rmapplugin/tmpackettoread.h \
45 ../rmapplugin/wfpacket.h \
44 ../rmapplugin/wfpacket.h \
46 ../rmapplugin/spectrapacket.h \
45 ../rmapplugin/spectrapacket.h \
47 ../common_PLE/qipdialogbox.h \
46 ../common_PLE/qipdialogbox.h \
48 ../common_PLE/hkdisplay.h \
47 ../common_PLE/hkdisplay.h \
49 ../rmapplugin/params.h \
48 ../rmapplugin/params.h \
50 ../../DEV_PLE/header/TC_types.h \
49 ../../DEV_PLE/header/TC_types.h \
51 ../../DEV_PLE/header/ccsds_types.h \
50 ../../DEV_PLE/header/ccsds_types.h \
52 lfrxmlparser.h \
51 lfrxmlparser.h
53 lfrspectrogram.h
54
52
55
53
56
54
@@ -1,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-09-23T12:59:08. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-11T14:18:06. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
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,580 +1,661
1 #include "mainwindow.h"
1 #include "mainwindow.h"
2 #include <iostream>
2 #include <iostream>
3 #include <QNetworkInterface>
3 #include <QNetworkInterface>
4
4
5 MainWindow::MainWindow(QWidget *parent)
5 MainWindow::MainWindow(QWidget *parent)
6 : QMainWindow(parent)
6 : QMainWindow(parent)
7 {
7 {
8 parsingContinue = false;
8 parsingContinue = false;
9 totalOfBytes = 0;
9 totalOfBytes = 0;
10 totalOfPackets = 0;
10 totalOfPackets = 0;
11
11
12 spectraPacketNormalSpectrumF0 = new SpectraPacket(this, 128);
12 spectraPacketNormalSpectrumF0 = new SpectraPacket(this, 128);
13
13
14 //****
14 //****
15 // XML
15 // XML
16 // xml handlers
16 // xml handlers
17 xmlHandler = new LFRXmlHandler();
17 xmlHandler = new LFRXmlHandler();
18 // xml sources
18 // xml sources
19 sourceTC = new QXmlInputSource();
19 sourceTC = new QXmlInputSource();
20 // xml writer
20 // xml writer
21 lfrXmlWriter = new LFRXmlWriter();
21 lfrXmlWriter = new LFRXmlWriter();
22 // setup xml parser for the echo bridge
22 // setup xml parser for the echo bridge
23 lfrXmlParser = new LFRXmlParser();
23 lfrXmlParser = new LFRXmlParser();
24
24
25 UI = new MainWindowUI();
25 UI = new MainWindowUI();
26 readSettings();
26 readSettings();
27 this->UI->serverTMEchoDialogBox->setIP(echoBridgeIP0, echoBridgeIP1, echoBridgeIP2, echoBridgeIP3);
27 this->UI->serverTMEchoDialogBox->setIP(echoBridgeIP0, echoBridgeIP1, echoBridgeIP2, echoBridgeIP3);
28
28
29 lfrXmlParser->generalCCSDSPacketStore = &this->generalCCSDSPacketStore;
29 lfrXmlParser->generalCCSDSPacketStore = &this->generalCCSDSPacketStore;
30
30
31 initSocketStatesList();
31 initSocketStatesList();
32
32
33 this->setCentralWidget(this->UI);
33 this->setCentralWidget(this->UI);
34 //this->setLayout(UI->layout());
34 //this->setLayout(UI->layout());
35
35
36 analyserSGSEServerTC = new QTcpServer();
36 analyserSGSEServerTC = new QTcpServer();
37 analyserSGSEServerTM = new QTcpServer();
37 analyserSGSEServerTM = new QTcpServer();
38
38
39 socketTC = NULL;
39 socketTC = NULL;
40 socketTM = NULL;
40 socketTM = NULL;
41 socketEchoServer = new QTcpSocket();
41 socketEchoServer = new QTcpSocket();
42
42
43 connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts()));
43 connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts()));
44 connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts()));
44 connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts()));
45 connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer()));
45 connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer()));
46 //
46 //
47 connect(this->analyserSGSEServerTC, SIGNAL(newConnection()), this, SLOT(newConnectionOnTCServer()));
47 connect(this->analyserSGSEServerTC, SIGNAL(newConnection()), this, SLOT(newConnectionOnTCServer()));
48 connect(this->analyserSGSEServerTM, SIGNAL(newConnection()), this, SLOT(newConnectionOnTMServer()));
48 connect(this->analyserSGSEServerTM, SIGNAL(newConnection()), this, SLOT(newConnectionOnTMServer()));
49 //
49 //
50 connect(this, SIGNAL(socketTMHasChanged(QTcpSocket*)), this->lfrXmlWriter, SLOT(setSocketTM(QTcpSocket*)));
50 connect(this, SIGNAL(socketTMHasChanged(QTcpSocket*)), this->lfrXmlWriter, SLOT(setSocketTM(QTcpSocket*)));
51 connect(this->UI->button_TCAcknowledgement, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_Acknowledgment()));
51 connect(this->UI->button_TCAcknowledgement, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_Acknowledgment()));
52 connect(this->UI->button_TCRejection, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_rejection()));
52 connect(this->UI->button_TCRejection, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_rejection()));
53 connect(this->UI->button_GSEHK, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_GSE_HK()));
53 connect(this->UI->button_GSEHK, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_GSE_HK()));
54
54
55 // socket echo server
55 // socket echo server
56 connect(this->socketEchoServer, SIGNAL(stateChanged(QAbstractSocket::SocketState)),
56 connect(this->socketEchoServer, SIGNAL(stateChanged(QAbstractSocket::SocketState)),
57 this, SLOT(socket_TMEcho_ServerHasChanged()));
57 this, SLOT(socket_TMEcho_ServerHasChanged()));
58 connect(this->socketEchoServer, SIGNAL(readyRead()),
58 connect(this->socketEchoServer, SIGNAL(readyRead()),
59 this, SLOT(readDataOnSocketEchoServer()));
59 this, SLOT(readDataOnSocketEchoServer()));
60
60
61 // display on console
61 // display on console
62 connect(this->xmlHandler, SIGNAL(displayMessage(QString)),
62 connect(this->xmlHandler, SIGNAL(displayMessage(QString)),
63 this, SLOT(displayOnConsole(QString)));
63 this, SLOT(displayOnConsole(QString)));
64 connect(this->UI->hkDisplay, SIGNAL(displayMessage(QString)),
64 connect(this->UI->hkDisplay, SIGNAL(displayMessage(QString)),
65 this, SLOT(displayOnConsole(QString)));
65 this, SLOT(displayOnConsole(QString)));
66 connect(this->lfrXmlParser, SIGNAL(sendMessage(QString)),
66 connect(this->lfrXmlParser, SIGNAL(sendMessage(QString)),
67 this, SLOT(displayOnConsole(QString)));
67 this, SLOT(displayOnConsole(QString)));
68 //
68 //
69 connect(this->lfrXmlParser, SIGNAL(processPacketStore()),
69 connect(this->lfrXmlParser, SIGNAL(processPacketStore()),
70 this, SLOT(processPacketStore()));
70 this, SLOT(processPacketStore()));
71 //
71 //
72 connect(this->UI->button_resetStatistics, SIGNAL(clicked()),
72 connect(this->UI->button_resetStatistics, SIGNAL(clicked()),
73 this, SLOT(resetStatistics()));
73 this, SLOT(resetStatistics()));
74
74
75 displayNetworkInterfaces();
75 displayNetworkInterfaces();
76
76
77 this->xmlHandler->packetStoreHasChanged(&generalCCSDSPacketStore);
77 this->xmlHandler->packetStoreHasChanged(&generalCCSDSPacketStore);
78 };
78 };
79
79
80 MainWindow::~MainWindow()
80 MainWindow::~MainWindow()
81 {
81 {
82
82
83 }
83 }
84
84
85 void MainWindow::displayNetworkInterfaces()
85 void MainWindow::displayNetworkInterfaces()
86 {
86 {
87 QList<QHostAddress> list = QNetworkInterface::allAddresses();
87 QList<QHostAddress> list = QNetworkInterface::allAddresses();
88 this->displayOnConsole("Network interfaces:");
88 this->displayOnConsole("Network interfaces:");
89 for(int nIter=0; nIter<list.count(); nIter++)
89 for(int nIter=0; nIter<list.count(); nIter++)
90 {
90 {
91 this->UI->displayOnConsole(list[nIter].toString());
91 this->UI->displayOnConsole(list[nIter].toString());
92 }
92 }
93 }
93 }
94
94
95 void MainWindow::listenOnTCTMPorts()
95 void MainWindow::listenOnTCTMPorts()
96 {
96 {
97 QString str;
97 QString str;
98
98
99 //***
99 //***
100 // TC
100 // TC
101 analyserSGSEServerTC->listen(QHostAddress::Any, this->UI->getTCPort());
101 analyserSGSEServerTC->listen(QHostAddress::Any, this->UI->getTCPort());
102 str = analyserSGSEServerTC->errorString();
102 str = analyserSGSEServerTC->errorString();
103 if (!str.isEmpty())
103 if (!str.isEmpty())
104 {
104 {
105 this->displayOnConsole(str);
105 this->displayOnConsole(str);
106 }
106 }
107 this->displayOnConsole("Listening TC on port "
107 this->displayOnConsole("Listening TC on port "
108 + QString::number(this->UI->getTCPort())
108 + QString::number(this->UI->getTCPort())
109 );
109 );
110
110
111 //***
111 //***
112 // TM
112 // TM
113 analyserSGSEServerTM->listen(QHostAddress::Any, this->UI->getTMPort());
113 analyserSGSEServerTM->listen(QHostAddress::Any, this->UI->getTMPort());
114 str = analyserSGSEServerTM->errorString();
114 str = analyserSGSEServerTM->errorString();
115 if (!str.isEmpty())
115 if (!str.isEmpty())
116 {
116 {
117 this->displayOnConsole(str);
117 this->displayOnConsole(str);
118 }
118 }
119 this->displayOnConsole("Listening TM on port "
119 this->displayOnConsole("Listening TM on port "
120 + QString::number(this->UI->getTMPort())
120 + QString::number(this->UI->getTMPort())
121 );
121 );
122 }
122 }
123
123
124 void MainWindow::testTCTMPorts()
124 void MainWindow::testTCTMPorts()
125 {
125 {
126 if (socketTC != NULL)
126 if (socketTC != NULL)
127 {
127 {
128 this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) );
128 this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) );
129 }
129 }
130 else
130 else
131 {
131 {
132 this->displayOnConsole("TC socket *** not tested, (socketTC) is NULL" );
132 this->displayOnConsole("TC socket *** not tested, (socketTC) is NULL" );
133 }
133 }
134 if (socketTM != NULL)
134 if (socketTM != NULL)
135 {
135 {
136 this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) );
136 this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) );
137 }
137 }
138 else
138 else
139 {
139 {
140 this->displayOnConsole("TM socket *** not tested, (socketTM) is NULL" );
140 this->displayOnConsole("TM socket *** not tested, (socketTM) is NULL" );
141 }
141 }
142 }
142 }
143
143
144 void MainWindow::newConnectionOnTCServer()
144 void MainWindow::newConnectionOnTCServer()
145 {
145 {
146 this->displayOnConsole("got new connection on TC port");
146 this->displayOnConsole("got new connection on TC port");
147 socketTC = analyserSGSEServerTC->nextPendingConnection();
147 socketTC = analyserSGSEServerTC->nextPendingConnection();
148 this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) );
148 this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) );
149 connect(this->socketTC, SIGNAL(readyRead()), this, SLOT(readDataOnTCPort()));
149 connect(this->socketTC, SIGNAL(readyRead()), this, SLOT(readDataOnTCPort()));
150 }
150 }
151
151
152 void MainWindow::newConnectionOnTMServer()
152 void MainWindow::newConnectionOnTMServer()
153 {
153 {
154 this->displayOnConsole("got new connection on TM port");
154 this->displayOnConsole("got new connection on TM port");
155 socketTM = analyserSGSEServerTM->nextPendingConnection();
155 socketTM = analyserSGSEServerTM->nextPendingConnection();
156 this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) );
156 this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) );
157 connect(this->socketTM, SIGNAL(readyRead()), this, SLOT(readDataOnTMPort()));
157 connect(this->socketTM, SIGNAL(readyRead()), this, SLOT(readDataOnTMPort()));
158
158
159 emit socketTMHasChanged(this->socketTM);
159 emit socketTMHasChanged(this->socketTM);
160 }
160 }
161
161
162 void MainWindow::readDataOnTCPort()
162 void MainWindow::readDataOnTCPort()
163 {
163 {
164 bool ok;
164 bool ok;
165 int nbBytesAvailable = 0;
165 int nbBytesAvailable = 0;
166
166
167 nbBytesAvailable = socketTC->bytesAvailable();
167 nbBytesAvailable = socketTC->bytesAvailable();
168 buffer = (char *) malloc(nbBytesAvailable);
168 buffer = (char *) malloc(nbBytesAvailable);
169 socketTC->read(buffer, nbBytesAvailable);
169 socketTC->read(buffer, nbBytesAvailable);
170
170
171 this->displayOnConsole("readDataOnTCPort *** "
171 this->displayOnConsole("readDataOnTCPort *** "
172 + QString::number(nbBytesAvailable)
172 + QString::number(nbBytesAvailable)
173 + " read");
173 + " read");
174
174
175 QByteArray xmlData( buffer, nbBytesAvailable);
175 QByteArray xmlData( buffer, nbBytesAvailable);
176
176
177 free(buffer);
177 free(buffer);
178
178
179 sourceTC->setData( xmlData );
179 sourceTC->setData( xmlData );
180
180
181 xmlReader.setContentHandler(xmlHandler);
181 xmlReader.setContentHandler(xmlHandler);
182 xmlReader.setErrorHandler(xmlHandler);
182 xmlReader.setErrorHandler(xmlHandler);
183
183
184 ok = xmlReader.parse(sourceTC);
184 ok = xmlReader.parse(sourceTC);
185 if (!ok) {
185 if (!ok) {
186 std::cout << "Parsing failed." << std::endl;
186 std::cout << "Parsing failed." << std::endl;
187 }
187 }
188 else {
188 else {
189 QStringList names = xmlHandler->names();
189 QStringList names = xmlHandler->names();
190 QList<int> indentations = xmlHandler->indentations();
190 QList<int> indentations = xmlHandler->indentations();
191
191
192 int items = names.count();
192 int items = names.count();
193
193
194 for (int i = 0; i < items; ++i) {
194 for (int i = 0; i < items; ++i) {
195 displayOnConsole(
195 displayOnConsole(
196 names[i]
196 names[i]
197 + " --- identations: "
197 + " --- identations: "
198 + QString::number(indentations[i]));
198 + QString::number(indentations[i]));
199 }
199 }
200 }
200 }
201 }
201 }
202
202
203 void MainWindow::readDataOnTMPort()
203 void MainWindow::readDataOnTMPort()
204 {
204 {
205 this->displayOnConsole("TM data received, begin parsing");
205 this->displayOnConsole("TM data received, begin parsing");
206 }
206 }
207
207
208 void MainWindow::readDataOnSocketEchoServer()
208 void MainWindow::readDataOnSocketEchoServer()
209 {
209 {
210 QString dataString;
210 QString dataString;
211
211
212 dataArray.append(socketEchoServer->readAll());
212 dataArray.append(socketEchoServer->readAll());
213 dataString = QString::fromAscii(dataArray);
213 dataString = QString::fromAscii(dataArray);
214 this->lfrXmlParser->processIncomingStr(dataString);
214 this->lfrXmlParser->processIncomingStr(dataString);
215 dataArray.clear();
215 dataArray.clear();
216 }
216 }
217
217
218 void MainWindow::displayOnConsole(QString message)
218 void MainWindow::displayOnConsole(QString message)
219 {
219 {
220 this->UI->displayOnConsole( message );
220 this->UI->displayOnConsole( message );
221 }
221 }
222
222
223 void MainWindow::initSocketStatesList()
223 void MainWindow::initSocketStatesList()
224 {
224 {
225 socketStates.append("The socket is not connected");
225 socketStates.append("The socket is not connected");
226 socketStates.append("The socket is performing a host name lookup");
226 socketStates.append("The socket is performing a host name lookup");
227 socketStates.append("The socket has started establishing a connection");
227 socketStates.append("The socket has started establishing a connection");
228 socketStates.append("A connection is established");
228 socketStates.append("A connection is established");
229 socketStates.append("The socket is bound to an address and port (for servers)");
229 socketStates.append("The socket is bound to an address and port (for servers)");
230 socketStates.append("The socket is about to close (data may still be waiting to be written)");
230 socketStates.append("The socket is about to close (data may still be waiting to be written)");
231 socketStates.append("For internal use only");
231 socketStates.append("For internal use only");
232 }
232 }
233
233
234 void MainWindow::openEchoServer()
234 void MainWindow::openEchoServer()
235 {
235 {
236 socketEchoServer->connectToHost(this->UI->serverTMEchoDialogBox->getIP(),
236 socketEchoServer->connectToHost(this->UI->serverTMEchoDialogBox->getIP(),
237 this->UI->spinbox_serverTMEchoPort->value());
237 this->UI->spinbox_serverTMEchoPort->value());
238 //socketEchoServer->open();
238 //socketEchoServer->open();
239 }
239 }
240
240
241 void MainWindow::socket_TMEcho_ServerHasChanged()
241 void MainWindow::socket_TMEcho_ServerHasChanged()
242 {
242 {
243 this->displayOnConsole("TM Echo Socket socket *** " + socketStates.at(socketEchoServer->state()) );
243 this->displayOnConsole("TM Echo Socket socket *** " + socketStates.at(socketEchoServer->state()) );
244 }
244 }
245
245
246 void MainWindow::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
246 void MainWindow::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
247 {
247 {
248 unsigned int i = 0;
248 unsigned int i = 0;
249 unsigned int j = 0;
249 unsigned int j = 0;
250 unsigned char *data;
250 unsigned char *data;
251 unsigned char pkt_nr = 0;
251 unsigned char pkt_nr = 0;
252 unsigned int blk_nr = 0;
252 unsigned int blk_nr = 0;
253
253
254 pkt_nr = packet->Value[23]; // PKT_NR
254 pkt_nr = packet->Value[23]; // PKT_NR
255 blk_nr = packet->Value[30] * 256 + packet->Value[31];
255 blk_nr = packet->Value[30] * 256 + packet->Value[31];
256 data = &packet->Value[32]; // start of the first data block;
256 data = &packet->Value[32]; // start of the first data block;
257 j = (pkt_nr-1) * 340;
257 j = (pkt_nr-1) * 340;
258 for ( i=0; i<blk_nr; i++ ){
258 for ( i=0; i<blk_nr; i++ ){
259 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
259 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
260 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
260 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
261 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
261 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
262 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
262 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
263 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
263 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
264 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
264 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
265 }
265 }
266 if (pkt_nr == 7)
266 if (pkt_nr == 7)
267 {
267 {
268 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
268 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
269 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
269 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
270 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
270 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
271 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
271 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
272 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
272 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
273 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
273 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
274 }
274 }
275 }
275 }
276
276
277 void MainWindow::buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
277 void MainWindow::buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
278 {
278 {
279 unsigned int i = 0;
279 unsigned int i = 0;
280 unsigned int j = 0;
280 unsigned int j = 0;
281 unsigned char *data;
281 unsigned char *data;
282 static unsigned char pkt_nr = 1;
282 static unsigned char pkt_nr = 1;
283 unsigned int blk_nr = 0;
283 unsigned int blk_nr = 0;
284
284
285 blk_nr = packet->Value[28] * 256 + packet->Value[29];
285 blk_nr = packet->Value[28] * 256 + packet->Value[29];
286 data = &packet->Value[30]; // start of the first data block;
286 data = &packet->Value[30]; // start of the first data block;
287 j = (pkt_nr-1) * 340;
287 j = (pkt_nr-1) * 340;
288 for ( i=0; i<blk_nr; i++ ){
288 for ( i=0; i<blk_nr; i++ ){
289 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
289 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
290 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
290 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
291 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
291 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
292 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
292 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
293 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
293 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
294 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
294 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
295 }
295 }
296 pkt_nr = pkt_nr + 1;
296 pkt_nr = pkt_nr + 1;
297 if (blk_nr == 8)
297 if (blk_nr == 8)
298 {
298 {
299 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
299 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
300 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
300 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
301 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
301 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
302 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
302 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
303 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
303 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
304 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3,num_page, 5);
304 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
305 pkt_nr = 1;
306 }
307 }
308
309 void MainWindow::buildWFAndDisplay_CWF_F3_light(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page)
310 {
311 unsigned int i = 0;
312 unsigned int j = 0;
313 unsigned char *data;
314 static unsigned char pkt_nr = 1;
315 unsigned int blk_nr = 0;
316
317 blk_nr = packet->Value[28] * 256 + packet->Value[29];
318 data = &packet->Value[30]; // start of the first data block;
319 j = (pkt_nr-1) * 340;
320 for ( i=0; i<blk_nr; i++ ){
321 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) ] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 1]) );
322 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) + 2] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 3]) );
323 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE_CWF3_LIGHT) + 4] << 8) + (data[ (i*BLK_SIZE_CWF3_LIGHT) + 5]) );
324 wfPacket->wf_b1[j + i] = 0;
325 wfPacket->wf_b2[j + i] = 0;
326 wfPacket->wf_b3[j + i] = 0;
327 }
328 pkt_nr = pkt_nr + 1;
329 if (blk_nr == 8)
330 {
331 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0);
332 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1);
333 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2);
334 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3);
335 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4);
336 this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5);
305 pkt_nr = 1;
337 pkt_nr = 1;
306 }
338 }
307 }
339 }
308
340
309 void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket)
341 void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket)
310 {
342 {
311 unsigned int i = 0;
343 unsigned int i = 0;
312 unsigned int j = 0;
344 unsigned int j = 0;
313 unsigned char *data;
345 unsigned char *data;
314 static unsigned char pkt_nr = 1;
346 static unsigned char pkt_nr = 1;
315 unsigned int blk_nr = 0;
347 unsigned int blk_nr = 0;
316
348
317 blk_nr = packet->Value[28] * 256 + packet->Value[29];
349 blk_nr = packet->Value[28] * 256 + packet->Value[29];
318 data = &packet->Value[30]; // start of the first data block;
350 data = &packet->Value[30]; // start of the first data block;
319 j = (pkt_nr-1) * 340;
351 j = (pkt_nr-1) * 340;
320 for ( i=0; i<blk_nr; i++ ){
352 for ( i=0; i<blk_nr; i++ ){
321 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
353 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
322 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
354 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
323 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
355 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
324 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
356 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
325 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
357 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
326 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
358 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
327 }
359 }
328 pkt_nr = pkt_nr + 1;
360 pkt_nr = pkt_nr + 1;
329 if (blk_nr == 8)
361 if (blk_nr == 8)
330 {
362 {
331 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0);
363 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0);
332 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1);
364 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1);
333 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2);
365 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2);
334 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3);
366 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3);
335 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4);
367 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4);
336 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5);
368 this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5);
337 pkt_nr = 1;
369 pkt_nr = 1;
338 }
370 }
339 }
371 }
340
372
341 void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket)
373 void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket)
342 {
374 {
343 unsigned int i = 0;
375 unsigned int i = 0;
344 unsigned int j = 0;
376 unsigned int j = 0;
345 unsigned char *data;
377 unsigned char *data;
378 unsigned char *pData;
346 static unsigned char pkt_nr = 1;
379 static unsigned char pkt_nr = 1;
347 unsigned int blk_nr = 0;
380 unsigned int blk_nr = 0;
348
381
349 blk_nr = packet->Value[28] * 256 + packet->Value[29];
382 blk_nr = packet->Value[28] * 256 + packet->Value[29];
350 data = &packet->Value[30]; // start of the first data block;
383 data = &packet->Value[30]; // start of the first data block;
351 j = (pkt_nr-1) * 340;
384 j = (pkt_nr-1) * 340;
352 for ( i=0; i<blk_nr; i++ ){
385 for ( i=0; i<blk_nr; i++ ){
353 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
386 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
354 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
387 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
388 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
389 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
390 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
391 // wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
392 pData = (unsigned char*) &wfPacket->wf_b3[j + i];
393 pData[0] = data[ (i*BLK_SIZE) + 11];
394 pData[1] = data[ (i*BLK_SIZE) + 10];
395 }
396 pkt_nr = pkt_nr + 1;
397 if (blk_nr == 8)
398 {
399 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
400 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
401 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
402 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3);
403 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4);
404 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5);
405 pkt_nr = 1;
406 }
407 }
408
409 void MainWindow::buildWFAndDisplaySBM1_alt(TMPacketToRead *packet, WFPacket *wfPacket)
410 {
411 unsigned int i = 0;
412 unsigned int j = 0;
413 unsigned char segmentationGroupingFlag;
414 unsigned char *data;
415 static unsigned char pkt_nr = 1;
416 unsigned int blk_nr = 0;
417
418 segmentationGroupingFlag = this->UI->tmStatistics->getSegmentationGroupingFlag( packet );
419 blk_nr = packet->Value[28] * 256 + packet->Value[29];
420 data = &packet->Value[30]; // start of the first data block;
421
422 if (segmentationGroupingFlag == 1) // first packet of the sequence
423 {
424 pkt_nr = 1;
425 }
426 else // continuation packet or last packet
427 {
428 pkt_nr = pkt_nr + 1;
429 }
430 j = (pkt_nr-1) * 340;
431 for ( i=0; i<blk_nr; i++ ){
432 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
433 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
355 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
434 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
356 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
435 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
357 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
436 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
358 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
437 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
359 }
438 }
360 pkt_nr = pkt_nr + 1;
439 if (segmentationGroupingFlag == 2) // last packet of the sequence
361 if (blk_nr == 8)
362 {
440 {
363 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
441 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0);
364 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
442 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1);
365 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
443 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2);
366 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3);
444 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3);
367 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4);
445 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4);
368 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5);
446 this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5);
369 pkt_nr = 1;
447 pkt_nr = 1;
370 }
448 }
371 }
449 }
372
450
373 void MainWindow::buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket)
451 void MainWindow::buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket)
374 {
452 {
375 unsigned int i = 0;
453 unsigned int i = 0;
376 unsigned int j = 0;
454 unsigned int j = 0;
377 unsigned char *data;
455 unsigned char *data;
378 static unsigned char pkt_nr = 1;
456 static unsigned char pkt_nr = 1;
379 unsigned int blk_nr = 0;
457 unsigned int blk_nr = 0;
380
458
381 blk_nr = packet->Value[28] * 256 + packet->Value[29];
459 blk_nr = packet->Value[28] * 256 + packet->Value[29];
382 data = &packet->Value[30]; // start of the first data block;
460 data = &packet->Value[30]; // start of the first data block;
383 j = (pkt_nr-1) * 340;
461 j = (pkt_nr-1) * 340;
384 for ( i=0; i<blk_nr; i++ ){
462 for ( i=0; i<blk_nr; i++ ){
385 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
463 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
386 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
464 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
387 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
465 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
388 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
466 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
389 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
467 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
390 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
468 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
391 }
469 }
392 pkt_nr = pkt_nr + 1;
470 pkt_nr = pkt_nr + 1;
393 if (blk_nr == 8)
471 if (blk_nr == 8)
394 {
472 {
395 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_v, 0);
473 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_v, 0);
396 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e1, 1);
474 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e1, 1);
397 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e2, 2);
475 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e2, 2);
398 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b1, 3);
476 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b1, 3);
399 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b2, 4);
477 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b2, 4);
400 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b3, 5);
478 this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b3, 5);
401 pkt_nr = 1;
479 pkt_nr = 1;
402 }
480 }
403 }
481 }
404
482
405 void MainWindow::buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket)
483 void MainWindow::buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket)
406 {
484 {
407 unsigned int i = 0;
485 unsigned int i = 0;
408 unsigned int j = 0;
486 unsigned int j = 0;
409 unsigned char *data;
487 unsigned char *data;
410 char *aux;
488 char *aux;
411 unsigned char nrASM;
489 unsigned char nrASM;
412 unsigned int blkNR;
490 unsigned int blkNR;
413
491
414 nrASM = packet->Value[23];
492 nrASM = packet->Value[23];
415 blkNR = packet->Value[30] * 256 + packet->Value[31];
493 blkNR = packet->Value[30] * 256 + packet->Value[31];
416 data = &packet->Value[32]; // start of the first data block;
494 data = &packet->Value[32]; // start of the first data block;
417
495
418 j = (nrASM-1) * blkNR;
496 j = (nrASM-1) * blkNR;
419 for ( i=0; i<blkNR; i++ ){
497 for ( i=0; i<blkNR; i++ ){
420 aux = (char*) &spectraPacket->s11[j + i];
498 aux = (char*) &spectraPacket->s11[j + i];
421 aux[3] = data[ (i * 50 + 2*0) ];
499 aux[3] = data[ (i * 50 + 2*0) ];
422 aux[2] = data[ (i * 50 + 2*0) + 1];
500 aux[2] = data[ (i * 50 + 2*0) + 1];
423 aux = (char*) &spectraPacket->s22[j + i];
501 aux = (char*) &spectraPacket->s22[j + i];
424 aux[3] = data[ (i * 50 + 2*9) ];
502 aux[3] = data[ (i * 50 + 2*9) ];
425 aux[2] = data[ (i * 50 + 2*9) + 1];
503 aux[2] = data[ (i * 50 + 2*9) + 1];
426 aux = (char*) &spectraPacket->s33[j + i];
504 aux = (char*) &spectraPacket->s33[j + i];
427 aux[3] = data[ (i * 50 + 2*16) ];
505 aux[3] = data[ (i * 50 + 2*16) ];
428 aux[2] = data[ (i * 50 + 2*16) + 1];
506 aux[2] = data[ (i * 50 + 2*16) + 1];
429 aux = (char*) &spectraPacket->s44[j + i];
507 aux = (char*) &spectraPacket->s44[j + i];
430 aux[3] = data[ (i * 50 + 2*21) ];
508 aux[3] = data[ (i * 50 + 2*21) ];
431 aux[2] = data[ (i * 50 + 2*21) + 1];
509 aux[2] = data[ (i * 50 + 2*21) + 1];
432 aux = (char*) &spectraPacket->s55[j + i];
510 aux = (char*) &spectraPacket->s55[j + i];
433 aux[3] = data[ (i * 50 + 2*24) ];
511 aux[3] = data[ (i * 50 + 2*24) ];
434 aux[2] = data[ (i * 50 + 2*24) + 1];
512 aux[2] = data[ (i * 50 + 2*24) + 1];
435 }
513 }
436 if (nrASM == 2)
514 if (nrASM == 2)
437 {
515 {
438 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s11, 0);
516 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s11, 0);
439 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s22, 1);
517 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s22, 1);
440 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s33, 2);
518 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s33, 2);
441 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s44, 3);
519 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s44, 3);
442 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s55, 4);
520 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s55, 4);
443 }
521 }
444 }
522 }
445
523
446 void MainWindow::resetStatistics()
524 void MainWindow::resetStatistics()
447 {
525 {
448 totalOfBytes = 0;
526 totalOfBytes = 0;
449 totalOfPackets = 0;
527 totalOfPackets = 0;
450 this->UI->totalOfBytesHasChanged(totalOfBytes);
528 this->UI->totalOfBytesHasChanged(totalOfBytes);
451 this->UI->totalOfPacketsHasChanged(totalOfPackets);
529 this->UI->totalOfPacketsHasChanged(totalOfPackets);
452 }
530 }
453
531
454 //******************
532 //******************
455 // packet processing
533 // packet processing
456
534
457 void MainWindow::processPacketStore()
535 void MainWindow::processPacketStore()
458 {
536 {
459 TMPacketToRead *packet;
537 TMPacketToRead *packet;
460 while(!generalCCSDSPacketStore.isEmpty())
538 while(!generalCCSDSPacketStore.isEmpty())
461 {
539 {
462 packet = generalCCSDSPacketStore.takeFirst();
540 packet = generalCCSDSPacketStore.takeFirst();
463 processIncomingPacket(packet);
541 processIncomingPacket(packet);
464 delete(packet);
542 delete(packet);
465 }
543 }
466 }
544 }
467
545
468 void MainWindow::processIncomingPacket(TMPacketToRead *packet)
546 void MainWindow::processIncomingPacket(TMPacketToRead *packet)
469 {
547 {
470 totalOfBytes = totalOfBytes + packet->size;
548 totalOfBytes = totalOfBytes + packet->size;
471 totalOfPackets = totalOfPackets + 1;
549 totalOfPackets = totalOfPackets + 1;
472 this->UI->totalOfBytesHasChanged(totalOfBytes);
550 this->UI->totalOfBytesHasChanged(totalOfBytes);
473 this->UI->totalOfPacketsHasChanged(totalOfPackets);
551 this->UI->totalOfPacketsHasChanged(totalOfPackets);
474 preProcessPacket(packet);
552 preProcessPacket(packet);
475 }
553 }
476
554
477 void MainWindow::preProcessPacket(TMPacketToRead *packet)
555 void MainWindow::preProcessPacket(TMPacketToRead *packet)
478 {
556 {
479 unsigned char pid = 0;
557 unsigned char pid = 0;
480 unsigned char cat = 0;
558 unsigned char cat = 0;
481 unsigned char typ = 0;
559 unsigned char typ = 0;
482 unsigned char sub = 0;
560 unsigned char sub = 0;
483 unsigned int sid = 0;
561 unsigned int sid = 0;
484 unsigned int length = 0;
562 unsigned int length = 0;
485 unsigned int coarse_t = 0;
563 unsigned int coarse_t = 0;
486 unsigned int fine_t = 0;
564 unsigned int fine_t = 0;
487
565
488 //*********************************
566 //*********************************
489 // get the parameters of the packet
567 // get the parameters of the packet
490 pid = this->UI->tmStatistics->getPID( packet );
568 pid = this->UI->tmStatistics->getPID( packet );
491 cat = this->UI->tmStatistics->getCAT( packet );
569 cat = this->UI->tmStatistics->getCAT( packet );
492 typ = this->UI->tmStatistics->getTYPE( packet );
570 typ = this->UI->tmStatistics->getTYPE( packet );
493 sub = this->UI->tmStatistics->getSUBTYPE( packet );
571 sub = this->UI->tmStatistics->getSUBTYPE( packet );
494 length = this->UI->tmStatistics->getLENGTH( packet );
572 length = this->UI->tmStatistics->getLENGTH( packet );
495 coarse_t = this->UI->tmStatistics->getCoarseTime( packet );
573 coarse_t = this->UI->tmStatistics->getCoarseTime( packet );
496 fine_t = this->UI->tmStatistics->getFineTime( packet );
574 fine_t = this->UI->tmStatistics->getFineTime( packet );
497 sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub );
575 sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub );
498
576
499 this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
577 this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
500
578
501 // compare length in the packet with the size of the packet
579 // compare length in the packet with the size of the packet
502 if ( (length + 1 + 10) != (packet->size))
580 if ( (length + 1 + 10) != (packet->size))
503 {
581 {
504 displayOnConsole("reception of " + QString::number(packet->size)
582 displayOnConsole("reception of " + QString::number(packet->size)
505 + " bytes instead of " + QString::number(length + 1 + 10));
583 + " bytes instead of " + QString::number(length + 1 + 10));
506 }
584 }
507
585
508 //***************************************************
586 //***************************************************
509 // if the packet is an HK packet, display its content
587 // if the packet is an HK packet, display its content
510 if ( (pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) )
588 if ( (pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
589 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) )
511 {
590 {
512 this->UI->hkDisplay->displayPacket(packet);
591 this->UI->hkDisplay->displayPacket(packet);
513 }
592 }
514
593
515 //**************************************************************
594 //**************************************************************
516 // if the packet is a parameter dump packet, display its content
595 // if the packet is a parameter dump packet, display its content
517 if ( (pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) )
596 if ( (pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
597 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) )
518 {
598 {
519 this->UI->parameterDump->updateParameterDump(packet);
599 this->UI->parameterDump->updateParameterDump(packet);
520 }
600 }
521
601
522 //****************************************
602 //****************************************
523 // if the packet is a waveform, display it
603 // if the packet is a waveform, display it
524 if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) )
604 if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) )
525 {
605 {
526 sid = packet->Value[20]; // SID
606 //sid = packet->Value[20]; // SID
527 switch (sid){
607 switch (sid){
528 case SID_NORMAL_SWF_F0:
608 case SID_NORMAL_SWF_F0:
529 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
609 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
530 break;
610 break;
531 case SID_NORMAL_SWF_F1:
611 case SID_NORMAL_SWF_F1:
532 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
612 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
533 break;
613 break;
534 case SID_NORMAL_SWF_F2:
614 case SID_NORMAL_SWF_F2:
535 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
615 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
536 break;
616 break;
537 case SID_NORMAL_CWF_F3:
617 case SID_NORMAL_CWF_F3:
538 buildWFAndDisplay_CWF_F3(packet, &wfPacketNormal[3], 3);
618 //buildWFAndDisplay_CWF_F3(packet, &wfPacketNormal[3], 3);
619 buildWFAndDisplay_CWF_F3_light(packet, &wfPacketNormal[3], 3);
539 break;
620 break;
540 case SID_BURST_CWF_F2:
621 case SID_BURST_CWF_F2:
541 buildWFAndDisplayBurst(packet, &wfPacketBurst);
622 buildWFAndDisplayBurst(packet, &wfPacketBurst);
542 break;
623 break;
543 case SID_SBM1_CWF_F1:
624 case SID_SBM1_CWF_F1:
544 buildWFAndDisplaySBM1(packet, &wfPacketSBM1);
625 buildWFAndDisplaySBM1_alt(packet, &wfPacketSBM1);
545 break;
626 break;
546 case SID_SBM2_CWF_F2:
627 case SID_SBM2_CWF_F2:
547 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
628 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
548 break;
629 break;
549 case SID_NORMAL_ASM_F0:
630 case SID_NORMAL_ASM_F0:
550 buildSpectrumAndDisplayNORM_F0(packet, spectraPacketNormalSpectrumF0);
631 buildSpectrumAndDisplayNORM_F0(packet, spectraPacketNormalSpectrumF0);
551 break;
632 break;
552 }
633 }
553 }
634 }
554 }
635 }
555
636
556 //******************
637 //******************
557 // general functions
638 // general functions
558
639
559 void MainWindow::readSettings()
640 void MainWindow::readSettings()
560 {
641 {
561 QSettings settings("lpp", "lfrsgse");
642 QSettings settings("lpp", "lfrsgse");
562 echoBridgeIP0 = (unsigned char) settings.value("echoBridgeIP0", 127).toInt();
643 echoBridgeIP0 = (unsigned char) settings.value("echoBridgeIP0", 127).toInt();
563 echoBridgeIP1 = (unsigned char) settings.value("echoBridgeIP1", 0).toInt();
644 echoBridgeIP1 = (unsigned char) settings.value("echoBridgeIP1", 0).toInt();
564 echoBridgeIP2 = (unsigned char) settings.value("echoBridgeIP2", 0).toInt();
645 echoBridgeIP2 = (unsigned char) settings.value("echoBridgeIP2", 0).toInt();
565 echoBridgeIP3 = (unsigned char) settings.value("echoBridgeIP3", 1).toInt();
646 echoBridgeIP3 = (unsigned char) settings.value("echoBridgeIP3", 1).toInt();
566 }
647 }
567
648
568 void MainWindow::writeSettings()
649 void MainWindow::writeSettings()
569 {
650 {
570 QSettings settings("lpp", "lfrsgse");
651 QSettings settings("lpp", "lfrsgse");
571 settings.setValue("echoBridgeIP0", this->UI->serverTMEchoDialogBox->get_addressPart1());
652 settings.setValue("echoBridgeIP0", this->UI->serverTMEchoDialogBox->get_addressPart1());
572 settings.setValue("echoBridgeIP1", this->UI->serverTMEchoDialogBox->get_addressPart2());
653 settings.setValue("echoBridgeIP1", this->UI->serverTMEchoDialogBox->get_addressPart2());
573 settings.setValue("echoBridgeIP2", this->UI->serverTMEchoDialogBox->get_addressPart3());
654 settings.setValue("echoBridgeIP2", this->UI->serverTMEchoDialogBox->get_addressPart3());
574 settings.setValue("echoBridgeIP3", this->UI->serverTMEchoDialogBox->get_addressPart4());
655 settings.setValue("echoBridgeIP3", this->UI->serverTMEchoDialogBox->get_addressPart4());
575 }
656 }
576
657
577 void MainWindow::closeEvent(QCloseEvent *)
658 void MainWindow::closeEvent(QCloseEvent *)
578 {
659 {
579 writeSettings();
660 writeSettings();
580 }
661 }
@@ -1,110 +1,112
1 #ifndef MAINWINDOW_H
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
2 #define MAINWINDOW_H
3
3
4 #include <QTcpServer>
4 #include <QTcpServer>
5 #include <QTcpSocket>
5 #include <QTcpSocket>
6 #include <QXmlSimpleReader>
6 #include <QXmlSimpleReader>
7 #include <QSettings>
7 #include <QSettings>
8 #include <QMainWindow>
8 #include <QMainWindow>
9
9
10 #include <lfrxmlhandler.h>
10 #include <lfrxmlhandler.h>
11 #include <lfrxmlwriter.h>
11 #include <lfrxmlwriter.h>
12 #include <mainwindowui.h>
12 #include <mainwindowui.h>
13 #include "tmpackettoread.h"
13 #include "tmpackettoread.h"
14 #include "wfpacket.h"
14 #include "wfpacket.h"
15 #include "lfrxmlparser.h"
15 #include "lfrxmlparser.h"
16 #include <spectrapacket.h>
16 #include <spectrapacket.h>
17
17
18 class MainWindow : public QMainWindow
18 class MainWindow : public QMainWindow
19 {
19 {
20 Q_OBJECT
20 Q_OBJECT
21
21
22 public:
22 public:
23 MainWindow(QWidget *parent = 0);
23 MainWindow(QWidget *parent = 0);
24 ~MainWindow();
24 ~MainWindow();
25
25
26 void displayNetworkInterfaces();
26 void displayNetworkInterfaces();
27 void initSocketStatesList();
27 void initSocketStatesList();
28 //
28 //
29 void preProcessPacket(TMPacketToRead *packet);
29 void preProcessPacket(TMPacketToRead *packet);
30 unsigned char getPID(TMPacketToRead *packet);
30 unsigned char getPID(TMPacketToRead *packet);
31 unsigned char getCAT(TMPacketToRead *packet);
31 unsigned char getCAT(TMPacketToRead *packet);
32 unsigned char getTYPE(TMPacketToRead *packet);
32 unsigned char getTYPE(TMPacketToRead *packet);
33 unsigned char getSUBTYPE(TMPacketToRead *packet);
33 unsigned char getSUBTYPE(TMPacketToRead *packet);
34 unsigned int getLENGTH(TMPacketToRead *packet);
34 unsigned int getLENGTH(TMPacketToRead *packet);
35 unsigned int getCoarseTime(TMPacketToRead *packet);
35 unsigned int getCoarseTime(TMPacketToRead *packet);
36 unsigned int getFineTime(TMPacketToRead *packet);
36 unsigned int getFineTime(TMPacketToRead *packet);
37 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
37 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
38 //
38 //
39 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
39 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
40 void buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
40 void buildWFAndDisplay_CWF_F3(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
41 void buildWFAndDisplay_CWF_F3_light(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
41 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
42 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
42 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
43 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
44 void buildWFAndDisplaySBM1_alt(TMPacketToRead *packet, WFPacket *wfPacket);
43 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
45 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
44 void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket);
46 void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket);
45
47
46 protected:
48 protected:
47 void closeEvent(QCloseEvent *);
49 void closeEvent(QCloseEvent *);
48
50
49 private:
51 private:
50 void readSettings();
52 void readSettings();
51 void writeSettings();
53 void writeSettings();
52 unsigned char echoBridgeIP0;
54 unsigned char echoBridgeIP0;
53 unsigned char echoBridgeIP1;
55 unsigned char echoBridgeIP1;
54 unsigned char echoBridgeIP2;
56 unsigned char echoBridgeIP2;
55 unsigned char echoBridgeIP3;
57 unsigned char echoBridgeIP3;
56
58
57 QByteArray dataArray;
59 QByteArray dataArray;
58
60
59 QList<TMPacketToRead*> generalCCSDSPacketStore;
61 QList<TMPacketToRead*> generalCCSDSPacketStore;
60
62
61 QTcpServer *analyserSGSEServerTC;
63 QTcpServer *analyserSGSEServerTC;
62 QTcpServer *analyserSGSEServerTM;
64 QTcpServer *analyserSGSEServerTM;
63 QTcpSocket *socketTC;
65 QTcpSocket *socketTC;
64 QTcpSocket *socketTM;
66 QTcpSocket *socketTM;
65 QTcpSocket *socketEchoServer;
67 QTcpSocket *socketEchoServer;
66
68
67 unsigned int totalOfBytes;
69 unsigned int totalOfBytes;
68 unsigned int totalOfPackets;
70 unsigned int totalOfPackets;
69
71
70 QXmlSimpleReader xmlReader;
72 QXmlSimpleReader xmlReader;
71 QXmlInputSource *sourceTC;
73 QXmlInputSource *sourceTC;
72 LFRXmlHandler *xmlHandler;
74 LFRXmlHandler *xmlHandler;
73 LFRXmlParser *lfrXmlParser;
75 LFRXmlParser *lfrXmlParser;
74
76
75 QList<QString> socketStates;
77 QList<QString> socketStates;
76
78
77 char *buffer;
79 char *buffer;
78
80
79 MainWindowUI *UI;
81 MainWindowUI *UI;
80
82
81 LFRXmlWriter *lfrXmlWriter;
83 LFRXmlWriter *lfrXmlWriter;
82
84
83 WFPacket wfPacketNormal[4];
85 WFPacket wfPacketNormal[4];
84 WFPacket wfPacketBurst;
86 WFPacket wfPacketBurst;
85 WFPacket wfPacketSBM1;
87 WFPacket wfPacketSBM1;
86 WFPacket wfPacketSBM2;
88 WFPacket wfPacketSBM2;
87 SpectraPacket *spectraPacketNormalSpectrumF0;
89 SpectraPacket *spectraPacketNormalSpectrumF0;
88
90
89 bool parsingContinue;
91 bool parsingContinue;
90
92
91 signals:
93 signals:
92 void socketTMHasChanged(QTcpSocket *socket);
94 void socketTMHasChanged(QTcpSocket *socket);
93
95
94 public slots:
96 public slots:
95 void displayOnConsole(QString message);
97 void displayOnConsole(QString message);
96 void listenOnTCTMPorts();
98 void listenOnTCTMPorts();
97 void testTCTMPorts();
99 void testTCTMPorts();
98 void newConnectionOnTCServer();
100 void newConnectionOnTCServer();
99 void newConnectionOnTMServer();
101 void newConnectionOnTMServer();
100 void readDataOnTCPort();
102 void readDataOnTCPort();
101 void readDataOnTMPort();
103 void readDataOnTMPort();
102 void readDataOnSocketEchoServer();
104 void readDataOnSocketEchoServer();
103 void openEchoServer();
105 void openEchoServer();
104 void socket_TMEcho_ServerHasChanged();
106 void socket_TMEcho_ServerHasChanged();
105 void processIncomingPacket(TMPacketToRead *packet);
107 void processIncomingPacket(TMPacketToRead *packet);
106 void resetStatistics();
108 void resetStatistics();
107 void processPacketStore();
109 void processPacketStore();
108 };
110 };
109
111
110 #endif // MAINWINDOW_H
112 #endif // MAINWINDOW_H
@@ -1,172 +1,171
1 #include "mainwindowui.h"
1 #include "mainwindowui.h"
2
2
3 MainWindowUI::MainWindowUI(QWidget *parent) :
3 MainWindowUI::MainWindowUI(QWidget *parent) :
4 QWidget(parent)
4 QWidget(parent)
5 {
5 {
6 label_serverTMEcho = new QLabel(tr("TM Echo Server address"));
6 label_serverTMEcho = new QLabel(tr("TM Echo Server address"));
7 label_serverTMEchoPort = new QLabel(tr("TM Echo Server Port"));
7 label_serverTMEchoPort = new QLabel(tr("TM Echo Server Port"));
8 label_TMServerPort = new QLabel(tr("TM Server Port:"));
8 label_TMServerPort = new QLabel(tr("TM Server Port:"));
9 label_TCServerPort = new QLabel(tr("TC Server Port:"));
9 label_TCServerPort = new QLabel(tr("TC Server Port:"));
10 label_currentTCTMServer = new QLabel(tr("Current IP address:"));
10 label_currentTCTMServer = new QLabel(tr("Current IP address:"));
11 label_currentTCTMServerIP = new QLabel(tr("-"));
11 label_currentTCTMServerIP = new QLabel(tr("-"));
12 label_totalOfBytes = new QLabel(tr("Received Bytes: -"));
12 label_totalOfBytes = new QLabel(tr("Received Bytes: -"));
13 label_totalOfPackets = new QLabel(tr("Received Packets: -"));
13 label_totalOfPackets = new QLabel(tr("Received Packets: -"));
14
14
15 console = new QTextEdit();
15 console = new QTextEdit();
16
16
17 spwTabWidget = new QTabWidget();
17 spwTabWidget = new QTabWidget();
18 spwTabWidgetPage0 = new QWidget();
18 spwTabWidgetPage0 = new QWidget();
19 spwTabWidgetPage1 = new QWidget();
19 spwTabWidgetPage1 = new QWidget();
20 spwTabWidgetPage2 = new QWidget();
20 spwTabWidgetPage2 = new QWidget();
21 spwTabWidgetPage3 = new QWidget();
21 spwTabWidgetPage3 = new QWidget();
22 spwTabWidgetPage4 = new QWidget();
22 spwTabWidgetPage4 = new QWidget();
23 spwTabWidgetPage5 = new QWidget(); // WFRM BURST
23 spwTabWidgetPage5 = new QWidget(); // WFRM BURST
24 spwTabWidgetPage6 = new QWidget(); // WFRM SBM1
24 spwTabWidgetPage6 = new QWidget(); // WFRM SBM1
25 spwTabWidgetPage7 = new QWidget(); // WFRM SBM2
25 spwTabWidgetPage7 = new QWidget(); // WFRM SBM2
26
26
27 tmStatistics = new TMStatistics;
27 tmStatistics = new TMStatistics;
28
28
29 wfDisplay = new WFDisplay();
29 wfDisplay = new WFDisplay();
30 wfPageBurst = new WFPage();
30 wfPageBurst = new WFPage();
31 wfPageSBM1 = new WFPage();
31 wfPageSBM1 = new WFPage();
32 wfPageSBM2 = new WFPage();
32 wfPageSBM2 = new WFPage();
33 pageSpectraNORM = new PageSpectra();
33 pageSpectraNORM = new PageSpectra();
34 wfPageBurst->pageTitle = "BURST_CWF_F2";
34 wfPageBurst->pageTitle = "BURST_CWF_F2";
35 wfPageSBM1->pageTitle = "SBM1_CWF_F1";
35 wfPageSBM1->pageTitle = "SBM1_CWF_F1";
36 wfPageSBM2->pageTitle = "SBM2_CWF_F2";
36 wfPageSBM2->pageTitle = "SBM2_CWF_F2";
37 pageSpectraNORM->pageTitle = "ASM f0";
37 pageSpectraNORM->pageTitle = "ASM f0";
38 hkDisplay = new HKDisplay();
38 hkDisplay = new HKDisplay();
39 lfrSpectrogam = new LFRSpectrogram();
40
39
41 spinbox_TMServerPort = new QSpinBox();
40 spinbox_TMServerPort = new QSpinBox();
42 spinbox_TCServerPort = new QSpinBox();
41 spinbox_TCServerPort = new QSpinBox();
43 spinbox_serverTMEchoPort = new QSpinBox();
42 spinbox_serverTMEchoPort = new QSpinBox();
44 spinbox_TMServerPort->setRange(59000, 65535);
43 spinbox_TMServerPort->setRange(59000, 65535);
45 spinbox_TCServerPort->setRange(59001, 65535);
44 spinbox_TCServerPort->setRange(59001, 65535);
46 spinbox_serverTMEchoPort->setRange(59002, 65535);
45 spinbox_serverTMEchoPort->setRange(59002, 65535);
47
46
48 button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports"));
47 button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports"));
49 button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports"));
48 button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports"));
50 button_openSocketEchoServer = new QPushButton(tr("Open Echo Server"));
49 button_openSocketEchoServer = new QPushButton(tr("Open Echo Server"));
51 button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement"));
50 button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement"));
52 button_TCRejection = new QPushButton(tr("send TC rejection"));
51 button_TCRejection = new QPushButton(tr("send TC rejection"));
53 button_GSEHK = new QPushButton(tr("send GSE HK"));
52 button_GSEHK = new QPushButton(tr("send GSE HK"));
54 button_clearConsole = new QPushButton(tr("Clear console"));
53 button_clearConsole = new QPushButton(tr("Clear console"));
55 button_resetStatistics = new QPushButton(tr("Reset statistics"));
54 button_resetStatistics = new QPushButton(tr("Reset statistics"));
56
55
57 serverTMEchoDialogBox = new QIPDialogBox();
56 serverTMEchoDialogBox = new QIPDialogBox();
58 serverTMEchoDialogBox->setIP(127, 0, 0, 1);
57 serverTMEchoDialogBox->setIP(127, 0, 0, 1);
59
58
60 groupbox_TMEcho = new QGroupBox(tr("TM Echo Server"));
59 groupbox_TMEcho = new QGroupBox(tr("TM Echo Server"));
61 groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers"));
60 groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers"));
62 groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester"));
61 groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester"));
63
62
64 layout_TMEcho = new QVBoxLayout();
63 layout_TMEcho = new QVBoxLayout();
65 layout_overallLayout = new QVBoxLayout();
64 layout_overallLayout = new QVBoxLayout();
66 layout_ports = new QGridLayout();
65 layout_ports = new QGridLayout();
67 layout_TMToForeignGSETester = new QVBoxLayout();
66 layout_TMToForeignGSETester = new QVBoxLayout();
68 mainLayout = new QGridLayout();
67 mainLayout = new QGridLayout();
69
68
70 parameterDump = new ParameterDump();
69 parameterDump = new ParameterDump();
71
70
72 layout_TMEcho->addWidget(label_serverTMEcho);
71 layout_TMEcho->addWidget(label_serverTMEcho);
73 layout_TMEcho->addWidget(serverTMEchoDialogBox);
72 layout_TMEcho->addWidget(serverTMEchoDialogBox);
74 layout_TMEcho->addWidget(label_serverTMEchoPort);
73 layout_TMEcho->addWidget(label_serverTMEchoPort);
75 layout_TMEcho->addWidget(spinbox_serverTMEchoPort);
74 layout_TMEcho->addWidget(spinbox_serverTMEchoPort);
76 layout_TMEcho->addWidget(button_openSocketEchoServer);
75 layout_TMEcho->addWidget(button_openSocketEchoServer);
77 layout_TMEcho->addWidget(label_totalOfPackets);
76 layout_TMEcho->addWidget(label_totalOfPackets);
78 layout_TMEcho->addWidget(label_totalOfBytes);
77 layout_TMEcho->addWidget(label_totalOfBytes);
79 layout_TMEcho->addWidget(button_resetStatistics);
78 layout_TMEcho->addWidget(button_resetStatistics);
80 groupbox_TMEcho->setLayout(layout_TMEcho);
79 groupbox_TMEcho->setLayout(layout_TMEcho);
81
80
82 layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1);
81 layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1);
83 layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1);
82 layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1);
84 layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1);
83 layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1);
85 layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1);
84 layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1);
86 layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2);
85 layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2);
87 layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2);
86 layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2);
88 groupbox_ports->setLayout(layout_ports);
87 groupbox_ports->setLayout(layout_ports);
89
88
90 layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement);
89 layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement);
91 layout_TMToForeignGSETester->addWidget(button_TCRejection);
90 layout_TMToForeignGSETester->addWidget(button_TCRejection);
92 layout_TMToForeignGSETester->addWidget(button_GSEHK);
91 layout_TMToForeignGSETester->addWidget(button_GSEHK);
93 groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester);
92 groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester);
94
93
95 mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1);
94 mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1);
96 mainLayout->addWidget(button_clearConsole, 1, 0, 1, 1);
95 mainLayout->addWidget(button_clearConsole, 1, 0, 1, 1);
97 mainLayout->addWidget(console, 0, 1, 2, 1);
96 mainLayout->addWidget(console, 0, 1, 2, 1);
98 mainLayout->addWidget(groupbox_ports, 2, 0, 1, 1);
97 mainLayout->addWidget(groupbox_ports, 2, 0, 1, 1);
99 mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 1, 1, 1);
98 mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 1, 1, 1);
100 mainLayout->setColumnStretch(2, 1);
99 mainLayout->setColumnStretch(2, 1);
101 mainLayout->setRowStretch(3, 1);
100 mainLayout->setRowStretch(3, 1);
102
101
103 spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection"));
102 spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection"));
104 spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics"));
103 spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics"));
105 spwTabWidget->addTab(spwTabWidgetPage3, tr("HK"));
104 spwTabWidget->addTab(spwTabWidgetPage3, tr("HK"));
106 spwTabWidget->addTab(parameterDump, tr("DUMP"));
105 spwTabWidget->addTab(parameterDump, tr("DUMP"));
107 spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM"));
106 spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM"));
108 spwTabWidget->addTab(pageSpectraNORM, tr("ASM f0"));
107 spwTabWidget->addTab(pageSpectraNORM, tr("ASM f0"));
109 spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST"));
108 spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST"));
110 spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1"));
109 spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1"));
111 spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2"));
110 spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2"));
112 //spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms"));
111 //spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms"));
113
112
114 spwTabWidgetPage0->setLayout(mainLayout);
113 spwTabWidgetPage0->setLayout(mainLayout);
115 spwTabWidgetPage1->setLayout(tmStatistics->layout());
114 spwTabWidgetPage1->setLayout(tmStatistics->layout());
116 spwTabWidgetPage2->setLayout(wfDisplay->layout());
115 spwTabWidgetPage2->setLayout(wfDisplay->layout());
117 spwTabWidgetPage3->setLayout(hkDisplay->layout());
116 spwTabWidgetPage3->setLayout(hkDisplay->layout());
118 //spwTabWidgetPage4->setLayout(lfrSpectrogam->layout());
117 //spwTabWidgetPage4->setLayout(lfrSpectrogam->layout());
119 //spwTabWidgetPage5->setLayout(wfPageBurst->layout());
118 //spwTabWidgetPage5->setLayout(wfPageBurst->layout());
120 //spwTabWidgetPage6->setLayout(wfPageSBM1->layout());
119 //spwTabWidgetPage6->setLayout(wfPageSBM1->layout());
121 //spwTabWidgetPage7->setLayout(wfPageSBM2->layout());
120 //spwTabWidgetPage7->setLayout(wfPageSBM2->layout());
122
121
123 layout_overallLayout->addWidget(spwTabWidget);
122 layout_overallLayout->addWidget(spwTabWidget);
124
123
125 this->setLayout(layout_overallLayout);
124 this->setLayout(layout_overallLayout);
126
125
127 connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole()));
126 connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole()));
128 }
127 }
129
128
130 QString MainWindowUI::getTMEchoServerAddress()
129 QString MainWindowUI::getTMEchoServerAddress()
131 {
130 {
132 return(serverTMEchoDialogBox->getIP());
131 return(serverTMEchoDialogBox->getIP());
133 }
132 }
134
133
135 void MainWindowUI::setTCTMServerAddressIP(QString address)
134 void MainWindowUI::setTCTMServerAddressIP(QString address)
136 {
135 {
137 label_currentTCTMServerIP->setText(address);
136 label_currentTCTMServerIP->setText(address);
138 }
137 }
139
138
140 int MainWindowUI::getTMPort()
139 int MainWindowUI::getTMPort()
141 {
140 {
142 return spinbox_TMServerPort->value();
141 return spinbox_TMServerPort->value();
143 }
142 }
144
143
145 int MainWindowUI::getTCPort()
144 int MainWindowUI::getTCPort()
146 {
145 {
147 return spinbox_TCServerPort->value();
146 return spinbox_TCServerPort->value();
148 }
147 }
149
148
150 void MainWindowUI::displayOnConsole(QString message)
149 void MainWindowUI::displayOnConsole(QString message)
151 {
150 {
152 console->append(message);
151 console->append(message);
153 }
152 }
154
153
155 void MainWindowUI::clearConsole()
154 void MainWindowUI::clearConsole()
156 {
155 {
157 console->clear();
156 console->clear();
158 }
157 }
159
158
160 void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes)
159 void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes)
161 {
160 {
162 label_totalOfBytes->setText(
161 label_totalOfBytes->setText(
163 "Received Bytes: "
162 "Received Bytes: "
164 + QString::number(nbBytes));
163 + QString::number(nbBytes));
165 }
164 }
166
165
167 void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets)
166 void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets)
168 {
167 {
169 label_totalOfPackets->setText(
168 label_totalOfPackets->setText(
170 "Received Packets: "
169 "Received Packets: "
171 + QString::number(nbPackets));
170 + QString::number(nbPackets));
172 }
171 }
@@ -1,107 +1,105
1 #ifndef MAINWINDOWUI_H
1 #ifndef MAINWINDOWUI_H
2 #define MAINWINDOWUI_H
2 #define MAINWINDOWUI_H
3
3
4 #include <QWidget>
4 #include <QWidget>
5 #include <qipdialogbox.h>
5 #include <qipdialogbox.h>
6 #include <QLabel>
6 #include <QLabel>
7 #include <QPushButton>
7 #include <QPushButton>
8 #include <QGridLayout>
8 #include <QGridLayout>
9 #include <QVBoxLayout>
9 #include <QVBoxLayout>
10 #include <QGroupBox>
10 #include <QGroupBox>
11 #include <QSpinBox>
11 #include <QSpinBox>
12 #include <QTextEdit>
12 #include <QTextEdit>
13 #include <QTabWidget>
13 #include <QTabWidget>
14
14
15 #include <wfdisplay.h>
15 #include <wfdisplay.h>
16 #include <pagespectra.h>
16 #include <pagespectra.h>
17 #include <parameterdump.h>
17 #include <parameterdump.h>
18
18
19 #include "tmstatistics.h"
19 #include "tmstatistics.h"
20 #include "hkdisplay.h"
20 #include "hkdisplay.h"
21 #include "lfrspectrogram.h"
22
21
23 class MainWindowUI : public QWidget
22 class MainWindowUI : public QWidget
24 {
23 {
25 Q_OBJECT
24 Q_OBJECT
26 public:
25 public:
27 explicit MainWindowUI(QWidget *parent = 0);
26 explicit MainWindowUI(QWidget *parent = 0);
28
27
29 void setTCTMServerAddressIP(QString address);
28 void setTCTMServerAddressIP(QString address);
30 QString getTMEchoServerAddress();
29 QString getTMEchoServerAddress();
31 int getTMPort();
30 int getTMPort();
32 int getTCPort();
31 int getTCPort();
33 void displayOnConsole(QString message);
32 void displayOnConsole(QString message);
34
33
35 QTabWidget *spwTabWidget;
34 QTabWidget *spwTabWidget;
36 QWidget* spwTabWidgetPage0;
35 QWidget* spwTabWidgetPage0;
37 QWidget* spwTabWidgetPage1;
36 QWidget* spwTabWidgetPage1;
38 QWidget* spwTabWidgetPage2;
37 QWidget* spwTabWidgetPage2;
39 QWidget* spwTabWidgetPage3;
38 QWidget* spwTabWidgetPage3;
40 QWidget* spwTabWidgetPage4;
39 QWidget* spwTabWidgetPage4;
41 QWidget* spwTabWidgetPage5;
40 QWidget* spwTabWidgetPage5;
42 QWidget* spwTabWidgetPage6;
41 QWidget* spwTabWidgetPage6;
43 QWidget* spwTabWidgetPage7;
42 QWidget* spwTabWidgetPage7;
44
43
45 TMStatistics* tmStatistics;
44 TMStatistics* tmStatistics;
46
45
47 WFDisplay* wfDisplay;
46 WFDisplay* wfDisplay;
48 WFPage* wfPageBurst;
47 WFPage* wfPageBurst;
49 WFPage* wfPageSBM1;
48 WFPage* wfPageSBM1;
50 WFPage* wfPageSBM2;
49 WFPage* wfPageSBM2;
51 PageSpectra* pageSpectraNORM;
50 PageSpectra* pageSpectraNORM;
52 HKDisplay* hkDisplay;
51 HKDisplay* hkDisplay;
53 LFRSpectrogram* lfrSpectrogam;
54
52
55 QWidget* widget_spectrogram;
53 QWidget* widget_spectrogram;
56
54
57 ParameterDump* parameterDump;
55 ParameterDump* parameterDump;
58
56
59 QPushButton *button_openServerTCTM;
57 QPushButton *button_openServerTCTM;
60 QPushButton *button_testServerTCTM;
58 QPushButton *button_testServerTCTM;
61 QPushButton *button_openSocketEchoServer;
59 QPushButton *button_openSocketEchoServer;
62 QPushButton *button_TCAcknowledgement;
60 QPushButton *button_TCAcknowledgement;
63 QPushButton *button_TCRejection;
61 QPushButton *button_TCRejection;
64 QPushButton *button_GSEHK;
62 QPushButton *button_GSEHK;
65 QPushButton *button_clearConsole;
63 QPushButton *button_clearConsole;
66 QPushButton *button_resetStatistics;
64 QPushButton *button_resetStatistics;
67
65
68 QIPDialogBox *serverTMEchoDialogBox;
66 QIPDialogBox *serverTMEchoDialogBox;
69
67
70 QSpinBox *spinbox_serverTMEchoPort;
68 QSpinBox *spinbox_serverTMEchoPort;
71
69
72 signals:
70 signals:
73
71
74 public slots:
72 public slots:
75 void clearConsole();
73 void clearConsole();
76 void totalOfBytesHasChanged(unsigned int nbBytes);
74 void totalOfBytesHasChanged(unsigned int nbBytes);
77 void totalOfPacketsHasChanged(unsigned int nbPackets);
75 void totalOfPacketsHasChanged(unsigned int nbPackets);
78
76
79 private:
77 private:
80 QLabel *label_serverTMEcho;
78 QLabel *label_serverTMEcho;
81 QLabel *label_serverTMEchoPort;
79 QLabel *label_serverTMEchoPort;
82 QLabel *label_TMServerPort;
80 QLabel *label_TMServerPort;
83 QLabel *label_TCServerPort;
81 QLabel *label_TCServerPort;
84 QLabel *label_currentTCTMServer;
82 QLabel *label_currentTCTMServer;
85 QLabel *label_currentTCTMServerIP;
83 QLabel *label_currentTCTMServerIP;
86 QLabel *label_totalOfBytes;
84 QLabel *label_totalOfBytes;
87 QLabel *label_totalOfPackets;
85 QLabel *label_totalOfPackets;
88
86
89 QTextEdit *console;
87 QTextEdit *console;
90
88
91 QSpinBox *spinbox_TMServerPort;
89 QSpinBox *spinbox_TMServerPort;
92 QSpinBox *spinbox_TCServerPort;
90 QSpinBox *spinbox_TCServerPort;
93
91
94 QGroupBox *groupbox_TMEcho;
92 QGroupBox *groupbox_TMEcho;
95 QGroupBox *groupbox_ports;
93 QGroupBox *groupbox_ports;
96 QGroupBox *groupbox_TMToForeignGSETester;
94 QGroupBox *groupbox_TMToForeignGSETester;
97
95
98 QVBoxLayout *layout_TMEcho;
96 QVBoxLayout *layout_TMEcho;
99 QVBoxLayout *layout_TMToForeignGSETester;
97 QVBoxLayout *layout_TMToForeignGSETester;
100 QVBoxLayout *layout_overallLayout;
98 QVBoxLayout *layout_overallLayout;
101
99
102 QGridLayout *mainLayout;
100 QGridLayout *mainLayout;
103 QGridLayout *layout_ports;
101 QGridLayout *layout_ports;
104
102
105 };
103 };
106
104
107 #endif // MAINWINDOWUI_H
105 #endif // MAINWINDOWUI_H
@@ -1,471 +1,480
1 #include "parameterdump.h"
1 #include "parameterdump.h"
2
2
3 ParameterDump::ParameterDump(QWidget *parent) :
3 ParameterDump::ParameterDump(QWidget *parent) :
4 QWidget(parent)
4 QWidget(parent)
5 {
5 {
6 this->buildTabParameterDump();
6 this->buildTabParameterDump();
7
7
8 packetToSend = new TCPacketToSend();
8 packetToSend = new TCPacketToSend();
9
9
10 this->setLayout(layout_parameterDump);
10 this->setLayout(layout_parameterDump);
11 }
11 }
12
12
13 void ParameterDump::buildTabParameterDump()
13 void ParameterDump::buildTabParameterDump()
14 {
14 {
15 buildCOMM();
15 buildCOMM();
16 buildNORM();
16 buildNORM();
17 buildBURST();
17 buildBURST();
18 buildSBM1();
18 buildSBM1();
19 buildSBM2();
19 buildSBM2();
20 buildActions();
20 buildActions();
21
21
22 layout_parameterDump = new QGridLayout();
22 layout_parameterDump = new QGridLayout();
23
23
24 layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1);
24 layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1);
25 layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1);
25 layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1);
26 layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1);
26 layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1);
27 layout_parameterDump->addWidget(groupbox_ACTIONS, 1, 1, 1, 1);
27 layout_parameterDump->addWidget(groupbox_SBM1, 1 , 1, 1, 1);
28 layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1);
28 layout_parameterDump->addWidget(groupbox_SBM2, 2, 0, 1, 1);
29 layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1);
29 layout_parameterDump->addWidget(button_parameterDump, 2, 1, 1, 1);
30
30
31 layout_parameterDump->setRowStretch(3, 1);
31 layout_parameterDump->setRowStretch(2, 1);
32 layout_parameterDump->setColumnStretch(2, 1);
33
34 layout_parameterDump->setRowStretch(3, 1);
35 layout_parameterDump->setColumnStretch(2, 1);
32 layout_parameterDump->setColumnStretch(2, 1);
36 }
33 }
37
34
38 void ParameterDump::buildCOMM()
35 void ParameterDump::buildCOMM()
39 {
36 {
40 groupbox_COMM = new QGroupBox(tr("COMMON_PAR"));
37 groupbox_COMM = new QGroupBox(tr("COMMON_PAR"));
41 layout_COMM = new QGridLayout();
38 layout_COMM = new QGridLayout();
42
39
43 sy_lfr_bw = new QLabel("sy_lfr_bw ");
40 sy_lfr_bw = new QLabel("sy_lfr_bw ");
44 sy_lfr_sp0 = new QLabel("sy_lfr_sp0 ");
41 sy_lfr_sp0 = new QLabel("sy_lfr_sp0 ");
45 sy_lfr_sp1 = new QLabel("sy_lfr_sp1 ");
42 sy_lfr_sp1 = new QLabel("sy_lfr_sp1 ");
46 sy_lfr_r0 = new QLabel("sy_lfr_r0 ");
43 sy_lfr_r0 = new QLabel("sy_lfr_r0 ");
47 sy_lfr_r1 = new QLabel("sy_lfr_r1 ");
44 sy_lfr_r1 = new QLabel("sy_lfr_r1 ");
48
45
49 spinbox_sy_lfr_bw = new QSpinBox();
46 spinbox_sy_lfr_bw = new QSpinBox();
50 spinbox_sy_lfr_sp0 = new QSpinBox();
47 spinbox_sy_lfr_sp0 = new QSpinBox();
51 spinbox_sy_lfr_sp1 = new QSpinBox();
48 spinbox_sy_lfr_sp1 = new QSpinBox();
52 spinbox_sy_lfr_r0 = new QSpinBox();
49 spinbox_sy_lfr_r0 = new QSpinBox();
53 spinbox_sy_lfr_r1 = new QSpinBox();
50 spinbox_sy_lfr_r1 = new QSpinBox();
54
51
52 button_loadCommon = new QPushButton(tr("LOAD_COMM"));
53
54 button_loadCommon->setEnabled(false);
55
55 spinbox_sy_lfr_bw->setRange(0, 1);
56 spinbox_sy_lfr_bw->setRange(0, 1);
56 spinbox_sy_lfr_sp0->setRange(0, 1);
57 spinbox_sy_lfr_sp0->setRange(0, 1);
57 spinbox_sy_lfr_sp1->setRange(0, 1);
58 spinbox_sy_lfr_sp1->setRange(0, 1);
58 spinbox_sy_lfr_r0->setRange(0, 1);
59 spinbox_sy_lfr_r0->setRange(0, 1);
59 spinbox_sy_lfr_r1->setRange(0, 1);
60 spinbox_sy_lfr_r1->setRange(0, 1);
60
61
61 spinbox_sy_lfr_bw->setValue(1);
62 spinbox_sy_lfr_bw->setValue(1);
62 spinbox_sy_lfr_sp0->setValue(0);
63 spinbox_sy_lfr_sp0->setValue(0);
63 spinbox_sy_lfr_sp1->setValue(0);
64 spinbox_sy_lfr_sp1->setValue(0);
64 spinbox_sy_lfr_r0->setValue(0);
65 spinbox_sy_lfr_r0->setValue(0);
65 spinbox_sy_lfr_r1->setValue(0);
66 spinbox_sy_lfr_r1->setValue(0);
66
67
67 layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1);
68 layout_COMM->addWidget(button_loadCommon, 0, 0, 1, 2);
68 layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1);
69 layout_COMM->addWidget(sy_lfr_bw, 1, 0, 1, 1);
69 layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1);
70 layout_COMM->addWidget(sy_lfr_sp0, 2, 0, 1, 1);
70 layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1);
71 layout_COMM->addWidget(sy_lfr_sp1, 3, 0, 1, 1);
71 layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1);
72 layout_COMM->addWidget(sy_lfr_r0, 4, 0, 1, 1);
73 layout_COMM->addWidget(sy_lfr_r1, 5, 0, 1, 1);
72
74
73 layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1);
75 layout_COMM->addWidget(spinbox_sy_lfr_bw, 1, 1, 1, 1);
74 layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1);
76 layout_COMM->addWidget(spinbox_sy_lfr_sp0, 2, 1, 1, 1);
75 layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1);
77 layout_COMM->addWidget(spinbox_sy_lfr_sp1, 3, 1, 1, 1);
76 layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1);
78 layout_COMM->addWidget(spinbox_sy_lfr_r0, 4, 1, 1, 1);
77 layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1);
79 layout_COMM->addWidget(spinbox_sy_lfr_r1, 5, 1, 1, 1);
78
80
79 layout_COMM->setColumnStretch(2, 1);
81 layout_COMM->setColumnStretch(2, 1);
80 layout_COMM->setRowStretch(5, 1);
82 layout_COMM->setRowStretch(6, 1);
81
83
82 groupbox_COMM->setLayout(layout_COMM);
84 groupbox_COMM->setLayout(layout_COMM);
85
86 connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon()));
83 }
87 }
84
88
85 void ParameterDump::buildNORM()
89 void ParameterDump::buildNORM()
86 {
90 {
87 groupbox_NORM = new QGroupBox(tr("NORMAL_PAR"));
91 groupbox_NORM = new QGroupBox(tr("NORMAL_PAR"));
88 layout_NORM = new QGridLayout();
92 layout_NORM = new QGridLayout();
89
93
90 sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l ");
94 sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l ");
91 sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p ");
95 sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p ");
92 sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p ");
96 sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p ");
93 sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 ");
97 sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 ");
94 sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 ");
98 sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 ");
95
99
96 spinbox_sy_lfr_n_swf_l = new QSpinBox();
100 spinbox_sy_lfr_n_swf_l = new QSpinBox();
97 spinbox_sy_lfr_n_swf_p = new QSpinBox();
101 spinbox_sy_lfr_n_swf_p = new QSpinBox();
98 spinbox_sy_lfr_n_asm_p = new QSpinBox();
102 spinbox_sy_lfr_n_asm_p = new QSpinBox();
99 spinbox_sy_lfr_n_bp_p0 = new QSpinBox();
103 spinbox_sy_lfr_n_bp_p0 = new QSpinBox();
100 spinbox_sy_lfr_n_bp_p1 = new QSpinBox();
104 spinbox_sy_lfr_n_bp_p1 = new QSpinBox();
101
105
106 button_loadNormal = new QPushButton(tr("LOAD_NORM"));
107
108 button_loadNormal->setEnabled(false);
109
102 spinbox_sy_lfr_n_swf_l->setRange(256, 65535);
110 spinbox_sy_lfr_n_swf_l->setRange(256, 65535);
103 spinbox_sy_lfr_n_swf_p->setRange(16, 65535);
111 spinbox_sy_lfr_n_swf_p->setRange(16, 65535);
104 spinbox_sy_lfr_n_asm_p->setRange(2, 65535);
112 spinbox_sy_lfr_n_asm_p->setRange(2, 65535);
105 spinbox_sy_lfr_n_bp_p0->setRange(4, 255);
113 spinbox_sy_lfr_n_bp_p0->setRange(4, 255);
106 spinbox_sy_lfr_n_bp_p1->setRange(20, 255);
114 spinbox_sy_lfr_n_bp_p1->setRange(20, 255);
107
115
108 spinbox_sy_lfr_n_swf_l->setValue(2048);
116 spinbox_sy_lfr_n_swf_l->setValue(2048);
109 spinbox_sy_lfr_n_swf_p->setValue(300);
117 spinbox_sy_lfr_n_swf_p->setValue(300);
110 spinbox_sy_lfr_n_asm_p->setValue(3600);
118 spinbox_sy_lfr_n_asm_p->setValue(3600);
111 spinbox_sy_lfr_n_bp_p0->setValue(4);
119 spinbox_sy_lfr_n_bp_p0->setValue(4);
112 spinbox_sy_lfr_n_bp_p1->setValue(20);
120 spinbox_sy_lfr_n_bp_p1->setValue(20);
113
121
114 layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1);
122 layout_NORM->addWidget(button_loadNormal, 0, 0, 1, 2);
115 layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1);
123 layout_NORM->addWidget(sy_lfr_n_swf_l, 1, 0, 1, 1);
116 layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1);
124 layout_NORM->addWidget(sy_lfr_n_swf_p, 2, 0, 1, 1);
117 layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1);
125 layout_NORM->addWidget(sy_lfr_n_asm_p, 3, 0, 1, 1);
118 layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1);
126 layout_NORM->addWidget(sy_lfr_n_bp_p0, 4, 0, 1, 1);
127 layout_NORM->addWidget(sy_lfr_n_bp_p1, 5, 0, 1, 1);
119
128
120 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1);
129 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 1, 1, 1, 1);
121 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1);
130 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 2, 1, 1, 1);
122 layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1);
131 layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 3, 1, 1, 1);
123 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1);
132 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 4, 1, 1, 1);
124 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1);
133 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 5, 1, 1, 1);
125
134
126 layout_NORM->setColumnStretch(2, 1);
135 layout_NORM->setColumnStretch(2, 1);
127 layout_NORM->setRowStretch(5, 1);
136 layout_NORM->setRowStretch(6, 1);
128
137
129 groupbox_NORM->setLayout(layout_NORM);
138 groupbox_NORM->setLayout(layout_NORM);
139
140 connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal()));
130 }
141 }
131
142
132 void ParameterDump::buildBURST()
143 void ParameterDump::buildBURST()
133 {
144 {
134 groupbox_BURST = new QGroupBox(tr("BURST_PAR"));
145 groupbox_BURST = new QGroupBox(tr("BURST_PAR"));
135 layout_BURST = new QGridLayout();
146 layout_BURST = new QGridLayout();
136
147
137 sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 ");
148 sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 ");
138 sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 ");
149 sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 ");
139
150
140 spinbox_sy_lfr_b_bp_p0 = new QSpinBox();
151 spinbox_sy_lfr_b_bp_p0 = new QSpinBox();
141 spinbox_sy_lfr_b_bp_p1 = new QSpinBox();
152 spinbox_sy_lfr_b_bp_p1 = new QSpinBox();
142
153
154 button_loadBurst = new QPushButton(tr("LOAD_BURST"));
155
156 button_loadBurst->setEnabled(false);
157
143 spinbox_sy_lfr_b_bp_p0->setRange(1, 255);
158 spinbox_sy_lfr_b_bp_p0->setRange(1, 255);
144 spinbox_sy_lfr_b_bp_p1->setRange(5, 255);
159 spinbox_sy_lfr_b_bp_p1->setRange(5, 255);
145
160
146 layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1);
161 layout_BURST->addWidget(button_loadBurst, 0, 0, 1, 2);
147 layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1);
162 layout_BURST->addWidget(sy_lfr_b_bp_p0, 1, 0, 1, 1);
148 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1);
163 layout_BURST->addWidget(sy_lfr_b_bp_p1, 2, 0, 1, 1);
149 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1);
164
165 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 1, 1, 1, 1);
166 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 2, 1, 1, 1);
150
167
151 layout_BURST->setColumnStretch(2, 1);
168 layout_BURST->setColumnStretch(2, 1);
152 layout_BURST->setRowStretch(3, 1);
169 layout_BURST->setRowStretch(3, 1);
153
170
154 groupbox_BURST->setLayout(layout_BURST);
171 groupbox_BURST->setLayout(layout_BURST);
172
173 connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst()));
155 }
174 }
156
175
157 void ParameterDump::buildSBM1()
176 void ParameterDump::buildSBM1()
158 {
177 {
159 groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR"));
178 groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR"));
160 layout_SBM1 = new QGridLayout();
179 layout_SBM1 = new QGridLayout();
161
180
162 sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 ");
181 sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 ");
163 sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 ");
182 sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 ");
164
183
165 spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox();
184 spinbox_sy_lfr_s1_bp_p0 = new QDoubleSpinBox();
166 spinbox_sy_lfr_s1_bp_p1 = new QSpinBox();
185 spinbox_sy_lfr_s1_bp_p1 = new QSpinBox();
167
186
187 button_loadSBM1 = new QPushButton(tr("LOAD_SBM1"));
188
189 button_loadSBM1->setEnabled(false);
190
168 spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256);
191 spinbox_sy_lfr_s1_bp_p0->setRange(0.25, 0.25*256);
169 spinbox_sy_lfr_b_bp_p0->setValue(0.25);
192 spinbox_sy_lfr_b_bp_p0->setValue(0.25);
170 spinbox_sy_lfr_s1_bp_p1->setRange(1, 255);
193 spinbox_sy_lfr_s1_bp_p1->setRange(1, 255);
171 spinbox_sy_lfr_b_bp_p1->setValue(1);
194 spinbox_sy_lfr_b_bp_p1->setValue(1);
172
195
173 layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1);
196 layout_SBM1->addWidget(button_loadSBM1, 0, 0, 1, 2);
174 layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1);
197 layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 1, 0, 1, 1);
175 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1);
198 layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 2, 0, 1, 1);
176 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1);
199
200 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 1, 1, 1, 1);
201 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 2, 1, 1, 1);
177
202
178 layout_SBM1->setColumnStretch(2, 1);
203 layout_SBM1->setColumnStretch(2, 1);
179 layout_SBM1->setRowStretch(3, 1);
204 layout_SBM1->setRowStretch(3, 1);
180
205
181 groupbox_SBM1->setLayout(layout_SBM1);
206 groupbox_SBM1->setLayout(layout_SBM1);
207
208 connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1()));
182 }
209 }
183
210
184 void ParameterDump::buildSBM2()
211 void ParameterDump::buildSBM2()
185 {
212 {
186 groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR"));
213 groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR"));
187 layout_SBM2 = new QGridLayout();
214 layout_SBM2 = new QGridLayout();
188
215
189 sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 ");
216 sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 ");
190 sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 ");
217 sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 ");
191
218
192 spinbox_sy_lfr_s2_bp_p0 = new QSpinBox();
219 spinbox_sy_lfr_s2_bp_p0 = new QSpinBox();
193 spinbox_sy_lfr_s2_bp_p1 = new QSpinBox();
220 spinbox_sy_lfr_s2_bp_p1 = new QSpinBox();
194
221
222 button_loadSBM2 = new QPushButton(tr("LOAD_SBM2"));
223
224 button_loadSBM2->setEnabled(false);
225
195 spinbox_sy_lfr_s2_bp_p0->setRange(1, 255);
226 spinbox_sy_lfr_s2_bp_p0->setRange(1, 255);
196 spinbox_sy_lfr_s2_bp_p1->setRange(5, 255);
227 spinbox_sy_lfr_s2_bp_p1->setRange(5, 255);
197
228
198 layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1);
229 layout_SBM2->addWidget(button_loadSBM2, 0, 0, 1, 2);
199 layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1);
230
200 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1);
231 layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 1, 0, 1, 1);
201 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1);
232 layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 2, 0, 1, 1);
233
234 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 1, 1, 1, 1);
235 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 2, 1, 1, 1);
202
236
203 layout_SBM2->setColumnStretch(2, 1);
237 layout_SBM2->setColumnStretch(2, 1);
204 layout_SBM2->setRowStretch(3, 1);
238 layout_SBM2->setRowStretch(3, 1);
205
239
206 groupbox_SBM2->setLayout(layout_SBM2);
240 groupbox_SBM2->setLayout(layout_SBM2);
241
242 connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2()));
207 }
243 }
208
244
209 void ParameterDump::buildActions()
245 void ParameterDump::buildActions()
210 {
246 {
211 groupbox_ACTIONS = new QGroupBox(tr("LOAD / DUMP"));
212 layout_ACTIONS = new QGridLayout;
213
214 button_loadCommon = new QPushButton(tr("LOAD_COMM"));
215 button_loadNormal = new QPushButton(tr("LOAD_NORM"));
216 button_loadBurst = new QPushButton(tr("LOAD_BURST"));
217 button_loadSBM1 = new QPushButton(tr("LOAD_SBM1"));
218 button_loadSBM2 = new QPushButton(tr("LOAD_SBM2"));
219 button_parameterDump = new QPushButton(tr("DUMP_PAR"));
247 button_parameterDump = new QPushButton(tr("DUMP_PAR"));
220
248
221 button_loadCommon->setEnabled(false);
222 button_loadNormal->setEnabled(false);
223 button_loadBurst->setEnabled(false);
224 button_loadSBM1->setEnabled(false);
225 button_loadSBM2->setEnabled(false);
226 button_parameterDump->setEnabled(false);
249 button_parameterDump->setEnabled(false);
227
250
228 layout_ACTIONS->addWidget(button_loadCommon, 0, 0, 1, 1);
229 layout_ACTIONS->addWidget(button_loadNormal, 0, 1, 1, 1);
230 layout_ACTIONS->addWidget(button_loadBurst, 1, 0, 1, 1);
231 layout_ACTIONS->addWidget(button_parameterDump, 1, 1, 1, 1);
232 layout_ACTIONS->addWidget(button_loadSBM1, 2, 0, 1, 1);
233 layout_ACTIONS->addWidget(button_loadSBM2, 2, 1, 1, 1);
234
235 groupbox_ACTIONS->setLayout(layout_ACTIONS);
236
237 connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump()));
251 connect(this->button_parameterDump, SIGNAL(clicked()), this, SLOT(sendParameterDump()));
238 connect(this->button_loadCommon, SIGNAL(clicked()), this, SLOT(sendLoadCommon()));
239 connect(this->button_loadNormal, SIGNAL(clicked()), this, SLOT(sendLoadNormal()));
240 connect(this->button_loadBurst, SIGNAL(clicked()), this, SLOT(sendLoadBurst()));
241 connect(this->button_loadSBM1, SIGNAL(clicked()), this, SLOT(sendLoadSBM1()));
242 connect(this->button_loadSBM2, SIGNAL(clicked()), this, SLOT(sendLoadSBM2()));
243 }
252 }
244
253
245 void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead)
254 void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead)
246 {
255 {
247
256
248 Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket;
257 Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket;
249
258
250 parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value;
259 parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value;
251
260
252 // COMMON
261 // COMMON
253 spinbox_sy_lfr_bw->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 );
262 spinbox_sy_lfr_bw->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 );
254 spinbox_sy_lfr_sp0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 );
263 spinbox_sy_lfr_sp0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 );
255 spinbox_sy_lfr_sp1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 );
264 spinbox_sy_lfr_sp1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 );
256 spinbox_sy_lfr_r0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 );
265 spinbox_sy_lfr_r0->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 );
257 spinbox_sy_lfr_r1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) );
266 spinbox_sy_lfr_r1->setValue( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) );
258
267
259 // NORMAL
268 // NORMAL
260 spinbox_sy_lfr_n_swf_l->setValue(parameterPacket->sy_lfr_n_swf_l[0] * 256
269 spinbox_sy_lfr_n_swf_l->setValue(parameterPacket->sy_lfr_n_swf_l[0] * 256
261 + parameterPacket->sy_lfr_n_swf_l[1]);
270 + parameterPacket->sy_lfr_n_swf_l[1]);
262 spinbox_sy_lfr_n_swf_p->setValue(parameterPacket->sy_lfr_n_swf_p[0] * 256
271 spinbox_sy_lfr_n_swf_p->setValue(parameterPacket->sy_lfr_n_swf_p[0] * 256
263 + parameterPacket->sy_lfr_n_swf_p[1]);
272 + parameterPacket->sy_lfr_n_swf_p[1]);
264 spinbox_sy_lfr_n_asm_p->setValue(parameterPacket->sy_lfr_n_asm_p[0] * 256
273 spinbox_sy_lfr_n_asm_p->setValue(parameterPacket->sy_lfr_n_asm_p[0] * 256
265 + parameterPacket->sy_lfr_n_asm_p[1]);
274 + parameterPacket->sy_lfr_n_asm_p[1]);
266 spinbox_sy_lfr_n_bp_p0->setValue(parameterPacket->sy_lfr_n_bp_p0);
275 spinbox_sy_lfr_n_bp_p0->setValue(parameterPacket->sy_lfr_n_bp_p0);
267 spinbox_sy_lfr_n_bp_p1->setValue(parameterPacket->sy_lfr_n_bp_p1);
276 spinbox_sy_lfr_n_bp_p1->setValue(parameterPacket->sy_lfr_n_bp_p1);
268
277
269 // BURST
278 // BURST
270 spinbox_sy_lfr_b_bp_p0->setValue(parameterPacket->sy_lfr_b_bp_p0);
279 spinbox_sy_lfr_b_bp_p0->setValue(parameterPacket->sy_lfr_b_bp_p0);
271 spinbox_sy_lfr_b_bp_p1->setValue(parameterPacket->sy_lfr_b_bp_p1);
280 spinbox_sy_lfr_b_bp_p1->setValue(parameterPacket->sy_lfr_b_bp_p1);
272
281
273 // SBM1
282 // SBM1
274 spinbox_sy_lfr_s1_bp_p0->setValue(parameterPacket->sy_lfr_s1_bp_p0);
283 spinbox_sy_lfr_s1_bp_p0->setValue(parameterPacket->sy_lfr_s1_bp_p0);
275 spinbox_sy_lfr_s1_bp_p1->setValue(parameterPacket->sy_lfr_s1_bp_p1);
284 spinbox_sy_lfr_s1_bp_p1->setValue(parameterPacket->sy_lfr_s1_bp_p1);
276
285
277 // SBM2
286 // SBM2
278 spinbox_sy_lfr_s2_bp_p0->setValue(parameterPacket->sy_lfr_s2_bp_p0);
287 spinbox_sy_lfr_s2_bp_p0->setValue(parameterPacket->sy_lfr_s2_bp_p0);
279 spinbox_sy_lfr_s2_bp_p1->setValue(parameterPacket->sy_lfr_s2_bp_p1);
288 spinbox_sy_lfr_s2_bp_p1->setValue(parameterPacket->sy_lfr_s2_bp_p1);
280 }
289 }
281
290
282 void ParameterDump::sendParameterDump()
291 void ParameterDump::sendParameterDump()
283 {
292 {
284 Packet_TC_LFR_DUMP_PAR_t packet;
293 Packet_TC_LFR_DUMP_PAR_t packet;
285 unsigned char crcAsTwoBytes[2];
294 unsigned char crcAsTwoBytes[2];
286
295
287 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
296 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
288 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
297 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
289 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
298 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
290 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
299 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
291 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR >> 8);
300 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR >> 8);
292 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR );
301 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DUMP_PAR );
293
302
294 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
303 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
295 packet.serviceType = TC_TYPE_DEFAULT;
304 packet.serviceType = TC_TYPE_DEFAULT;
296 packet.serviceSubType = TC_SUBTYPE_DUMP;
305 packet.serviceSubType = TC_SUBTYPE_DUMP;
297 packet.sourceID = SID_DEFAULT;
306 packet.sourceID = SID_DEFAULT;
298
307
299 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
308 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
300 PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
309 PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
301 packet.crc[0] = crcAsTwoBytes[0];
310 packet.crc[0] = crcAsTwoBytes[0];
302 packet.crc[1] = crcAsTwoBytes[1];
311 packet.crc[1] = crcAsTwoBytes[1];
303
312
304 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET,
313 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DUMP_PAR + CCSDS_TC_TM_PACKET_OFFSET,
305 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
314 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
306 }
315 }
307
316
308 void ParameterDump::sendLoadCommon()
317 void ParameterDump::sendLoadCommon()
309 {
318 {
310 Packet_TC_LFR_LOAD_COMMON_PAR_t packet;
319 Packet_TC_LFR_LOAD_COMMON_PAR_t packet;
311 unsigned char crcAsTwoBytes[2];
320 unsigned char crcAsTwoBytes[2];
312
321
313 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
322 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
314 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
323 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
315 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
324 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
316 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
325 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
317 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR >> 8);
326 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR >> 8);
318 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR );
327 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR );
319
328
320 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
329 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
321 packet.serviceType = TC_TYPE_DEFAULT;
330 packet.serviceType = TC_TYPE_DEFAULT;
322 packet.serviceSubType = TC_SUBTYPE_LOAD_COMMON_PAR;
331 packet.serviceSubType = TC_SUBTYPE_LOAD_COMMON_PAR;
323 packet.sourceID = SID_DEFAULT;
332 packet.sourceID = SID_DEFAULT;
324 packet.spare = TC_LFR_LOAD_COMMON_PAR_SPARE;
333 packet.spare = TC_LFR_LOAD_COMMON_PAR_SPARE;
325 packet.bw_sp0_sp1_r0_r1 = (spinbox_sy_lfr_bw->value() << 4)
334 packet.bw_sp0_sp1_r0_r1 = (spinbox_sy_lfr_bw->value() << 4)
326 + (spinbox_sy_lfr_sp0->value() << 3)
335 + (spinbox_sy_lfr_sp0->value() << 3)
327 + (spinbox_sy_lfr_sp1->value() << 2)
336 + (spinbox_sy_lfr_sp1->value() << 2)
328 + (spinbox_sy_lfr_r0->value() << 1)
337 + (spinbox_sy_lfr_r0->value() << 1)
329 + (spinbox_sy_lfr_r1->value() );
338 + (spinbox_sy_lfr_r1->value() );
330
339
331 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
340 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
332 PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
341 PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
333 packet.crc[0] = crcAsTwoBytes[0];
342 packet.crc[0] = crcAsTwoBytes[0];
334 packet.crc[1] = crcAsTwoBytes[1];
343 packet.crc[1] = crcAsTwoBytes[1];
335
344
336 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET,
345 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR + CCSDS_TC_TM_PACKET_OFFSET,
337 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
346 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
338 }
347 }
339
348
340 void ParameterDump::sendLoadNormal()
349 void ParameterDump::sendLoadNormal()
341 {
350 {
342 Packet_TC_LFR_LOAD_NORMAL_PAR_t packet;
351 Packet_TC_LFR_LOAD_NORMAL_PAR_t packet;
343 unsigned char crcAsTwoBytes[2];
352 unsigned char crcAsTwoBytes[2];
344
353
345 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
354 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
346 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
355 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
347 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
356 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
348 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
357 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
349 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR >> 8);
358 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR >> 8);
350 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR );
359 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR );
351
360
352 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
361 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
353 packet.serviceType = TC_TYPE_DEFAULT;
362 packet.serviceType = TC_TYPE_DEFAULT;
354 packet.serviceSubType = TC_SUBTYPE_LOAD_NORMAL_PAR;
363 packet.serviceSubType = TC_SUBTYPE_LOAD_NORMAL_PAR;
355 packet.sourceID = SID_DEFAULT;
364 packet.sourceID = SID_DEFAULT;
356 packet.sy_lfr_n_swf_l[0] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() >> 8);
365 packet.sy_lfr_n_swf_l[0] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() >> 8);
357 packet.sy_lfr_n_swf_l[1] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() );
366 packet.sy_lfr_n_swf_l[1] = (unsigned char) (spinbox_sy_lfr_n_swf_l->value() );
358 packet.sy_lfr_n_swf_p[0] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() >> 8);
367 packet.sy_lfr_n_swf_p[0] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() >> 8);
359 packet.sy_lfr_n_swf_p[1] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() );
368 packet.sy_lfr_n_swf_p[1] = (unsigned char) (spinbox_sy_lfr_n_swf_p->value() );
360 packet.sy_lfr_n_asm_p[0] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() >> 8);
369 packet.sy_lfr_n_asm_p[0] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() >> 8);
361 packet.sy_lfr_n_asm_p[1] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() );
370 packet.sy_lfr_n_asm_p[1] = (unsigned char) (spinbox_sy_lfr_n_asm_p->value() );
362 packet.sy_lfr_n_bp_p0 = (unsigned char) (spinbox_sy_lfr_n_bp_p0->value() );
371 packet.sy_lfr_n_bp_p0 = (unsigned char) (spinbox_sy_lfr_n_bp_p0->value() );
363 packet.sy_lfr_n_bp_p1 = (unsigned char) (spinbox_sy_lfr_n_bp_p1->value() );
372 packet.sy_lfr_n_bp_p1 = (unsigned char) (spinbox_sy_lfr_n_bp_p1->value() );
364
373
365 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
374 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
366 PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
375 PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
367 packet.crc[0] = crcAsTwoBytes[0];
376 packet.crc[0] = crcAsTwoBytes[0];
368 packet.crc[1] = crcAsTwoBytes[1];
377 packet.crc[1] = crcAsTwoBytes[1];
369
378
370 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET,
379 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR + CCSDS_TC_TM_PACKET_OFFSET,
371 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
380 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
372 }
381 }
373
382
374 void ParameterDump::sendLoadBurst()
383 void ParameterDump::sendLoadBurst()
375 {
384 {
376 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
385 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
377 unsigned char crcAsTwoBytes[2];
386 unsigned char crcAsTwoBytes[2];
378
387
379 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
388 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
380 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
389 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
381 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
390 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
382 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
391 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
383 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR >> 8);
392 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR >> 8);
384 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR );
393 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR );
385
394
386 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
395 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
387 packet.serviceType = TC_TYPE_DEFAULT;
396 packet.serviceType = TC_TYPE_DEFAULT;
388 packet.serviceSubType = TC_SUBTYPE_LOAD_BURST_PAR;
397 packet.serviceSubType = TC_SUBTYPE_LOAD_BURST_PAR;
389 packet.sourceID = SID_DEFAULT;
398 packet.sourceID = SID_DEFAULT;
390 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_b_bp_p0->value() );
399 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_b_bp_p0->value() );
391 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_b_bp_p1->value() );
400 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_b_bp_p1->value() );
392
401
393 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
402 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
394 PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
403 PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
395 packet.crc[0] = crcAsTwoBytes[0];
404 packet.crc[0] = crcAsTwoBytes[0];
396 packet.crc[1] = crcAsTwoBytes[1];
405 packet.crc[1] = crcAsTwoBytes[1];
397
406
398 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET,
407 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR + CCSDS_TC_TM_PACKET_OFFSET,
399 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
408 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
400 }
409 }
401
410
402 void ParameterDump::sendLoadSBM1()
411 void ParameterDump::sendLoadSBM1()
403 {
412 {
404 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
413 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
405 unsigned char crcAsTwoBytes[2];
414 unsigned char crcAsTwoBytes[2];
406
415
407 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
416 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
408 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
417 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
409 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
418 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
410 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
419 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
411 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR >> 8);
420 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR >> 8);
412 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR );
421 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR );
413
422
414 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
423 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
415 packet.serviceType = TC_TYPE_DEFAULT;
424 packet.serviceType = TC_TYPE_DEFAULT;
416 packet.serviceSubType = TC_SUBTYPE_LOAD_SBM1_PAR;
425 packet.serviceSubType = TC_SUBTYPE_LOAD_SBM1_PAR;
417 packet.sourceID = SID_DEFAULT;
426 packet.sourceID = SID_DEFAULT;
418 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s1_bp_p0->value() );
427 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s1_bp_p0->value() );
419 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s1_bp_p1->value() );
428 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s1_bp_p1->value() );
420
429
421 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
430 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
422 PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
431 PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
423 packet.crc[0] = crcAsTwoBytes[0];
432 packet.crc[0] = crcAsTwoBytes[0];
424 packet.crc[1] = crcAsTwoBytes[1];
433 packet.crc[1] = crcAsTwoBytes[1];
425
434
426 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET,
435 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR + CCSDS_TC_TM_PACKET_OFFSET,
427 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
436 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
428 }
437 }
429
438
430 void ParameterDump::sendLoadSBM2()
439 void ParameterDump::sendLoadSBM2()
431 {
440 {
432 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
441 Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t packet;
433 unsigned char crcAsTwoBytes[2];
442 unsigned char crcAsTwoBytes[2];
434
443
435 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
444 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
436 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
445 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
437 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
446 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
438 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
447 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
439 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR >> 8);
448 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR >> 8);
440 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR );
449 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR );
441
450
442 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
451 packet.ccsdsSecHeaderFlag_pusVersion_ack = TC_LFR_DATA_FIELD_HEADER0;
443 packet.serviceType = TC_TYPE_DEFAULT;
452 packet.serviceType = TC_TYPE_DEFAULT;
444 packet.serviceSubType = TC_SUBTYPE_LOAD_SBM2_PAR;
453 packet.serviceSubType = TC_SUBTYPE_LOAD_SBM2_PAR;
445 packet.sourceID = SID_DEFAULT;
454 packet.sourceID = SID_DEFAULT;
446 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s2_bp_p0->value() );
455 packet.sy_lfr_bp_p0 = (unsigned char) (spinbox_sy_lfr_s2_bp_p0->value() );
447 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s2_bp_p1->value() );
456 packet.sy_lfr_bp_p1 = (unsigned char) (spinbox_sy_lfr_s2_bp_p1->value() );
448
457
449 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
458 packetToSend->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
450 PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
459 PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET - 2);
451 packet.crc[0] = crcAsTwoBytes[0];
460 packet.crc[0] = crcAsTwoBytes[0];
452 packet.crc[1] = crcAsTwoBytes[1];
461 packet.crc[1] = crcAsTwoBytes[1];
453
462
454 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET,
463 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR + CCSDS_TC_TM_PACKET_OFFSET,
455 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
464 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
456 }
465 }
457
466
458 void ParameterDump::actionsSetEnabled(bool state)
467 void ParameterDump::actionsSetEnabled(bool state)
459 {
468 {
460 button_parameterDump->setEnabled(state);
469 button_parameterDump->setEnabled(state);
461 button_loadCommon->setEnabled(state);
470 button_loadCommon->setEnabled(state);
462 button_loadNormal->setEnabled(state);
471 button_loadNormal->setEnabled(state);
463 button_loadBurst->setEnabled(state);
472 button_loadBurst->setEnabled(state);
464 button_loadSBM1->setEnabled(state);
473 button_loadSBM1->setEnabled(state);
465 button_loadSBM2->setEnabled(state);
474 button_loadSBM2->setEnabled(state);
466 }
475 }
467
476
468 void ParameterDump::GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData)
477 void ParameterDump::GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData)
469 {
478 {
470 packetToSend->GetCRCAsTwoBytes( data, crcAsTwoBytes, sizeOfData );
479 packetToSend->GetCRCAsTwoBytes( data, crcAsTwoBytes, sizeOfData );
471 }
480 }
@@ -1,115 +1,113
1 #ifndef PARAMETERDUMP_H
1 #ifndef PARAMETERDUMP_H
2 #define PARAMETERDUMP_H
2 #define PARAMETERDUMP_H
3
3
4 #include <QGroupBox>
4 #include <QGroupBox>
5 #include <QGridLayout>
5 #include <QGridLayout>
6 #include <QPushButton>
6 #include <QPushButton>
7 #include <QLabel>
7 #include <QLabel>
8 #include <QSpinBox>
8 #include <QSpinBox>
9 #include <QDoubleSpinBox>
9 #include <QDoubleSpinBox>
10
10
11 #include <tmpackettoread.h>
11 #include <tmpackettoread.h>
12 #include <TC_types.h>
12 #include <TC_types.h>
13
13
14 #include "parameterdump_global.h"
14 #include "parameterdump_global.h"
15 #include "tcpackettosend.h"
15 #include "tcpackettosend.h"
16
16
17 class PARAMETERDUMPSHARED_EXPORT ParameterDump : public QWidget
17 class PARAMETERDUMPSHARED_EXPORT ParameterDump : public QWidget
18 {
18 {
19 Q_OBJECT
19 Q_OBJECT
20 public:
20 public:
21 explicit ParameterDump(QWidget *parent = 0);
21 explicit ParameterDump(QWidget *parent = 0);
22
22
23 void buildTabParameterDump();
23 void buildTabParameterDump();
24 void buildCOMM();
24 void buildCOMM();
25 void buildNORM();
25 void buildNORM();
26 void buildBURST();
26 void buildBURST();
27 void buildSBM1();
27 void buildSBM1();
28 void buildSBM2();
28 void buildSBM2();
29 void buildActions();
29 void buildActions();
30 void updateParameterDump(TMPacketToRead *tmPacketToRead);
30 void updateParameterDump(TMPacketToRead *tmPacketToRead);
31 void actionsSetEnabled(bool state);
31 void actionsSetEnabled(bool state);
32
32
33 void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
33 void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData);
34
34
35 QGroupBox* groupbox_parameterDump;
35 QGroupBox* groupbox_parameterDump;
36 QGroupBox* groupbox_COMM;
36 QGroupBox* groupbox_COMM;
37 QGroupBox* groupbox_NORM;
37 QGroupBox* groupbox_NORM;
38 QGroupBox* groupbox_BURST;
38 QGroupBox* groupbox_BURST;
39 QGroupBox* groupbox_SBM1;
39 QGroupBox* groupbox_SBM1;
40 QGroupBox* groupbox_SBM2;
40 QGroupBox* groupbox_SBM2;
41 QGroupBox* groupbox_ACTIONS;
42
41
43 QGridLayout* layout_parameterDump;
42 QGridLayout* layout_parameterDump;
44 QGridLayout* layout_COMM;
43 QGridLayout* layout_COMM;
45 QGridLayout* layout_NORM;
44 QGridLayout* layout_NORM;
46 QGridLayout* layout_BURST;
45 QGridLayout* layout_BURST;
47 QGridLayout* layout_SBM1;
46 QGridLayout* layout_SBM1;
48 QGridLayout* layout_SBM2;
47 QGridLayout* layout_SBM2;
49 QGridLayout* layout_ACTIONS;
50
48
51 QPushButton* button_loadCommon;
49 QPushButton* button_loadCommon;
52 QPushButton* button_loadNormal;
50 QPushButton* button_loadNormal;
53 QPushButton* button_loadBurst;
51 QPushButton* button_loadBurst;
54 QPushButton* button_loadSBM1;
52 QPushButton* button_loadSBM1;
55 QPushButton* button_loadSBM2;
53 QPushButton* button_loadSBM2;
56 QPushButton* button_parameterDump;
54 QPushButton* button_parameterDump;
57 //
55 //
58 QLabel* sy_lfr_bw;
56 QLabel* sy_lfr_bw;
59 QLabel* sy_lfr_sp0;
57 QLabel* sy_lfr_sp0;
60 QLabel* sy_lfr_sp1;
58 QLabel* sy_lfr_sp1;
61 QLabel* sy_lfr_r0;
59 QLabel* sy_lfr_r0;
62 QLabel* sy_lfr_r1;
60 QLabel* sy_lfr_r1;
63 //
61 //
64 QLabel* sy_lfr_n_swf_l;
62 QLabel* sy_lfr_n_swf_l;
65 QLabel* sy_lfr_n_swf_p;
63 QLabel* sy_lfr_n_swf_p;
66 QLabel* sy_lfr_n_asm_p;
64 QLabel* sy_lfr_n_asm_p;
67 QLabel* sy_lfr_n_bp_p0;
65 QLabel* sy_lfr_n_bp_p0;
68 QLabel* sy_lfr_n_bp_p1;
66 QLabel* sy_lfr_n_bp_p1;
69 //
67 //
70 QLabel* sy_lfr_b_bp_p0;
68 QLabel* sy_lfr_b_bp_p0;
71 QLabel* sy_lfr_b_bp_p1;
69 QLabel* sy_lfr_b_bp_p1;
72 //
70 //
73 QLabel* sy_lfr_s1_bp_p0;
71 QLabel* sy_lfr_s1_bp_p0;
74 QLabel* sy_lfr_s1_bp_p1;
72 QLabel* sy_lfr_s1_bp_p1;
75 //
73 //
76 QLabel* sy_lfr_s2_bp_p0;
74 QLabel* sy_lfr_s2_bp_p0;
77 QLabel* sy_lfr_s2_bp_p1;
75 QLabel* sy_lfr_s2_bp_p1;
78
76
79 QSpinBox* spinbox_sy_lfr_bw;
77 QSpinBox* spinbox_sy_lfr_bw;
80 QSpinBox* spinbox_sy_lfr_sp0;
78 QSpinBox* spinbox_sy_lfr_sp0;
81 QSpinBox* spinbox_sy_lfr_sp1;
79 QSpinBox* spinbox_sy_lfr_sp1;
82 QSpinBox* spinbox_sy_lfr_r0;
80 QSpinBox* spinbox_sy_lfr_r0;
83 QSpinBox* spinbox_sy_lfr_r1;
81 QSpinBox* spinbox_sy_lfr_r1;
84 //
82 //
85 QSpinBox* spinbox_sy_lfr_n_swf_l;
83 QSpinBox* spinbox_sy_lfr_n_swf_l;
86 QSpinBox* spinbox_sy_lfr_n_swf_p;
84 QSpinBox* spinbox_sy_lfr_n_swf_p;
87 QSpinBox* spinbox_sy_lfr_n_asm_p;
85 QSpinBox* spinbox_sy_lfr_n_asm_p;
88 QSpinBox* spinbox_sy_lfr_n_bp_p0;
86 QSpinBox* spinbox_sy_lfr_n_bp_p0;
89 QSpinBox* spinbox_sy_lfr_n_bp_p1;
87 QSpinBox* spinbox_sy_lfr_n_bp_p1;
90 //
88 //
91 QSpinBox* spinbox_sy_lfr_b_bp_p0;
89 QSpinBox* spinbox_sy_lfr_b_bp_p0;
92 QSpinBox* spinbox_sy_lfr_b_bp_p1;
90 QSpinBox* spinbox_sy_lfr_b_bp_p1;
93 //
91 //
94 QDoubleSpinBox* spinbox_sy_lfr_s1_bp_p0;
92 QDoubleSpinBox* spinbox_sy_lfr_s1_bp_p0;
95 QSpinBox* spinbox_sy_lfr_s1_bp_p1;
93 QSpinBox* spinbox_sy_lfr_s1_bp_p1;
96 //
94 //
97 QSpinBox* spinbox_sy_lfr_s2_bp_p0;
95 QSpinBox* spinbox_sy_lfr_s2_bp_p0;
98 QSpinBox* spinbox_sy_lfr_s2_bp_p1;
96 QSpinBox* spinbox_sy_lfr_s2_bp_p1;
99
97
100 TCPacketToSend* packetToSend;
98 TCPacketToSend* packetToSend;
101
99
102 signals:
100 signals:
103 unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
101 unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
104
102
105 public slots:
103 public slots:
106 void sendParameterDump();
104 void sendParameterDump();
107 void sendLoadCommon();
105 void sendLoadCommon();
108 void sendLoadNormal();
106 void sendLoadNormal();
109 void sendLoadBurst();
107 void sendLoadBurst();
110 void sendLoadSBM1();
108 void sendLoadSBM1();
111 void sendLoadSBM2();
109 void sendLoadSBM2();
112
110
113 };
111 };
114
112
115 #endif // PARAMETERDUMP_H
113 #endif // PARAMETERDUMP_H
@@ -1,52 +1,53
1 #ifndef PARAMS_H
1 #ifndef PARAMS_H
2 #define PARAMS_H
2 #define PARAMS_H
3
3
4 #define XMAX 2048
4 #define XMAX 2048
5 #define YMAX 35000
5 #define YMAX 35000
6 #define FONT_SIZE_WAVEFORM_TITLE 10
6 #define FONT_SIZE_WAVEFORM_TITLE 10
7 #define DEFAULT_SIZE 2048
7 #define DEFAULT_SIZE 2048
8 #define BLK_SIZE 12
8 #define BLK_SIZE 12
9 #define BLK_SIZE_CWF3_LIGHT 6
9
10
10 //****************
11 //****************
11 // TM packets SIDs
12 // TM packets SIDs
12 #define SID_NORMAL_SWF_F0 3
13 #define SID_NORMAL_SWF_F0 3
13 #define SID_NORMAL_SWF_F1 4
14 #define SID_NORMAL_SWF_F1 4
14 #define SID_NORMAL_SWF_F2 5
15 #define SID_NORMAL_SWF_F2 5
15 #define SID_NORMAL_CWF_F3 1
16 #define SID_NORMAL_CWF_F3 1
16 #define SID_NORMAL_ASM_F0 11
17 #define SID_NORMAL_ASM_F0 11
17 #define SID_NORMAL_ASM_F1 12
18 #define SID_NORMAL_ASM_F1 12
18 #define SID_NORMAL_ASM_F2 13
19 #define SID_NORMAL_ASM_F2 13
19 #define SID_NORMAL_BP1_F0 14
20 #define SID_NORMAL_BP1_F0 14
20 #define SID_NORMAL_BP1_F1 15
21 #define SID_NORMAL_BP1_F1 15
21 #define SID_NORMAL_BP1_F2 16
22 #define SID_NORMAL_BP1_F2 16
22 #define SID_NORMAL_BP2_F0 19
23 #define SID_NORMAL_BP2_F0 19
23 #define SID_NORMAL_BP2_F1 20
24 #define SID_NORMAL_BP2_F1 20
24 #define SID_NORMAL_BP2_F2 21
25 #define SID_NORMAL_BP2_F2 21
25 //
26 //
26 #define SID_BURST_CWF_F2 2
27 #define SID_BURST_CWF_F2 2
27 #define SID_BURST_BP1_F0 17
28 #define SID_BURST_BP1_F0 17
28 #define SID_BURST_BP2_F0 22
29 #define SID_BURST_BP2_F0 22
29 #define SID_BURST_BP1_F1 18
30 #define SID_BURST_BP1_F1 18
30 #define SID_BURST_BP2_F1 23
31 #define SID_BURST_BP2_F1 23
31 //
32 //
32 #define SID_SBM1_CWF_F1 24
33 #define SID_SBM1_CWF_F1 24
33 #define SID_SBM1_BP1_F0 28
34 #define SID_SBM1_BP1_F0 28
34 #define SID_SBM1_BP2_F0 31
35 #define SID_SBM1_BP2_F0 31
35 //
36 //
36 #define SID_SBM2_CWF_F2 25
37 #define SID_SBM2_CWF_F2 25
37 #define SID_SBM2_BP1_F0 29
38 #define SID_SBM2_BP1_F0 29
38 #define SID_SBM2_BP2_F0 32
39 #define SID_SBM2_BP2_F0 32
39 #define SID_SBM2_BP1_F1 30
40 #define SID_SBM2_BP1_F1 30
40 #define SID_SBM2_BP2_F1 33
41 #define SID_SBM2_BP2_F1 33
41
42
42 #define TYPE_HK 3
43 #define TYPE_HK 3
43
44
44 #define SUBTYPE_HK 25
45 #define SUBTYPE_HK 25
45
46
46 //*****
47 //*****
47 // RMAP
48 // RMAP
48 #define DEFAULT_DESTINATION_KEY 2
49 #define DEFAULT_DESTINATION_KEY 2
49 #define DEFAULT_SOURCE 1
50 #define DEFAULT_SOURCE 1
50 #define DEFAULT_TARGET 254
51 #define DEFAULT_TARGET 254
51
52
52 #endif // PARAMS_H
53 #endif // PARAMS_H
@@ -1,881 +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 == SID_EXE_INC)
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 == SID_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 == SID_NOT_IMP)
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 == SID_EXE_ERR)
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 == SID_EXE_CORR)
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)
618 {
619 unsigned char segmentationGroupingFlag;
620
621 segmentationGroupingFlag = (unsigned char) (packet->Value[6] >> 6);
622
623 return segmentationGroupingFlag;
624 }
625
617 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
626 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
618 {
627 {
619 unsigned char typ = 0;
628 unsigned char typ = 0;
620
629
621 typ = packet->Value[11]; // TYPE
630 typ = packet->Value[11]; // TYPE
622
631
623 return typ;
632 return typ;
624 }
633 }
625
634
626 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
635 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
627 {
636 {
628 unsigned char sub = 0;
637 unsigned char sub = 0;
629
638
630 sub = packet->Value[12]; // SUBTYPE
639 sub = packet->Value[12]; // SUBTYPE
631
640
632 return sub;
641 return sub;
633 }
642 }
634
643
635 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
644 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
636 {
645 {
637 unsigned int length = 0;
646 unsigned int length = 0;
638
647
639 length = packet->Value[8] * 256 + packet->Value[9];
648 length = packet->Value[8] * 256 + packet->Value[9];
640
649
641 return length;
650 return length;
642 }
651 }
643
652
644 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
653 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
645 {
654 {
646 unsigned int coarse = 0;
655 unsigned int coarse = 0;
647
656
648 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)
649 + packet->Value[16] * pow(2, 8) + packet->Value[17];
658 + packet->Value[16] * pow(2, 8) + packet->Value[17];
650
659
651 return coarse;
660 return coarse;
652 }
661 }
653
662
654 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
663 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
655 {
664 {
656 unsigned int fine = 0;
665 unsigned int fine = 0;
657
666
658 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
667 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
659
668
660 return fine;
669 return fine;
661 }
670 }
662
671
663 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
672 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
664 unsigned char pid, unsigned char cat,
673 unsigned char pid, unsigned char cat,
665 unsigned char typ, unsigned char sub)
674 unsigned char typ, unsigned char sub)
666 {
675 {
667 unsigned int sid = 0;
676 unsigned int sid = 0;
668 QByteArray packetAsAnArray;
677 QByteArray packetAsAnArray;
669 QString packetName;
678 QString packetName;
670 QTime currentTime;
679 QTime currentTime;
671 QDate currentDate;
680 QDate currentDate;
672
681
673 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)
674 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
683 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
675 sid = packet->Value[20] * 256 + packet->Value[21];
684 sid = packet->Value[20] * 256 + packet->Value[21];
676 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)
677 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
686 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
678 sid = SID_HK;
687 sid = SID_HK;
679 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)
680 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
689 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
681 sid = SID_PARAMETER_DUMP;
690 sid = SID_PARAMETER_DUMP;
682 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)
683 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
692 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
684 sid = packet->Value[20];
693 sid = packet->Value[20];
685 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)
686 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
695 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
687 sid = packet->Value[20];
696 sid = packet->Value[20];
688
697
689 if (logFileEn == true)
698 if (logFileEn == true)
690 {
699 {
691 packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex();
700 // packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4));
692 *(this->logFileStrm)
701 logFile->write((char *) &packet->Value[4], (packet->size-4));
693 << QDate::currentDate().toString() + " "
702 // *(this->logFileStrm)
694 << QTime::currentTime().toString() << endl
703 // << packetAsAnArray;
695 << packetAsAnArray
696 << endl
697 << endl;
698 }
704 }
699
705
700 if (packetLogFileEn == true)
706 if (packetLogFileEn == true)
701 {
707 {
702 currentTime = QTime::currentTime();
708 currentTime = QTime::currentTime();
703 currentDate = QDate::currentDate();
709 currentDate = QDate::currentDate();
704 packetName = getPacketName( typ, sub, sid);
710 packetName = getPacketName( typ, sub, sid);
705
711
706 *(this->packetLogFileStrm)
712 *(this->packetLogFileStrm)
707 << QString::number(currentDate.year()) + " "
713 << QString::number(currentDate.year()) + " "
708 << QString::number(currentDate.month()) + " "
714 << QString::number(currentDate.month()) + " "
709 << QString::number(currentDate.day()) + " "
715 << QString::number(currentDate.day()) + " "
710 << QTime::currentTime().toString() + ":"
716 << QTime::currentTime().toString() + ":"
711 << QString::number(currentTime.msec()) + " "
717 << QString::number(currentTime.msec()) + " "
712 << packetName
718 << packetName
713 << " time = 0x " + QString::number(
719 << " time = 0x " + QString::number(
714 (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],
715 16).right(8)
721 16).right(8)
716 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
722 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
717 << endl;
723 << endl;
718 }
724 }
719
725
720 return sid;
726 return sid;
721 }
727 }
722
728
723 void TMStatistics::buildFileName()
729 void TMStatistics::buildFileName()
724 {
730 {
725 QString date;
731 QTime time;
726 QString time;
732 QDate date;
733 QString dateTime;
727 QString prefix;
734 QString prefix;
728
735
729 date = QDate::currentDate().toString();
736 date = QDate::currentDate();
730 time = QTime::currentTime().toString();
737 time = QTime::currentTime();
731
738
732 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
739 dateTime = QString::number( date.year() ) + "_"
740 + QString::number( date.month() ) + "_"
741 + QString::number( date.day() ) + "-"
742 + QString::number( time.hour() ) + "_"
743 + QString::number( time.minute() ) + "_"
744 + QString::number( time.second() );
745
746 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
733
747
734 if(this->logFile->isOpen()) this->logFile->close();
748 if(this->logFile->isOpen()) this->logFile->close();
735 this->logFile->setFileName( prefix + "packet_record.data");
749 this->logFile->setFileName( prefix + "packet_record.data");
736 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);
737 }
751 }
738
752
739 void TMStatistics::buildPacketLogFileName()
753 void TMStatistics::buildPacketLogFileName()
740 {
754 {
741 QString date;
755 QTime time;
742 QString time;
756 QDate date;
757 QString dateTime;
743 QString prefix;
758 QString prefix;
744
759
745 date = QDate::currentDate().toString();
760 date = QDate::currentDate();
746 time = QTime::currentTime().toString();
761 time = QTime::currentTime();
747
762
748 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
763 dateTime = QString::number( date.year() ) + "_"
764 + QString::number( date.month() ) + "_"
765 + QString::number( date.day() ) + "-"
766 + QString::number( time.hour() ) + "_"
767 + QString::number( time.minute() ) + "_"
768 + QString::number( time.second() );
769
770 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
749
771
750 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
772 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
751 this->packetLogFile->setFileName( prefix + "packet_log.data");
773 this->packetLogFile->setFileName( prefix + "packet_log.data");
752 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);
753 }
775 }
754
776
755 void TMStatistics::storePackets( int state )
777 void TMStatistics::storePackets( int state )
756 {
778 {
757 if (state == Qt::Checked)
779 if (state == Qt::Checked)
758 {
780 {
759 buildFileName();
781 buildFileName();
760 logFileEn = true;
782 logFileEn = true;
761 }
783 }
762 else
784 else
763 {
785 {
764 if(this->logFile->isOpen()) this->logFile->close();
786 if(this->logFile->isOpen()) this->logFile->close();
765 logFileEn = false;
787 logFileEn = false;
766 }
788 }
767 }
789 }
768
790
769 void TMStatistics::logPackets( int state )
791 void TMStatistics::logPackets( int state )
770 {
792 {
771 if (state == Qt::Checked)
793 if (state == Qt::Checked)
772 {
794 {
773 buildPacketLogFileName();
795 buildPacketLogFileName();
774 packetLogFileEn = true;
796 packetLogFileEn = true;
775 }
797 }
776 else
798 else
777 {
799 {
778 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
800 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
779 packetLogFileEn = false;
801 packetLogFileEn = false;
780 }
802 }
781 }
803 }
782
804
783 void TMStatistics::chooseDir()
805 void TMStatistics::chooseDir()
784 {
806 {
785 QString tmpDefaultStorageDirectory;
807 QString tmpDefaultStorageDirectory;
786 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
808 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
787 "choose the directory",
809 "choose the directory",
788 QDir::homePath(),
810 QDir::homePath(),
789 QFileDialog::ShowDirsOnly);
811 QFileDialog::ShowDirsOnly);
790
812
791 if( !tmpDefaultStorageDirectory.isEmpty() )
813 if( !tmpDefaultStorageDirectory.isEmpty() )
792 {
814 {
793 defaultStorageDirectory = tmpDefaultStorageDirectory;
815 defaultStorageDirectory = tmpDefaultStorageDirectory;
794 }
816 }
795
817
796 label_currentDir->setText(defaultStorageDirectory);
818 label_currentDir->setText(defaultStorageDirectory);
797 }
819 }
798
820
799 void TMStatistics::closeEvent(QCloseEvent *event)
821 void TMStatistics::closeEvent(QCloseEvent *event)
800 {
822 {
801 if(this->logFile->isOpen())
823 if(this->logFile->isOpen())
802 {
824 {
803 this->logFileStrm->flush();
825 this->logFileStrm->flush();
804 this->logFile->waitForBytesWritten(3000);
826 this->logFile->waitForBytesWritten(3000);
805 this->logFile->close();
827 this->logFile->close();
806 }
828 }
807 writeSettings();
829 writeSettings();
808 event->accept();
830 event->accept();
809 }
831 }
810
832
811 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)
812 {
834 {
813 QString packetName = "default";
835 QString packetName = "default";
814 if (type == TM_TYPE_TC_EXE)
836 if (type == TM_TYPE_TC_EXE)
815 {
837 {
816 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";
817 if (subtype == TM_SUBTYPE_EXE_NOK)
839 if (subtype == TM_SUBTYPE_EXE_NOK)
818 {
840 {
819 if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
841 if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
820 if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
842 if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
821 if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
843 if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
822 if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR";
844 if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR";
823 if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED";
845 if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED";
824 }
846 }
825 }
847 }
826 if (type == TM_TYPE_HK)
848 if (type == TM_TYPE_HK)
827 {
849 {
828 if (subtype == TM_SUBTYPE_HK)
850 if (subtype == TM_SUBTYPE_HK)
829 {
851 {
830 if (sid == SID_HK) packetName = "TM_LFR_HK";
852 if (sid == SID_HK) packetName = "TM_LFR_HK";
831 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
853 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
832 }
854 }
833 }
855 }
834 if (type == TM_TYPE_LFR_SCIENCE)
856 if (type == TM_TYPE_LFR_SCIENCE)
835 {
857 {
836 if (subtype == TM_SUBTYPE_SCIENCE)
858 if (subtype == TM_SUBTYPE_SCIENCE)
837 {
859 {
838 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";
839 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";
840 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";
841 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";
842 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";
843 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";
844 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";
845 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";
846 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";
847 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";
848 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";
849 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";
850 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";
851 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";
852 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";
853 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";
854 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";
855 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";
856 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";
857 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";
858 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";
859 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";
860 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";
861 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";
862 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";
863 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";
864 }
886 }
865 }
887 }
866
888
867 return packetName;
889 return packetName;
868 }
890 }
869
891
870 void TMStatistics::readSettings()
892 void TMStatistics::readSettings()
871 {
893 {
872 QSettings settings("lpp", "lfrsgse");
894 QSettings settings("lpp", "lfrsgse");
873 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
895 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
874 label_currentDir->setText(defaultStorageDirectory);
896 label_currentDir->setText(defaultStorageDirectory);
875 }
897 }
876
898
877 void TMStatistics::writeSettings()
899 void TMStatistics::writeSettings()
878 {
900 {
879 QSettings settings("lpp", "lfrsgse");
901 QSettings settings("lpp", "lfrsgse");
880 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
902 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
881 }
903 }
@@ -1,249 +1,250
1 #ifndef TMSTATISTICS_H
1 #ifndef TMSTATISTICS_H
2 #define TMSTATISTICS_H
2 #define TMSTATISTICS_H
3
3
4 #include <QWidget>
4 #include <QWidget>
5 #include <QLabel>
5 #include <QLabel>
6 #include <QPushButton>
6 #include <QPushButton>
7 #include <QGridLayout>
7 #include <QGridLayout>
8 #include <QVBoxLayout>
8 #include <QVBoxLayout>
9 #include <QGroupBox>
9 #include <QGroupBox>
10 #include <QFile>
10 #include <QFile>
11 #include <QTextStream>
11 #include <QTextStream>
12 #include <tmpackettoread.h>
12 #include <tmpackettoread.h>
13 #include <ccsds_types.h>
13 #include <ccsds_types.h>
14 #include <QMap>
14 #include <QMap>
15 #include <QCheckBox>
15 #include <QCheckBox>
16
16
17 #define STATISTICS_FONT_SIZE 9
17 #define STATISTICS_FONT_SIZE 9
18
18
19 class TMStatistics : public QWidget
19 class TMStatistics : public QWidget
20 {
20 {
21 Q_OBJECT
21 Q_OBJECT
22 public:
22 public:
23
23
24 explicit TMStatistics(QWidget *parent = 0);
24 explicit TMStatistics(QWidget *parent = 0);
25 void initConstants();
25 void initConstants();
26 void buildMonitor_BURST();
26 void buildMonitor_BURST();
27 void buildMonitor_SBM1();
27 void buildMonitor_SBM1();
28 void buildMonitor_SBM2();
28 void buildMonitor_SBM2();
29 void buildMonitor_NORM();
29 void buildMonitor_NORM();
30 void buildMonitor();
30 void buildMonitor();
31 void incrementUnknown();
31 void incrementUnknown();
32 //
32 //
33 void preProcessPacket(TMPacketToRead *packet);
33 void preProcessPacket(TMPacketToRead *packet);
34 unsigned char getPID(TMPacketToRead *packet);
34 unsigned char getPID(TMPacketToRead *packet);
35 unsigned char getCAT(TMPacketToRead *packet);
35 unsigned char getCAT(TMPacketToRead *packet);
36 unsigned char getSegmentationGroupingFlag(TMPacketToRead *Packet_TM_LFR_HK_str);
36 unsigned char getTYPE(TMPacketToRead *packet);
37 unsigned char getTYPE(TMPacketToRead *packet);
37 unsigned char getSUBTYPE(TMPacketToRead *packet);
38 unsigned char getSUBTYPE(TMPacketToRead *packet);
38 unsigned int getLENGTH(TMPacketToRead *packet);
39 unsigned int getLENGTH(TMPacketToRead *packet);
39 unsigned int getCoarseTime(TMPacketToRead *packet);
40 unsigned int getCoarseTime(TMPacketToRead *packet);
40 unsigned int getFineTime(TMPacketToRead *packet);
41 unsigned int getFineTime(TMPacketToRead *packet);
41 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
42 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
42 QString getPacketName(unsigned char type, unsigned char subtype, unsigned int sid);
43 QString getPacketName(unsigned char type, unsigned char subtype, unsigned int sid);
43 void closeEvent(QCloseEvent *event);
44 void closeEvent(QCloseEvent *event);
44
45
45 unsigned int UNKNOWN_nb;
46 unsigned int UNKNOWN_nb;
46 unsigned int SUCC_nb;
47 unsigned int SUCC_nb;
47 unsigned int INCO_nb;
48 unsigned int INCO_nb;
48 unsigned int NOTE_nb;
49 unsigned int NOTE_nb;
49 unsigned int NOTI_nb;
50 unsigned int NOTI_nb;
50 unsigned int ERRO_nb;
51 unsigned int ERRO_nb;
51 unsigned int CORR_nb;
52 unsigned int CORR_nb;
52 unsigned int HK_nb;
53 unsigned int HK_nb;
53 unsigned int DUMP_nb;
54 unsigned int DUMP_nb;
54 unsigned int NORM_SWF_F0_nb;
55 unsigned int NORM_SWF_F0_nb;
55 unsigned int NORM_SWF_F1_nb;
56 unsigned int NORM_SWF_F1_nb;
56 unsigned int NORM_SWF_F2_nb;
57 unsigned int NORM_SWF_F2_nb;
57 unsigned int NORM_CWF_F3_nb;
58 unsigned int NORM_CWF_F3_nb;
58 unsigned int NORM_ASM_F0_nb;
59 unsigned int NORM_ASM_F0_nb;
59 unsigned int NORM_ASM_F1_nb;
60 unsigned int NORM_ASM_F1_nb;
60 unsigned int NORM_ASM_F2_nb;
61 unsigned int NORM_ASM_F2_nb;
61 unsigned int NORM_BP1_F0_nb;
62 unsigned int NORM_BP1_F0_nb;
62 unsigned int NORM_BP1_F1_nb;
63 unsigned int NORM_BP1_F1_nb;
63 unsigned int NORM_BP1_F2_nb;
64 unsigned int NORM_BP1_F2_nb;
64 unsigned int NORM_BP2_F0_nb;
65 unsigned int NORM_BP2_F0_nb;
65 unsigned int NORM_BP2_F1_nb;
66 unsigned int NORM_BP2_F1_nb;
66 unsigned int NORM_BP2_F2_nb;
67 unsigned int NORM_BP2_F2_nb;
67 //
68 //
68 unsigned int BURST_CWF_F2_nb;
69 unsigned int BURST_CWF_F2_nb;
69 unsigned int BURST_BP1_F0_nb;
70 unsigned int BURST_BP1_F0_nb;
70 unsigned int BURST_BP2_F0_nb;
71 unsigned int BURST_BP2_F0_nb;
71 unsigned int BURST_BP1_F1_nb;
72 unsigned int BURST_BP1_F1_nb;
72 unsigned int BURST_BP2_F1_nb;
73 unsigned int BURST_BP2_F1_nb;
73 unsigned int SBM1_CWF_F1_nb;
74 unsigned int SBM1_CWF_F1_nb;
74 unsigned int SBM1_BP1_F0_nb;
75 unsigned int SBM1_BP1_F0_nb;
75 unsigned int SBM1_BP2_F0_nb;
76 unsigned int SBM1_BP2_F0_nb;
76 unsigned int SBM2_CWF_F2_nb;
77 unsigned int SBM2_CWF_F2_nb;
77 unsigned int SBM2_BP1_F0_nb;
78 unsigned int SBM2_BP1_F0_nb;
78 unsigned int SBM2_BP2_F0_nb;
79 unsigned int SBM2_BP2_F0_nb;
79 unsigned int SBM2_BP1_F1_nb;
80 unsigned int SBM2_BP1_F1_nb;
80 unsigned int SBM2_BP2_F1_nb;
81 unsigned int SBM2_BP2_F1_nb;
81
82
82 //*******
83 //*******
83 // QLabel
84 // QLabel
84 QLabel *label_UNKNOWN;
85 QLabel *label_UNKNOWN;
85 QLabel *label_UNKNOWN_nb;
86 QLabel *label_UNKNOWN_nb;
86 QLabel *label_currentDir;
87 QLabel *label_currentDir;
87
88
88 //***************
89 //***************
89 // TM_LFR_TC_EXE_
90 // TM_LFR_TC_EXE_
90 QLabel *label_SUCC;
91 QLabel *label_SUCC;
91 QLabel *label_INCO;
92 QLabel *label_INCO;
92 QLabel *label_NOTE;
93 QLabel *label_NOTE;
93 QLabel *label_NOTI;
94 QLabel *label_NOTI;
94 QLabel *label_ERRO;
95 QLabel *label_ERRO;
95 QLabel *label_CORR;
96 QLabel *label_CORR;
96 QLabel *label_HK;
97 QLabel *label_HK;
97 QLabel *label_DUMP;
98 QLabel *label_DUMP;
98 //
99 //
99 QLabel *label_SUCC_nb;
100 QLabel *label_SUCC_nb;
100 QLabel *label_INCO_nb;
101 QLabel *label_INCO_nb;
101 QLabel *label_NOTE_nb;
102 QLabel *label_NOTE_nb;
102 QLabel *label_NOTI_nb;
103 QLabel *label_NOTI_nb;
103 QLabel *label_ERRO_nb;
104 QLabel *label_ERRO_nb;
104 QLabel *label_CORR_nb;
105 QLabel *label_CORR_nb;
105 QLabel *label_HK_nb;
106 QLabel *label_HK_nb;
106 QLabel *label_DUMP_nb;
107 QLabel *label_DUMP_nb;
107
108
108 //***********************
109 //***********************
109 // TM_LFR_SCIENCE_NORMAL_
110 // TM_LFR_SCIENCE_NORMAL_
110 QLabel *label_NORM_SWF_F0;
111 QLabel *label_NORM_SWF_F0;
111 QLabel *label_NORM_SWF_F1;
112 QLabel *label_NORM_SWF_F1;
112 QLabel *label_NORM_SWF_F2;
113 QLabel *label_NORM_SWF_F2;
113 QLabel *label_NORM_CWF_F3;
114 QLabel *label_NORM_CWF_F3;
114 QLabel *label_NORM_ASM_F0;
115 QLabel *label_NORM_ASM_F0;
115 QLabel *label_NORM_ASM_F1;
116 QLabel *label_NORM_ASM_F1;
116 QLabel *label_NORM_ASM_F2;
117 QLabel *label_NORM_ASM_F2;
117 QLabel *label_NORM_BP1_F0;
118 QLabel *label_NORM_BP1_F0;
118 QLabel *label_NORM_BP1_F1;
119 QLabel *label_NORM_BP1_F1;
119 QLabel *label_NORM_BP1_F2;
120 QLabel *label_NORM_BP1_F2;
120 QLabel *label_NORM_BP2_F0;
121 QLabel *label_NORM_BP2_F0;
121 QLabel *label_NORM_BP2_F1;
122 QLabel *label_NORM_BP2_F1;
122 QLabel *label_NORM_BP2_F2;
123 QLabel *label_NORM_BP2_F2;
123 //
124 //
124 QLabel *label_NORM_SWF_F0_nb;
125 QLabel *label_NORM_SWF_F0_nb;
125 QLabel *label_NORM_SWF_F1_nb;
126 QLabel *label_NORM_SWF_F1_nb;
126 QLabel *label_NORM_SWF_F2_nb;
127 QLabel *label_NORM_SWF_F2_nb;
127 QLabel *label_NORM_CWF_F3_nb;
128 QLabel *label_NORM_CWF_F3_nb;
128 QLabel *label_NORM_ASM_F0_nb;
129 QLabel *label_NORM_ASM_F0_nb;
129 QLabel *label_NORM_ASM_F1_nb;
130 QLabel *label_NORM_ASM_F1_nb;
130 QLabel *label_NORM_ASM_F2_nb;
131 QLabel *label_NORM_ASM_F2_nb;
131 QLabel *label_NORM_BP1_F0_nb;
132 QLabel *label_NORM_BP1_F0_nb;
132 QLabel *label_NORM_BP1_F1_nb;
133 QLabel *label_NORM_BP1_F1_nb;
133 QLabel *label_NORM_BP1_F2_nb;
134 QLabel *label_NORM_BP1_F2_nb;
134 QLabel *label_NORM_BP2_F0_nb;
135 QLabel *label_NORM_BP2_F0_nb;
135 QLabel *label_NORM_BP2_F1_nb;
136 QLabel *label_NORM_BP2_F1_nb;
136 QLabel *label_NORM_BP2_F2_nb;
137 QLabel *label_NORM_BP2_F2_nb;
137
138
138 //**********************
139 //**********************
139 // TM_LFR_SCIENCE_BURST_
140 // TM_LFR_SCIENCE_BURST_
140 QLabel *label_BURST_CWF_F2;
141 QLabel *label_BURST_CWF_F2;
141 QLabel *label_BURST_BP1_F0;
142 QLabel *label_BURST_BP1_F0;
142 QLabel *label_BURST_BP2_F0;
143 QLabel *label_BURST_BP2_F0;
143 QLabel *label_BURST_BP1_F1;
144 QLabel *label_BURST_BP1_F1;
144 QLabel *label_BURST_BP2_F1;
145 QLabel *label_BURST_BP2_F1;
145 //
146 //
146 QLabel *label_BURST_CWF_F2_nb;
147 QLabel *label_BURST_CWF_F2_nb;
147 QLabel *label_BURST_BP1_F0_nb;
148 QLabel *label_BURST_BP1_F0_nb;
148 QLabel *label_BURST_BP2_F0_nb;
149 QLabel *label_BURST_BP2_F0_nb;
149 QLabel *label_BURST_BP1_F1_nb;
150 QLabel *label_BURST_BP1_F1_nb;
150 QLabel *label_BURST_BP2_F1_nb;
151 QLabel *label_BURST_BP2_F1_nb;
151
152
152 //*********************
153 //*********************
153 // TM_LFR_SCIENCE_SBM1_
154 // TM_LFR_SCIENCE_SBM1_
154 QLabel *label_SBM1_CWF_F1;
155 QLabel *label_SBM1_CWF_F1;
155 QLabel *label_SBM1_BP1_F0;
156 QLabel *label_SBM1_BP1_F0;
156 QLabel *label_SBM1_BP2_F0;
157 QLabel *label_SBM1_BP2_F0;
157 //
158 //
158 QLabel *label_SBM1_CWF_F1_nb;
159 QLabel *label_SBM1_CWF_F1_nb;
159 QLabel *label_SBM1_BP1_F0_nb;
160 QLabel *label_SBM1_BP1_F0_nb;
160 QLabel *label_SBM1_BP2_F0_nb;
161 QLabel *label_SBM1_BP2_F0_nb;
161
162
162 //*********************
163 //*********************
163 // TM_LFR_SCIENCE_SBM2_
164 // TM_LFR_SCIENCE_SBM2_
164 QLabel *label_SBM2_CWF_F2;
165 QLabel *label_SBM2_CWF_F2;
165 QLabel *label_SBM2_BP1_F0;
166 QLabel *label_SBM2_BP1_F0;
166 QLabel *label_SBM2_BP2_F0;
167 QLabel *label_SBM2_BP2_F0;
167 QLabel *label_SBM2_BP1_F1;
168 QLabel *label_SBM2_BP1_F1;
168 QLabel *label_SBM2_BP2_F1;
169 QLabel *label_SBM2_BP2_F1;
169 //
170 //
170 QLabel *label_SBM2_CWF_F2_nb;
171 QLabel *label_SBM2_CWF_F2_nb;
171 QLabel *label_SBM2_BP1_F0_nb;
172 QLabel *label_SBM2_BP1_F0_nb;
172 QLabel *label_SBM2_BP2_F0_nb;
173 QLabel *label_SBM2_BP2_F0_nb;
173 QLabel *label_SBM2_BP1_F1_nb;
174 QLabel *label_SBM2_BP1_F1_nb;
174 QLabel *label_SBM2_BP2_F1_nb;
175 QLabel *label_SBM2_BP2_F1_nb;
175
176
176 //********
177 //********
177 // LAST TM
178 // LAST TM
178 QLabel *label_PID;
179 QLabel *label_PID;
179 QLabel *label_CAT;
180 QLabel *label_CAT;
180 QLabel *label_TYP;
181 QLabel *label_TYP;
181 QLabel *label_SUB;
182 QLabel *label_SUB;
182 QLabel *label_SID;
183 QLabel *label_SID;
183 QLabel *label_SIZ;
184 QLabel *label_SIZ;
184 QLabel *label_coarse_time;
185 QLabel *label_coarse_time;
185 QLabel *label_fine_time;
186 QLabel *label_fine_time;
186 //
187 //
187 QLabel *label_PID_is;
188 QLabel *label_PID_is;
188 QLabel *label_CAT_is;
189 QLabel *label_CAT_is;
189 QLabel *label_TYP_is;
190 QLabel *label_TYP_is;
190 QLabel *label_SUB_is;
191 QLabel *label_SUB_is;
191 QLabel *label_SID_is;
192 QLabel *label_SID_is;
192 QLabel *label_SIZ_is;
193 QLabel *label_SIZ_is;
193 QLabel *label_coarse_time_val;
194 QLabel *label_coarse_time_val;
194 QLabel *label_fine_time_val;
195 QLabel *label_fine_time_val;
195
196
196 // Layouts
197 // Layouts
197 QGridLayout *mainLayout;
198 QGridLayout *mainLayout;
198 QGridLayout *layout_stat; // TM stastictics
199 QGridLayout *layout_stat; // TM stastictics
199 QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_
200 QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_
200 QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_
201 QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_
201 QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_
202 QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_
202 QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_
203 QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_
203 QGridLayout *layout_last; // last TM description
204 QGridLayout *layout_last; // last TM description
204 QVBoxLayout *layout_record;
205 QVBoxLayout *layout_record;
205
206
206 // QPushButton
207 // QPushButton
207 QPushButton *button_reset_stat;
208 QPushButton *button_reset_stat;
208 QPushButton *button_chooseDir;
209 QPushButton *button_chooseDir;
209
210
210 //QCheckBox
211 //QCheckBox
211 QCheckBox *checkbox_record;
212 QCheckBox *checkbox_record;
212 QCheckBox *checkbox_packetLog;
213 QCheckBox *checkbox_packetLog;
213
214
214 QFile *logFile;
215 QFile *logFile;
215 QFile *packetLogFile;
216 QFile *packetLogFile;
216 QTextStream *logFileStrm;
217 QTextStream *logFileStrm;
217 QTextStream *packetLogFileStrm;
218 QTextStream *packetLogFileStrm;
218 bool logFileEn;
219 bool logFileEn;
219 bool packetLogFileEn;
220 bool packetLogFileEn;
220 QString defaultStorageDirectory;
221 QString defaultStorageDirectory;
221
222
222 // QGroupBox
223 // QGroupBox
223 QGroupBox *groupbox_stat;
224 QGroupBox *groupbox_stat;
224 QGroupBox *groupbox_NORM;
225 QGroupBox *groupbox_NORM;
225 QGroupBox *groupbox_BURST;
226 QGroupBox *groupbox_BURST;
226 QGroupBox *groupbox_SBM1;
227 QGroupBox *groupbox_SBM1;
227 QGroupBox *groupbox_SBM2;
228 QGroupBox *groupbox_SBM2;
228 QGroupBox *groupbox_last;
229 QGroupBox *groupbox_last;
229 QGroupBox *groupbox_record;
230 QGroupBox *groupbox_record;
230
231
231 signals:
232 signals:
232
233
233 public slots:
234 public slots:
234 void resetStatistics();
235 void resetStatistics();
235 void updateStatistics(unsigned char pid, unsigned char cat,
236 void updateStatistics(unsigned char pid, unsigned char cat,
236 unsigned char typ, unsigned char sub,
237 unsigned char typ, unsigned char sub,
237 unsigned int sid, unsigned int length,
238 unsigned int sid, unsigned int length,
238 unsigned int coarse_t, unsigned int fine_t);
239 unsigned int coarse_t, unsigned int fine_t);
239 void storePackets(int state);
240 void storePackets(int state);
240 void logPackets(int state);
241 void logPackets(int state);
241 void buildFileName();
242 void buildFileName();
242 void buildPacketLogFileName();
243 void buildPacketLogFileName();
243 void readSettings();
244 void readSettings();
244 void writeSettings();
245 void writeSettings();
245 void chooseDir();
246 void chooseDir();
246
247
247 };
248 };
248
249
249 #endif // TMSTATISTICS_H
250 #endif // TMSTATISTICS_H
@@ -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-08-01T09:15:42. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-08T12:38:17. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
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/wfdisplay/wfdisplay</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</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"></value>
169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></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">Custom Executable</value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</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>
General Comments 0
You need to be logged in to leave comments. Login now