mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Fix comment
This commit is contained in:
parent
e837578586
commit
4a44ecc37c
2
dsp.c
2
dsp.c
|
|
@ -44,7 +44,7 @@ const int16_t sincos_tbl[48][2] = {
|
|||
void generate_DSP_Table(int offset){
|
||||
float audio_freq = 48000.0;
|
||||
// N = offset * AUDIO_SAMPLES_COUNT / audio_freq; should be integer
|
||||
// AUDIO_SAMPLES_COUNT = N * audio_freq / offset; N - minimum integer value for get integer SAMPLE_LEN
|
||||
// AUDIO_SAMPLES_COUNT = N * audio_freq / offset; N - minimum integer value for get integer AUDIO_SAMPLES_COUNT
|
||||
// Bandwidth on one step = audio_freq / AUDIO_SAMPLES_COUNT
|
||||
float step = 2 * VNA_PI * offset / audio_freq;
|
||||
float v = step/2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue