diff options
| -rw-r--r-- | octave/ofdm_ldpc_tx.m | 2 | ||||
| -rw-r--r-- | src/comp_prim.h | 2 |
2 files changed, 3 insertions, 1 deletions
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/src/comp_prim.h b/src/comp_prim.h index 4a61feb..e0166d3 100644 --- a/src/comp_prim.h +++ b/src/comp_prim.h @@ -28,6 +28,8 @@ #ifndef __COMP_PRIM__ #define __COMP_PRIM__ +#include <math.h> + /*---------------------------------------------------------------------------*\ FUNCTIONS |
