Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of modular_signal_processing by
Diff: main.cpp
- Revision:
- 1:4351b05b1685
- Parent:
- 0:3ff1d169670e
- Child:
- 2:319575416324
diff -r 3ff1d169670e -r 4351b05b1685 main.cpp --- a/main.cpp Thu Feb 15 20:27:50 2018 +0000 +++ b/main.cpp Thu Feb 15 20:41:25 2018 +0000 @@ -11,6 +11,8 @@ int const BUFF_LEN = 20; //Length of sample buffer int const ALPHA = 0.5; //Aplha value used for filtering int const OFFSET = 0.2; //Used to ensure normalised values don't be come negative +float const trigger_high = 0.8 +float const trigger_low = 0.6 //Buffers float sample_buffer[BUFF_LEN] = {}; //Circular array storing values from sample interupt