feat(ecg-app): high-pass filter and pulse detection
the high-pass filter (simply subtracting a moving exponential average) improves the clarity of the graph significantly by eliminating much of the muscle movement etc. that is visible otherwise.
detect_pulse
uses this cleaner signal to detect the Q and R spike of the QRS complex to determine the pulse of the user
Merge request reports
Activity
added 3 - Preload 6 - Needs Review labels
changed milestone to %v1.10
assigned to @rahix
Waiting for decision on fuchsi/firmware!1 (merged).
thanks =) From my side this is ready to be merged. I'm thinking about further improvements for the ecg app (a menu to toggle the bias, the leds, the high-pass filter etc.) but would create a new merge request for those once I start working on them.
(of course if there is something you think should be changed before merging just let me know =) )
Edited by fuchsi*added 6 - Needs Testing label and removed 6 - Needs Review label
hmm. The high-pass filter I used is certainly not the one way to clean up the signal so I would be hesitant to add it to epicardium. I played around with the parameters until my graph looked as nice as possible (for me) - but even just plotting the differences between samples instead of the samples themselves (so just subtracting the previous value every time) is pretty good already if you just want to see the pulses. So that is probably what I would suggest to people asking me how to clean up the signal. (And it is simple enough that we don't have to offer it in epicardium imho.)
I agree, that offering the BPM directly would be very nice though. I wanted to have a more in-depth look at epicardium anyways but I'm not quite sure what the API for that should look like tbh.
added 6 - To Be Merged label and removed 6 - Needs Testing label