Chris Hills
/
2017_11_28_ELEC347_Coursework
Test
Fork of ELEC347_CourseWork by
Revision 10:3495fff88da7, committed 2017-11-30
- Comitter:
- chills
- Date:
- Thu Nov 30 10:18:21 2017 +0000
- Parent:
- 9:91c53a683856
- Commit message:
- V001. ; 2017_11_30 10:18; ; Working code from Tuesday's session.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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