From 415ef93dfa40743b6a8844cebf77a10944a8184f Mon Sep 17 00:00:00 2001 From: drowe67 Date: Fri, 13 Apr 2018 06:29:39 +0000 Subject: [PATCH] tofdm working with ldpc decoder git-svn-id: https://svn.code.sf.net/p/freetel/code@3475 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/unittest/tofdm.c | 86 ++++++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 5 deletions(-) diff --git a/codec2-dev/unittest/tofdm.c b/codec2-dev/unittest/tofdm.c index 13659868..b0890d96 100644 --- a/codec2-dev/unittest/tofdm.c +++ b/codec2-dev/unittest/tofdm.c @@ -42,6 +42,8 @@ #include "comp_prim.h" #include "mpdecode_core.h" +#include "HRA_112_112.h" /* generated by ldpc_fsk_lib.m:ldpc_decode() */ + #define NFRAMES 3 #define SAMPLE_CLOCK_OFFSET_PPM 100 #define FOFF_HZ 0.5f @@ -128,6 +130,7 @@ int main(int argc, char *argv[]) int max_samples_per_frame = ofdm_get_max_samples_per_frame(); struct OFDM *ofdm; + int tx_bits[samples_per_frame]; COMP tx[samples_per_frame]; /* one frame of tx samples */ int rx_bits[OFDM_BITSPERFRAME]; /* one frame of rx bits */ @@ -152,13 +155,37 @@ int main(int argc, char *argv[]) int sample_point_log[NFRAMES]; float symbol_likelihood_log[ (CODED_BITSPERFRAME/OFDM_BPS) * (1<