From 88068ec5178d77dbc6a15c0987a886b044946cf3 Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Mon, 9 May 2016 14:06:03 +0200 Subject: [PATCH] Got the VCO output inverted (and the signal as well), so now the output and the input are actually in phase. --- csdr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csdr.c b/csdr.c index bde553e..05569c5 100644 --- a/csdr.c +++ b/csdr.c @@ -1987,10 +1987,10 @@ int main(int argc, char *argv[]) FEOF_CHECK; FREAD_C; //pll_cc(&pll, (complexf*)input_buffer, NULL, (complexf*)output_buffer, the_bufsize); - //fprintf(stderr, "| i"); - //pll_cc(&pll, (complexf*)input_buffer, output_buffer, NULL, the_bufsize); - pll_cc(&pll, (complexf*)input_buffer, NULL, (complexf*)output_buffer, the_bufsize); - fwrite(output_buffer, sizeof(complexf), the_bufsize, stdout); + // fprintf(stderr, "| i"); + pll_cc(&pll, (complexf*)input_buffer, output_buffer, NULL, the_bufsize); + //pll_cc(&pll, (complexf*)input_buffer, NULL, (complexf*)output_buffer, the_bufsize); + fwrite(output_buffer, sizeof(float), the_bufsize, stdout); //fprintf(stderr, "| o"); TRY_YIELD; }