diff options
| author | drowe67 <[email protected]> | 2023-07-20 08:59:48 +0930 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-20 08:59:48 +0930 |
| commit | 06d4c11e699b0351765f10398abb4f663a984f36 (patch) | |
| tree | 33e22af0814c5b6c3d676f096ae8c2ac8a3ed9f0 /octave | |
| parent | 6588e77f38bdebd7adffe091b22e7760d95d0ccb (diff) | |
| parent | 4d6c143c0abec15e1d6ed1fd95d36f80e6cb7df8 (diff) | |
Merge pull request #3 from drowe67/dr-cleanup21.2.0
Cleanup Part 2
Diffstat (limited to 'octave')
| -rw-r--r-- | octave/esno_est.m | 2 | ||||
| -rw-r--r-- | octave/fdmdv.m | 2 | ||||
| -rw-r--r-- | octave/ldpc.m | 2 | ||||
| -rw-r--r-- | octave/ofdm_ldpc_rx.m | 2 | ||||
| -rw-r--r-- | octave/ofdm_ldpc_tx.m | 2 | ||||
| -rw-r--r-- | octave/ofdm_rx.m | 2 | ||||
| -rw-r--r-- | octave/tcohpsk.m | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/octave/esno_est.m b/octave/esno_est.m index f482fb1..590208c 100644 --- a/octave/esno_est.m +++ b/octave/esno_est.m @@ -1,7 +1,7 @@ % esno_est.m % David Rowe Mar 2017 % -% Functions for esimating Es/No from QPSK symbols, and supporting tests +% Functions for estimating Es/No from QPSK symbols, and supporting tests 1; diff --git a/octave/fdmdv.m b/octave/fdmdv.m index 49b9f61..f13aa26 100644 --- a/octave/fdmdv.m +++ b/octave/fdmdv.m @@ -629,7 +629,7 @@ function snr_dB = calc_snr(f, sig_est, noise_est) endfunction -% sets up test bits system. make sure rand('state', 1) has just beed called +% sets up test bits system. make sure rand('state', 1) has just been called % so we generate the right test_bits pattern! function f = init_test_bits(f) diff --git a/octave/ldpc.m b/octave/ldpc.m index 0938b8d..e9d6ede 100644 --- a/octave/ldpc.m +++ b/octave/ldpc.m @@ -132,7 +132,7 @@ function [detected_data paritychecks] = ldpc_dec(code_param, max_iterations, ... input_decoder_c = bit_likelihood(1:(code_param.ldpc_coded_bits_per_frame-Nunused)); - % insert "very likely" LLRs for unsed data bits (in 1's stuffing case) + % insert "very likely" LLRs for unused data bits (in 1's stuffing case) input_decoder_c = [input_decoder_c(1:code_param.data_bits_per_frame) ... 100*ones(1,Nunused) ... input_decoder_c(code_param.data_bits_per_frame+1:end)]; diff --git a/octave/ofdm_ldpc_rx.m b/octave/ofdm_ldpc_rx.m index 6ef15aa..08d9866 100644 --- a/octave/ofdm_ldpc_rx.m +++ b/octave/ofdm_ldpc_rx.m @@ -58,7 +58,7 @@ function ofdm_ldpc_rx(filename, mode="700D", varargin) % Generate tx frame for BER calcs payload_bits = round(ofdm_rand(code_param.data_bits_per_frame)/32767); - tx_bits = fec_encode(states, code_param, mode, payload_bits, Ncodecframespermodemframe, Nbitspercodecframe); + tx_bits = fec_encode(states, code_param, mode, payload_bits); % Some handy constants diff --git a/octave/ofdm_ldpc_tx.m b/octave/ofdm_ldpc_tx.m index 031c20d..1cdcef5 100644 --- a/octave/ofdm_ldpc_tx.m +++ b/octave/ofdm_ldpc_tx.m @@ -80,7 +80,7 @@ function ofdm_ldpc_tx(filename, mode="700D", N, SNR3kdB=100, channel='awgn', var payload_bits(end-15:end) = unpacked_crc16; end end - [packet_bits bits_per_packet] = fec_encode(states, code_param, mode, payload_bits, Ncodecframespermodemframe, Nbitspercodecframe); + [packet_bits bits_per_packet] = fec_encode(states, code_param, mode, payload_bits); % modulate to create symbols and interleave tx_symbols = []; diff --git a/octave/ofdm_rx.m b/octave/ofdm_rx.m index 55e93cb..fea4b33 100644 --- a/octave/ofdm_rx.m +++ b/octave/ofdm_rx.m @@ -13,7 +13,7 @@ ofdm_rx("test_datac0.raw","datac0","packetsperburst",1) - 3. Burst mode, enable only postamble detecion: + 3. Burst mode, enable only postamble detection: ofdm_rx("test_datac0.raw","datac0","packetsperburst",1, "postambletest") #} diff --git a/octave/tcohpsk.m b/octave/tcohpsk.m index 54bdeb1..2ba49ac 100644 --- a/octave/tcohpsk.m +++ b/octave/tcohpsk.m @@ -201,7 +201,7 @@ acohpsk.Ns = 4; acohpsk.coh_en = 1; acohpsk.Nd = Nd; acohpsk.modulation = 'qpsk'; -acohpsk.do_write_pilot_file = 1; % enable this to dump pilot symbols to C .h file, e.g. if frame params change +acohpsk.do_write_pilot_file = 0; % enable this to dump pilot symbols to C .h file, e.g. if frame params change acohpsk = symbol_rate_init(acohpsk); acohpsk.Ndft = 1024; acohpsk.f_est = afdmdv.Fcentre; |
