-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2225d10
commit 8e108e7
Showing
6 changed files
with
128 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,3 +251,11 @@ def import_dec(args): | |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
__author__ = 'yihanjiang' | ||
|
||
''' | ||
This requires to upgrade real value channels to complex channels, which requires quite a lot of engineering. | ||
For now just use BPSK to make things easier. | ||
BPSK is a over-loaded idea: means just real-value channel. | ||
Modulation means each symbol has limited power. | ||
Modulati | ||
Input: continuous value | ||
''' | ||
|
||
def modulation(input_signal, mod_mode = 'bpsk'): | ||
if mod_mode == 'bpsk': | ||
return input_signal | ||
|
||
elif mod_mode == 'continuous_complex': | ||
# build block_len * code_rate / 2 symbols. | ||
pass | ||
|
||
elif mod_mode == 'qpsk': | ||
pass | ||
|
||
elif mod_mode == 'qam': | ||
pass | ||
|
||
|
||
|
||
def demod(rec_signal, demod_mode = 'bpsk'): | ||
if demod_mode == 'bpsk': | ||
return rec_signal | ||
|
||
|
||
|