mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
omit: unused buffer refiq
This commit is contained in:
parent
398eae3106
commit
c4edf2a6eb
3
dsp.c
3
dsp.c
|
|
@ -22,9 +22,7 @@
|
||||||
#include "nanovna.h"
|
#include "nanovna.h"
|
||||||
|
|
||||||
int16_t samp_buf[SAMPLE_LEN];
|
int16_t samp_buf[SAMPLE_LEN];
|
||||||
int16_t ref_state[STATE_LEN];
|
|
||||||
int16_t ref_buf[SAMPLE_LEN];
|
int16_t ref_buf[SAMPLE_LEN];
|
||||||
int16_t refiq_buf[AUDIO_BUFFER_LEN];
|
|
||||||
|
|
||||||
const int16_t sincos_tbl[48][2] = {
|
const int16_t sincos_tbl[48][2] = {
|
||||||
{ 10533, 31029 }, { 27246, 18205 }, { 32698, -2143 }, { 24636, -21605 },
|
{ 10533, 31029 }, { 27246, 18205 }, { 32698, -2143 }, { 24636, -21605 },
|
||||||
|
|
@ -86,6 +84,7 @@ dsp_process(int16_t *capture, size_t length)
|
||||||
void
|
void
|
||||||
calculate_gamma(float gamma[2])
|
calculate_gamma(float gamma[2])
|
||||||
{
|
{
|
||||||
|
// calculate reflection coeff. by samp divide by ref
|
||||||
float rs = acc_ref_s;
|
float rs = acc_ref_s;
|
||||||
float rc = acc_ref_c;
|
float rc = acc_ref_c;
|
||||||
float rr = rs * rs + rc * rc;
|
float rr = rs * rs + rc * rc;
|
||||||
|
|
|
||||||
2
main.c
2
main.c
|
|
@ -272,8 +272,6 @@ duplicate_buffer_to_dump(int16_t *p)
|
||||||
p = samp_buf;
|
p = samp_buf;
|
||||||
else if (dump_selection == 2)
|
else if (dump_selection == 2)
|
||||||
p = ref_buf;
|
p = ref_buf;
|
||||||
else if (dump_selection == 3)
|
|
||||||
p = refiq_buf;
|
|
||||||
memcpy(dump_buffer, p, sizeof dump_buffer);
|
memcpy(dump_buffer, p, sizeof dump_buffer);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -80,13 +80,9 @@ extern int16_t rx_buffer[];
|
||||||
#define STATE_LEN 32
|
#define STATE_LEN 32
|
||||||
#define SAMPLE_LEN 48
|
#define SAMPLE_LEN 48
|
||||||
|
|
||||||
extern int16_t ref_state[];
|
|
||||||
extern int16_t ref_buf[];
|
extern int16_t ref_buf[];
|
||||||
extern int16_t samp_buf[];
|
extern int16_t samp_buf[];
|
||||||
|
|
||||||
//extern int16_t refq_buf[];
|
|
||||||
extern int16_t refiq_buf[];
|
|
||||||
|
|
||||||
void dsp_process(int16_t *src, size_t len);
|
void dsp_process(int16_t *src, size_t len);
|
||||||
void reset_dsp_accumerator(void);
|
void reset_dsp_accumerator(void);
|
||||||
void calculate_gamma(float *gamma);
|
void calculate_gamma(float *gamma);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue