/** ALOE headers */ #include #include #include #include "inputs.h" #include "outputs.h" #include "stats.h" #include "typetools.h" #define PI 3.141592654 int input_i[INPUT_MAX_DATA]; #define MAX_FILTER_LEN 128 float square[MAX_FILTER_LEN]; float mem_i[MAX_FILTER_LEN],mem_q[MAX_FILTER_LEN]; double phase=0.0,error=0.0,error_int=0.0; float y[2]={0.0,0.0}; int process_data(int len) { int nsamples,i; nsamples=typeNsamplesArray(datatype,len); type2int(input_data,input_i,nsamples,datatype); for (i=0;i2*PI) phase-=2*PI; while(phase<-2*PI) phase+=2*PI; /* save error and error_int */ if (i