Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-1-software-lab-1
/
0509_team3
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임준영
2019-05-12 20:07:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad72b1c14e193329ce9f221de5f79dc8bfff833b
ad72b1c1
1 parent
8c819ef2
change main.cpp
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
constellation/constellation/constellation_main.cpp
constellation/constellation/constellation_main.cpp
View file @
ad72b1c
#include <iostream>
using
namespace
std
;
#include "sender.h"
#include "sender
2
.h"
#include "channel.h"
#include "receiver.h"
#include "evaluate.h"
...
...
@@ -10,12 +10,25 @@ void main() {
Creceiver
myReceiver
;
Cevaluate
myEvaluator
;
mySender
.
transmitData
();
// generate data[ ], s[ ]
myChannel
.
s
=
mySender
.
s
;
myChannel
.
AWGN
();
// calculate r[ ]
myReceiver
.
r
=
myChannel
.
r
;
myReceiver
.
c0
=
mySender
.
c0
;
myReceiver
.
c1
=
mySender
.
c1
;
myReceiver
.
demodulate
();
// calculate constellation[ ], DecodedData[ ];
myEvaluator
.
Data
=
mySender
.
data
;
myEvaluator
.
DecodedData
=
myReceiver
.
DecodedData
;
myEvaluator
.
At
=
mySender
.
At
;
myEvaluator
.
Bt
=
mySender
.
Bt
;
myEvaluator
.
At_
=
myReceiver
.
At_
;
myEvaluator
.
Bt_
=
myReceiver
.
Bt_
;
//myEvaluator.Data = mySender.data;
//myEvaluator.DecodedData = myReceiver.DecodedData;
myEvaluator
.
evaluate
();
// compare the original and the decoded
getchar
();
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment