Skip to content

Commit c22e30a

Browse files
authored
Refactored Ppg for frequency based algorithm. (InfiniTimeOrg#1486)
New implementation of the heart rate sensor data processing using a frequency based PPG algorithm. The HRS3300 settings are fine-tuned for better signal to noise at 10Hz. The measurement delay is now set to 100ms. Enable and use the ambient light sensor. FFT implementation based on ArduinoFFT (https://github.com/kosme/arduinoFFT, GPLv3.0).
1 parent 40f7e1c commit c22e30a

26 files changed

+2669
-204
lines changed

src/CMakeLists.txt

+5-7
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,8 @@ list(APPEND SOURCE_FILES
488488
drivers/TwiMaster.cpp
489489

490490
heartratetask/HeartRateTask.cpp
491-
components/heartrate/Ppg.cpp
492-
components/heartrate/Biquad.cpp
493-
components/heartrate/Ptagc.cpp
494491
components/heartrate/HeartRateController.cpp
492+
components/heartrate/Ppg.cpp
495493

496494
buttonhandler/ButtonHandler.cpp
497495
touchhandler/TouchHandler.cpp
@@ -552,8 +550,7 @@ list(APPEND RECOVERY_SOURCE_FILES
552550
components/heartrate/HeartRateController.cpp
553551
heartratetask/HeartRateTask.cpp
554552
components/heartrate/Ppg.cpp
555-
components/heartrate/Biquad.cpp
556-
components/heartrate/Ptagc.cpp
553+
557554
components/motor/MotorController.cpp
558555
components/fs/FS.cpp
559556
buttonhandler/ButtonHandler.cpp
@@ -666,9 +663,10 @@ set(INCLUDE_FILES
666663
drivers/TwiMaster.h
667664
heartratetask/HeartRateTask.h
668665
components/heartrate/Ppg.h
669-
components/heartrate/Biquad.h
670-
components/heartrate/Ptagc.h
671666
components/heartrate/HeartRateController.h
667+
libs/arduinoFFT-develop/src/arduinoFFT.h
668+
libs/arduinoFFT-develop/src/defs.h
669+
libs/arduinoFFT-develop/src/types.h
672670
components/motor/MotorController.h
673671
buttonhandler/ButtonHandler.h
674672
touchhandler/TouchHandler.h

src/components/heartrate/Biquad.cpp

-26
This file was deleted.

src/components/heartrate/Biquad.h

-22
This file was deleted.

0 commit comments

Comments
 (0)