The official code that runs on the FRDM board for the chlorine sensor.
Dependencies: MBed_Adafruit-GPS-Library SDFileSystem mbed GSM_Library
Fork of DCS by
Diff: QAM.h
- Revision:
- 8:6b4a6bcd7694
- Parent:
- 0:d7b2716c5a4f
- Child:
- 14:97611177509b
diff -r 8614e190908b -r 6b4a6bcd7694 QAM.h --- a/QAM.h Fri Mar 06 22:36:44 2015 +0000 +++ b/QAM.h Tue Mar 24 17:04:31 2015 +0000 @@ -9,9 +9,9 @@ { float *taps = firCoeffs; int i, j; - float out[SAMPLE_LENGTH] = {}; + float out[2000] = {}; - for( i = NUM_TAPS; i < SAMPLE_LENGTH; i++ ) + for( i = NUM_TAPS; i < 2000; i++ ) { out[ i ] = 0.0; for( j = 0; j < NUM_TAPS; j++ ){ @@ -22,7 +22,7 @@ } } - for( i = 0; i < SAMPLE_LENGTH; i++ ) + for( i = 0; i < 2000; i++ ) { in[ i ] = out[i]; } @@ -43,6 +43,6 @@ filter(sI, pc); filter(sQ, pc); - return avg_QAM(sI, sQ, SAMPLE_LENGTH); + return avg_QAM(sI, sQ, 2000); }