Dependencies:   mbed-dsp mbed

Fork of DSP_200kHz by Mazzeo Research Group

Revision:
81:30d699e951a8
Parent:
78:10b2916b8f5c
Child:
82:f6fbbb8a2139
--- a/Jareds_DSP/demodulate.cpp	Thu Aug 03 17:38:02 2017 +0000
+++ b/Jareds_DSP/demodulate.cpp	Wed Aug 30 00:02:06 2017 +0000
@@ -2,13 +2,15 @@
 
 #define MAX_NUMBER_DEMOD_FREQ 2
 
+#define pre_compute_length 176
+
 #define DEMOD_EXTRA_TABLE_LENGTH 16
 #define TWOPI 6.28318530717959
 
 float *imod[MAX_NUMBER_DEMOD_FREQ];
 float *qmod[MAX_NUMBER_DEMOD_FREQ];
-float demod_Carrier_Frequency[MAX_NUMBER_DEMOD_FREQ] = {200,1000};
-float demod_Table_Length[MAX_NUMBER_DEMOD_FREQ] = {125,25};
+float demod_Carrier_Frequency[MAX_NUMBER_DEMOD_FREQ] = {(100000.0/pre_compute_length),1000};
+float demod_Table_Length[MAX_NUMBER_DEMOD_FREQ] = {pre_compute_length/8,25};
 float demod_Sample_Frequency[MAX_NUMBER_DEMOD_FREQ] = {12500,12500};
 
 void precompute_tables()