김보민

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
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 도구로 업그레이드할 수도 있습니다.
 constellation_main.cpp
constellation.vcxproj -> C:\Users\bomm\Desktop\0509_team2\constellation\Debug\constellation.exe
......
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0
Debug|Win32|C:\Users\현우\Desktop\0509_team2\constellation\|
#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0
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 @@
#include "variables.h"
class Cchannel {
public:
Cchannel() {};
Cchannel();
float *s; // trasmitted signal
float r[Nbits / Nbitspersymbol*Nsamplespersymbol]; // corrupted signal
void AWGN();
......
-0.0500758 0.00059402
-0.0568601 0.000762272
-0.0906164 0.000676665
-0.0493577 -0.000852538
-0.0598611 0.000858064
-0.088685 0.000920546
0.20205 -0.000626273
0.184315 -0.000611455
-0.140459 0.000937762
-0.165804 0.000974521
0.166955 -0.000789074
0.105628 -0.000868625
-0.0724708 -0.000627662
-0.0116144 -0.00061859
-0.0351808 0.000500808
0.295689 -0.000840442
-0.0209641 0.000914466
-0.13055 0.000797073
-0.351327 0.000897403
0.375875 -0.000881411
-0.350018 0.000924479
0.273648 0.000397634
0.0171657 0.00076558
0.0417484 0.000603645
-0.00352783 0.000604882
-0.125752 0.000683907
-0.199368 0.000882097
-0.0154154 0.000453516
0.12334 -0.000664115
-0.116077 0.000905843
-0.0834079 0.000737813
0.112634 0.000519804
0.0339485 -0.000566712
-0.0663641 0.000649387
-0.22585 0.000823972
-0.0337484 0.000669977
-0.0151915 -0.000650456
-0.0824011 0.000952675
0.125507 -0.000984811
0.222076 -0.000703295
0.00348528 0.000628991
-0.170863 0.000667234
-0.255836 0.000711031
0.247992 -0.00106428
-0.119652 0.000903198
0.046517 0.000366811
-0.127573 0.000925216
0.189488 0.000383277
-0.0308955 0.000881048
-0.0500216 0.000588558
0.167261 -0.000651932
-0.053449 -0.000679941
-0.00683568 0.000750335
0.0231973 -0.000779884
0.0232313 0.000706732
0.268298 -0.00106244
-0.0722366 0.0009508
-0.00442868 -0.000486168
-0.141135 0.000593245
-0.174958 0.00105423
0.0162652 0.000659563
0.0788943 -0.000465226
0.180488 0.000647417
0.112935 0.000669762
-0.0747194 -0.000425712
0.0715774 -0.000899892
0.0514997 -0.000743572
0.133663 -0.000895273
-0.0644752 -0.000636405
-0.0584024 0.00059374
0.0229444 -0.000907241
-0.0168524 0.000729056
0.0545165 -0.000594236
0.149173 0.000690378
-0.330749 0.000691961
-0.107421 0.0007156
-0.0461772 0.000801649
-0.208322 0.00100848
-0.177103 0.000584503
0.0356146 0.000713105
0.167245 -0.000980218
-0.117338 0.000901516
-0.0311144 -0.000747644
0.242619 -0.000722385
0.345353 -0.000960592
0.0957666 -0.000592514
0.0873934 -0.000921961
0.0652304 -0.000664313
0.141887 -0.00097699
-0.245422 -0.000368882
0.126739 -0.000834779
-0.00236309 -0.000632443
-0.269665 0.000896621
0.0630159 -0.000813177
0.0271692 0.000611095
-0.15403 0.000831826
0.212743 -0.000866319
-0.238425 0.000861305
-0.0203354 0.00038321
-0.21844 0.000637994
-0.23659 0.000816974
-0.17048 -0.000753667
-0.161518 0.000813865
0.092883 -0.000678318
-0.138891 0.000626212
0.239683 -0.000597726
-0.0676977 -0.000695245
-0.334412 0.00109371
0.0179307 0.000647507
-0.117223 0.000583728
-0.211331 0.000981323
0.130338 -0.00059724
0.30818 -0.000965723
-0.110189 0.000750245
-0.0365486 0.000480433
-0.123197 0.000838904
-0.175542 0.00102191
-0.102061 0.000590439
-0.0144397 -0.000754582
0.0141763 -0.00065936
-0.290259 0.000966512
-0.13044 -0.000722501
-0.275011 0.000744075
-0.226793 0.000718157
0.0494321 -0.000787581
0.452941 -0.00102816
0.21816 -0.000748985
0.0835613 -0.000838132
-0.0874114 -0.000544537
-0.386441 0.000791901
0.127463 -0.000825902
-0.174221 0.000692869
0.0477939 -0.00103529
0.0916484 0.000789397
0.192193 0.000544494
-0.0996695 0.000701941
0.185946 -0.0008028
0.0283286 0.000714402
-0.217408 0.000748859
0.0541584 0.000724692
-0.441982 0.00098581
0.271556 -0.000805725
0.273943 -0.00077277
-0.0405087 -0.000828652
-0.0689078 0.000740476
0.00438864 -0.000871653
0.024287 0.000785702
-0.360416 0.00102212
-0.0341822 0.000623447
0.0957901 0.000588998
-0.120589 0.000854135
-0.222657 0.000898629
-0.0835258 -0.000465844
0.421016 -0.00116236
-0.0669614 -0.000749745
-0.126505 -0.000484741
0.101684 -0.00068735
-0.331712 0.00110153
-0.0642628 -0.000538099
-0.157601 0.000836339
0.193138 -0.00104438
-0.197673 0.000734486
-0.322548 0.000862707
0.0404603 -0.000569747
0.086346 -0.000801852
0.409552 -0.00101867
0.300244 -0.000933386
-0.0896341 0.000805407
-0.0467139 -0.000519762
0.0382763 0.000653956
-0.0524892 0.000613446
-0.232657 0.000797638
-0.0622366 -0.000775346
0.0966998 -0.000768945
-0.0680697 0.000916217
0.0544145 -0.000753095
0.122079 0.000602704
-0.113652 0.000607538
0.111613 -0.000747563
0.00577475 -0.000685775
0.156473 -0.000742899
-0.211331 0.000819129
0.237722 -0.0011578
-0.135521 0.000852096
0.120561 -0.000815502
-0.04203 0.000875542
-0.0743152 -0.000657641
-0.346233 0.000819838
-0.0153473 0.000561604
-0.00935187 0.000718723
-0.111507 0.000787318
-0.00853522 -0.000491898
-0.19126 0.000648969
-0.438389 0.00119154
-0.0678034 0.000849761
-0.0232368 -0.000619913
0.312418 -0.000818926
-0.348803 0.000929102
-0.156767 0.00069503
-0.327567 0.00123065
-0.173146 0.000840004
-0.0979873 -0.000437211
0.230804 -0.000946347
-0.193161 -0.000598067
0.0861734 -0.000779166
-0.12192 0.000913778
0.113494 -0.000616811
0.0268915 -0.000725009
0.217593 -0.000739205
-0.049253 -0.000540004
0.278804 -0.0010828
-0.32615 0.000880535
0.312326 -0.000847746
-0.034206 -0.000427823
-0.0839576 0.000650647
-0.0619137 -0.0005554
-0.0324921 -0.000650767
0.00607651 0.000596038
-0.00915543 0.000781213
-0.163212 0.000811206
-0.403649 0.000996275
-0.352075 0.000907068
-0.201395 0.000976248
-0.105688 0.000709492
0.239233 -0.000894152
-0.2328 0.00107018
-0.211667 0.000712158
0.166425 -0.00070677
0.424845 -0.000827424
0.392763 -0.000936725
-0.253396 0.00105152
0.106634 0.000597639
-0.279476 0.000768905
0.129787 -0.000863597
0.189006 -0.00104157
-0.0835529 0.000781779
-0.241639 0.000806553
-0.0848852 -0.00037882
-0.238646 0.00100979
-0.0859448 0.000860407
-0.0875407 0.000555249
-0.0452928 0.000480356
0.495376 -0.00101535
0.05493 -0.000658138
-0.0191868 -0.000742804
0.322613 -0.000914465
-0.0119363 -0.000627356
0.0752818 0.000678407
-0.0409031 -0.000652381
0.251074 -0.000733726
#include <iostream>
#include <fstream>
using namespace std;
#include "sender.h"
#include "channel.h"
......@@ -18,4 +19,10 @@ void main() {
myEvaluator.Data = mySender.data;
myEvaluator.DecodedData = myReceiver.DecodedData;
myEvaluator.evaluate(); // compare the original and the decoded
ofstream fff("cons.txt");
for (int i = 0; i < 500; i += 2) fff << myReceiver.constellation[i] << "\t" << myReceiver.constellation[i + 1] << endl;
fff.close();
cout << "BER " << myEvaluator.BER << endl;
getchar();
}
\ No newline at end of file
......
......@@ -6,8 +6,8 @@
class Cevaluate {
public:
Cevaluate() {};
char *DecodedData; // from the receiver
char *Data; // from the sender
int *DecodedData; // from the receiver
int *Data; // from the sender
void evaluate();
float BER;
};
......
......@@ -5,10 +5,10 @@
#include "variables.h"
class Creceiver {
public:
Creceiver() {};
Creceiver();
float *r; // corrupted signal = received signal
float constellation[Nbits];
char DecodedData[Nbits];
int DecodedData[Nbits];
void demodulate();
};
#endif
......
......@@ -4,8 +4,8 @@
#include "variables.h"
class Csender {
public:
Csender() {};
char data[Nbits];
Csender();
int data[Nbits];
float s[Nbits/Nbitspersymbol*Nsamplespersymbol]; // trasmitted signal
void transmitData();
};
......