Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define ht length #227

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

define ht length #227

wants to merge 6 commits into from

Conversation

ik1xpv
Copy link
Owner

@ik1xpv ik1xpv commented May 15, 2022

#define HTLEN in fft_mt_r2iq.cpp allows manual test other lenght

#define HTLEN in fft_mt_r2iq.cpp allows manual test other lenght
@ik1xpv ik1xpv requested a review from howard0su May 15, 2022 16:12
@ik1xpv ik1xpv marked this pull request as draft May 15, 2022 16:17
@ik1xpv ik1xpv marked this pull request as ready for review May 15, 2022 16:19
Core/fft_mt_r2iq.cpp Outdated Show resolved Hide resolved
@howard0su howard0su changed the title define ht lenght define ht length May 16, 2022
#define HTLEN in config.h
#define _SOFT_TONE_DEBUG in config.h
enables the generation of soft tone
close to 1MHz  with ADC clk 64MHz,
the tone period is an integer factor of  transferSamples.
GUI Rand  CheckBox activates the software generated tone.
@ik1xpv
Copy link
Owner Author

ik1xpv commented May 21, 2022

#define _SOFT_TONE_DEBUG in config.h
enables the generation of soft tone close to 1MHz with ADC clk 64MHz,
the tone period is an integer factor of transferSamples.
GUI Rand CheckBox activates the software generated tone.

image

some defines in config.h
HALF_FFT/4+1
HALF_FFT/2+1 -256
HLFT_FFT/2+1
SWVERSION 1.3.3.Alfa
@ik1xpv
Copy link
Owner Author

ik1xpv commented May 23, 2022

Here the comparison of some ht lengths with real signal stream input bandwidth 2 MHz.
HTcompare2
The distortion increases when length increases toward N/2+1.
The difference does non shows when the _SOFT_TONE_DEBUG is selected instead of the real one.
? maybe related to the transferSamples burst length used by _SOFT_TONE ?

@ik1xpv ik1xpv requested a review from howard0su May 23, 2022 12:48
Test in config,c FFTN_R_ADC  (32768)
htlen => 12289
@ik1xpv
Copy link
Owner Author

ik1xpv commented Jun 9, 2022

If we use a large FFTN_R_ADC (32768) // FFTN used for ADC real stream DDC tested at 2048, 8192, 32768, 131072
in config.h the ht length increases to HTLEN ( HALF_FFT / 4 + 1) => 8193 or even HTLEN ( HALF_FFT * 3 / 8 + 1 ) => 12289.
HTLEN ( HALF_FFT / 2 + 1 ) shows always distortion...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants