OK. I probably copied it from one of your files in the first place. Do you mind if I add a get_ function to ofdm to capture this calcualtion in a centeral location?
Don On Sat, Aug 04, 2018 at 12:16:51AM -0500, Steve wrote: > That's the way I've been doing it. Deriving the values, based on the config > settings. > > I just ran into a bug though, that when you increase the number of > carriers, you need more pilots! > > Argh... Now I need an Octave compatible random pilot generator. > > Steve > > > On Fri, Aug 3, 2018 at 11:48 PM Don <don_li...@db-reid.com> wrote: > > > Dave or Steve: > > > > In my tst_ofdm_demod unittest for stm32, I need to get the number of > > symbols per frame. > > > > ofdm_demod.c sets coded_syms_per_frame from the LDPC constants but I > > don't have LDPC included (yet). I was using a bunch of the OFDM_* > > constants which I switched to using the config settings. That works. > > > > > > int coded_syms_per_frame = ((ofdm_bitsperframe/ofdm_config->bps) - > > (ofdm_nuwbits/ofdm_config->bps) - > > (ofdm_ntxtbits/ofdm_config->bps)); > > > > > > But it seems awkward, is there a better way to get this? > > > > Don > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Freetel-codec2 mailing list > > Freetel-codec2@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freetel-codec2 mailing list Freetel-codec2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freetel-codec2