aboutsummaryrefslogtreecommitdiff
path: root/octave/ofdm_mode.m
diff options
context:
space:
mode:
Diffstat (limited to 'octave/ofdm_mode.m')
-rw-r--r--octave/ofdm_mode.m22
1 files changed, 21 insertions, 1 deletions
diff --git a/octave/ofdm_mode.m b/octave/ofdm_mode.m
index 074fd84..d88f960 100644
--- a/octave/ofdm_mode.m
+++ b/octave/ofdm_mode.m
@@ -134,6 +134,18 @@ function config = ofdm_init_mode(mode="700D")
config.state_machine = "data";
config.amp_scale = 2.5*300E3; config.clip_gain1 = 1.2; config.clip_gain2 = 1.0;
config.txbpf_width_Hz = 400;
+ elseif strcmp(mode,"datac14")
+ Ns=5; config.Np=4; Tcp = 0.005; Ts = 0.018; Nc = 4; config.data_mode = "streaming";
+ config.edge_pilots = 0;
+ config.Ntxtbits = 0; config.Nuwbits = 32; config.bad_uw_errors = 12;
+ config.ftwindow_width = 80; config.timing_mx_thresh = 0.45;
+ config.tx_uw = zeros(1,config.Nuwbits);
+ config.tx_uw(1:24) = [1 1 0 0 1 0 1 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0];
+ config.tx_uw(end-24+1:end) = [1 1 0 0 1 0 1 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0];
+ config.amp_est_mode = 1; config.EsNodB = 3;
+ config.state_machine = "data";
+ config.amp_scale = 2*300E3; config.clip_gain1 = 2; config.clip_gain2 = 1;
+ config.txbpf_width_Hz = 400;
elseif strcmp(mode,"1")
Ns=5; config.Np=10; Tcp=0; Tframe = 0.1; Ts = Tframe/Ns; Nc = 1;
else
@@ -231,9 +243,17 @@ function [code_param Nbitspercodecframe Ncodecframespermodemframe] = codec_to_fr
code_param.coded_bits_per_frame = code_param.data_bits_per_frame + code_param.ldpc_parity_bits_per_frame;
code_param.coded_syms_per_frame = code_param.coded_bits_per_frame/code_param.bits_per_symbol;
end
+ if strcmp(mode, "datac14")
+ load HRA_56_56.txt
+ code_param = ldpc_init_user(HRA_56_56, modulation, mod_order, mapping);
+ code_param.data_bits_per_frame = 40;
+ code_param.coded_bits_per_frame = code_param.data_bits_per_frame + code_param.ldpc_parity_bits_per_frame;
+ code_param.coded_syms_per_frame = code_param.coded_bits_per_frame/code_param.bits_per_symbol;
+ end
if strcmp(mode, "datac0") || strcmp(mode, "datac1") || strcmp(mode, "datac3") ...
|| strcmp(mode, "datac4") || strcmp(mode, "qam16c1") ...
- || strcmp(mode, "qam16c2") || strcmp(mode, "datac5") || strcmp(mode, "datac13")
+ || strcmp(mode, "qam16c2") || strcmp(mode, "datac5") || strcmp(mode, "datac13") ...
+ || strcmp(mode, "datac14")
printf("ldpc_data_bits_per_frame = %d\n", code_param.ldpc_data_bits_per_frame);
printf("ldpc_coded_bits_per_frame = %d\n", code_param.ldpc_coded_bits_per_frame);
printf("ldpc_parity_bits_per_frame = %d\n", code_param.ldpc_parity_bits_per_frame);