김보민

finish

Showing 33 changed files with 268 additions and 10 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 -C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: v142에 대한 빌드 도구(플랫폼 도구 집합 = 'v142')를 찾을 수 없습니다. v142 빌드 도구를 사용하여 빌드하려면 v142 빌드 도구를 설치하십시오. [프로젝트] 메뉴를 선택하거나 솔루션을 마우스 오른쪽 단추로 클릭한 다음 "솔루션 대상 변경"을 선택하여 현재 Visual Studio 도구로 업그레이드할 수도 있습니다. 1 + constellation_main.cpp
2 + constellation.vcxproj -> C:\Users\bomm\Desktop\0509_team2\constellation\Debug\constellation.exe
......
1 -#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0
2 -Debug|Win32|C:\Users\현우\Desktop\0509_team2\constellation\| 2 +Debug|Win32|C:\Users\bomm\Desktop\0509_team2\constellation\|
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 #include "variables.h" 6 #include "variables.h"
7 class Cchannel { 7 class Cchannel {
8 public: 8 public:
9 - Cchannel() {}; 9 + Cchannel();
10 float *s; // trasmitted signal 10 float *s; // trasmitted signal
11 float r[Nbits / Nbitspersymbol*Nsamplespersymbol]; // corrupted signal 11 float r[Nbits / Nbitspersymbol*Nsamplespersymbol]; // corrupted signal
12 void AWGN(); 12 void AWGN();
......
1 +-0.0500758 0.00059402
2 +-0.0568601 0.000762272
3 +-0.0906164 0.000676665
4 +-0.0493577 -0.000852538
5 +-0.0598611 0.000858064
6 +-0.088685 0.000920546
7 +0.20205 -0.000626273
8 +0.184315 -0.000611455
9 +-0.140459 0.000937762
10 +-0.165804 0.000974521
11 +0.166955 -0.000789074
12 +0.105628 -0.000868625
13 +-0.0724708 -0.000627662
14 +-0.0116144 -0.00061859
15 +-0.0351808 0.000500808
16 +0.295689 -0.000840442
17 +-0.0209641 0.000914466
18 +-0.13055 0.000797073
19 +-0.351327 0.000897403
20 +0.375875 -0.000881411
21 +-0.350018 0.000924479
22 +0.273648 0.000397634
23 +0.0171657 0.00076558
24 +0.0417484 0.000603645
25 +-0.00352783 0.000604882
26 +-0.125752 0.000683907
27 +-0.199368 0.000882097
28 +-0.0154154 0.000453516
29 +0.12334 -0.000664115
30 +-0.116077 0.000905843
31 +-0.0834079 0.000737813
32 +0.112634 0.000519804
33 +0.0339485 -0.000566712
34 +-0.0663641 0.000649387
35 +-0.22585 0.000823972
36 +-0.0337484 0.000669977
37 +-0.0151915 -0.000650456
38 +-0.0824011 0.000952675
39 +0.125507 -0.000984811
40 +0.222076 -0.000703295
41 +0.00348528 0.000628991
42 +-0.170863 0.000667234
43 +-0.255836 0.000711031
44 +0.247992 -0.00106428
45 +-0.119652 0.000903198
46 +0.046517 0.000366811
47 +-0.127573 0.000925216
48 +0.189488 0.000383277
49 +-0.0308955 0.000881048
50 +-0.0500216 0.000588558
51 +0.167261 -0.000651932
52 +-0.053449 -0.000679941
53 +-0.00683568 0.000750335
54 +0.0231973 -0.000779884
55 +0.0232313 0.000706732
56 +0.268298 -0.00106244
57 +-0.0722366 0.0009508
58 +-0.00442868 -0.000486168
59 +-0.141135 0.000593245
60 +-0.174958 0.00105423
61 +0.0162652 0.000659563
62 +0.0788943 -0.000465226
63 +0.180488 0.000647417
64 +0.112935 0.000669762
65 +-0.0747194 -0.000425712
66 +0.0715774 -0.000899892
67 +0.0514997 -0.000743572
68 +0.133663 -0.000895273
69 +-0.0644752 -0.000636405
70 +-0.0584024 0.00059374
71 +0.0229444 -0.000907241
72 +-0.0168524 0.000729056
73 +0.0545165 -0.000594236
74 +0.149173 0.000690378
75 +-0.330749 0.000691961
76 +-0.107421 0.0007156
77 +-0.0461772 0.000801649
78 +-0.208322 0.00100848
79 +-0.177103 0.000584503
80 +0.0356146 0.000713105
81 +0.167245 -0.000980218
82 +-0.117338 0.000901516
83 +-0.0311144 -0.000747644
84 +0.242619 -0.000722385
85 +0.345353 -0.000960592
86 +0.0957666 -0.000592514
87 +0.0873934 -0.000921961
88 +0.0652304 -0.000664313
89 +0.141887 -0.00097699
90 +-0.245422 -0.000368882
91 +0.126739 -0.000834779
92 +-0.00236309 -0.000632443
93 +-0.269665 0.000896621
94 +0.0630159 -0.000813177
95 +0.0271692 0.000611095
96 +-0.15403 0.000831826
97 +0.212743 -0.000866319
98 +-0.238425 0.000861305
99 +-0.0203354 0.00038321
100 +-0.21844 0.000637994
101 +-0.23659 0.000816974
102 +-0.17048 -0.000753667
103 +-0.161518 0.000813865
104 +0.092883 -0.000678318
105 +-0.138891 0.000626212
106 +0.239683 -0.000597726
107 +-0.0676977 -0.000695245
108 +-0.334412 0.00109371
109 +0.0179307 0.000647507
110 +-0.117223 0.000583728
111 +-0.211331 0.000981323
112 +0.130338 -0.00059724
113 +0.30818 -0.000965723
114 +-0.110189 0.000750245
115 +-0.0365486 0.000480433
116 +-0.123197 0.000838904
117 +-0.175542 0.00102191
118 +-0.102061 0.000590439
119 +-0.0144397 -0.000754582
120 +0.0141763 -0.00065936
121 +-0.290259 0.000966512
122 +-0.13044 -0.000722501
123 +-0.275011 0.000744075
124 +-0.226793 0.000718157
125 +0.0494321 -0.000787581
126 +0.452941 -0.00102816
127 +0.21816 -0.000748985
128 +0.0835613 -0.000838132
129 +-0.0874114 -0.000544537
130 +-0.386441 0.000791901
131 +0.127463 -0.000825902
132 +-0.174221 0.000692869
133 +0.0477939 -0.00103529
134 +0.0916484 0.000789397
135 +0.192193 0.000544494
136 +-0.0996695 0.000701941
137 +0.185946 -0.0008028
138 +0.0283286 0.000714402
139 +-0.217408 0.000748859
140 +0.0541584 0.000724692
141 +-0.441982 0.00098581
142 +0.271556 -0.000805725
143 +0.273943 -0.00077277
144 +-0.0405087 -0.000828652
145 +-0.0689078 0.000740476
146 +0.00438864 -0.000871653
147 +0.024287 0.000785702
148 +-0.360416 0.00102212
149 +-0.0341822 0.000623447
150 +0.0957901 0.000588998
151 +-0.120589 0.000854135
152 +-0.222657 0.000898629
153 +-0.0835258 -0.000465844
154 +0.421016 -0.00116236
155 +-0.0669614 -0.000749745
156 +-0.126505 -0.000484741
157 +0.101684 -0.00068735
158 +-0.331712 0.00110153
159 +-0.0642628 -0.000538099
160 +-0.157601 0.000836339
161 +0.193138 -0.00104438
162 +-0.197673 0.000734486
163 +-0.322548 0.000862707
164 +0.0404603 -0.000569747
165 +0.086346 -0.000801852
166 +0.409552 -0.00101867
167 +0.300244 -0.000933386
168 +-0.0896341 0.000805407
169 +-0.0467139 -0.000519762
170 +0.0382763 0.000653956
171 +-0.0524892 0.000613446
172 +-0.232657 0.000797638
173 +-0.0622366 -0.000775346
174 +0.0966998 -0.000768945
175 +-0.0680697 0.000916217
176 +0.0544145 -0.000753095
177 +0.122079 0.000602704
178 +-0.113652 0.000607538
179 +0.111613 -0.000747563
180 +0.00577475 -0.000685775
181 +0.156473 -0.000742899
182 +-0.211331 0.000819129
183 +0.237722 -0.0011578
184 +-0.135521 0.000852096
185 +0.120561 -0.000815502
186 +-0.04203 0.000875542
187 +-0.0743152 -0.000657641
188 +-0.346233 0.000819838
189 +-0.0153473 0.000561604
190 +-0.00935187 0.000718723
191 +-0.111507 0.000787318
192 +-0.00853522 -0.000491898
193 +-0.19126 0.000648969
194 +-0.438389 0.00119154
195 +-0.0678034 0.000849761
196 +-0.0232368 -0.000619913
197 +0.312418 -0.000818926
198 +-0.348803 0.000929102
199 +-0.156767 0.00069503
200 +-0.327567 0.00123065
201 +-0.173146 0.000840004
202 +-0.0979873 -0.000437211
203 +0.230804 -0.000946347
204 +-0.193161 -0.000598067
205 +0.0861734 -0.000779166
206 +-0.12192 0.000913778
207 +0.113494 -0.000616811
208 +0.0268915 -0.000725009
209 +0.217593 -0.000739205
210 +-0.049253 -0.000540004
211 +0.278804 -0.0010828
212 +-0.32615 0.000880535
213 +0.312326 -0.000847746
214 +-0.034206 -0.000427823
215 +-0.0839576 0.000650647
216 +-0.0619137 -0.0005554
217 +-0.0324921 -0.000650767
218 +0.00607651 0.000596038
219 +-0.00915543 0.000781213
220 +-0.163212 0.000811206
221 +-0.403649 0.000996275
222 +-0.352075 0.000907068
223 +-0.201395 0.000976248
224 +-0.105688 0.000709492
225 +0.239233 -0.000894152
226 +-0.2328 0.00107018
227 +-0.211667 0.000712158
228 +0.166425 -0.00070677
229 +0.424845 -0.000827424
230 +0.392763 -0.000936725
231 +-0.253396 0.00105152
232 +0.106634 0.000597639
233 +-0.279476 0.000768905
234 +0.129787 -0.000863597
235 +0.189006 -0.00104157
236 +-0.0835529 0.000781779
237 +-0.241639 0.000806553
238 +-0.0848852 -0.00037882
239 +-0.238646 0.00100979
240 +-0.0859448 0.000860407
241 +-0.0875407 0.000555249
242 +-0.0452928 0.000480356
243 +0.495376 -0.00101535
244 +0.05493 -0.000658138
245 +-0.0191868 -0.000742804
246 +0.322613 -0.000914465
247 +-0.0119363 -0.000627356
248 +0.0752818 0.000678407
249 +-0.0409031 -0.000652381
250 +0.251074 -0.000733726
1 #include <iostream> 1 #include <iostream>
2 +#include <fstream>
2 using namespace std; 3 using namespace std;
3 #include "sender.h" 4 #include "sender.h"
4 #include "channel.h" 5 #include "channel.h"
...@@ -18,4 +19,10 @@ void main() { ...@@ -18,4 +19,10 @@ void main() {
18 myEvaluator.Data = mySender.data; 19 myEvaluator.Data = mySender.data;
19 myEvaluator.DecodedData = myReceiver.DecodedData; 20 myEvaluator.DecodedData = myReceiver.DecodedData;
20 myEvaluator.evaluate(); // compare the original and the decoded 21 myEvaluator.evaluate(); // compare the original and the decoded
22 + ofstream fff("cons.txt");
23 + for (int i = 0; i < 500; i += 2) fff << myReceiver.constellation[i] << "\t" << myReceiver.constellation[i + 1] << endl;
24 + fff.close();
25 + cout << "BER " << myEvaluator.BER << endl;
26 + getchar();
27 +
21 } 28 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
6 class Cevaluate { 6 class Cevaluate {
7 public: 7 public:
8 Cevaluate() {}; 8 Cevaluate() {};
9 - char *DecodedData; // from the receiver 9 + int *DecodedData; // from the receiver
10 - char *Data; // from the sender 10 + int *Data; // from the sender
11 void evaluate(); 11 void evaluate();
12 float BER; 12 float BER;
13 }; 13 };
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
5 #include "variables.h" 5 #include "variables.h"
6 class Creceiver { 6 class Creceiver {
7 public: 7 public:
8 - Creceiver() {}; 8 + Creceiver();
9 float *r; // corrupted signal = received signal 9 float *r; // corrupted signal = received signal
10 float constellation[Nbits]; 10 float constellation[Nbits];
11 - char DecodedData[Nbits]; 11 + int DecodedData[Nbits];
12 void demodulate(); 12 void demodulate();
13 }; 13 };
14 #endif 14 #endif
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
4 #include "variables.h" 4 #include "variables.h"
5 class Csender { 5 class Csender {
6 public: 6 public:
7 - Csender() {}; 7 + Csender();
8 - char data[Nbits]; 8 + int data[Nbits];
9 float s[Nbits/Nbitspersymbol*Nsamplespersymbol]; // trasmitted signal 9 float s[Nbits/Nbitspersymbol*Nsamplespersymbol]; // trasmitted signal
10 void transmitData(); 10 void transmitData();
11 }; 11 };
......