![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test
Fork of ELEC347_CourseWork by
Diff: main.cpp
- Revision:
- 10:3495fff88da7
- Parent:
- 9:91c53a683856
--- 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