V001. 2017_11_30 10:21 Working code from Tuesday's lab session.
Fork of 2017_11_28_ELEC347_Coursework by
DSP Coursework ELEC347 2017-2018 Group members: Matthew Thewsey, Thomas Morris, Samuel Waggett, Christopher Hills .
Diff: main.cpp
- Revision:
- 10:3495fff88da7
- Parent:
- 9:91c53a683856
- Child:
- 11:7efb6e4759cc
diff -r 91c53a683856 -r 3495fff88da7 main.cpp --- a/main.cpp Tue Nov 28 15:42:35 2017 +0000 +++ b/main.cpp Thu Nov 30 10:18:21 2017 +0000 @@ -60,7 +60,7 @@ void coeff_update(void) { while(1){ - Fo_Current = FDEF * 39999 + 1; + Fo_Current = FDEF * 22000 + 10; if (abs(Fo_Current - BP_filter.Get_Fo()) > 50) //If Centre Frequency has changed significantly { BP_filter.Update_Fo(Fo_Current); //Update Centre Frequency @@ -78,7 +78,7 @@ BP_filter.Define_Filter(); //Calculate the coefficients //BP_filter.Print_Filter(); //Print the ceofficients printf("Q = %d \t Boost = %f \t Fo = %d\n\r", BP_filter.Get_Q(), BP_filter.Get_Boost(), BP_filter.Get_Fo()); - Thread::wait(500); + Thread::wait(1000); } } @@ -94,5 +94,6 @@ SampLED = 0; //LED Indicates end of sampling + Thread::wait(sample_rate/1000); } } \ No newline at end of file