Matthew Thewsey
/
ELEC347_Coursework_NonVariable
Non-variable (TESTEDandWORKING)
Fork of ELEC347_Coursework by
Diff: main.cpp
- Revision:
- 10:3495fff88da7
- Parent:
- 9:91c53a683856
- Child:
- 11:7efb6e4759cc
--- 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