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
style(preload): (ECG) Semantic variable names in pulse detection See merge request fuchsi/firmware!1