aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/heartrate/Ppg.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Background heartrate measurementmark90642025-11-051-0/+5
| | | | Co-Authored-By: Patric Gruber <me@patric-gruber.at>
* Atomic HRS reads (#1845)mark90642024-09-221-1/+1
| | | | | | | | | | - Combine the reading of all `HRS3300` registers into one I2C read so data is not partial - Downsizes both HRS and ALS to 16bit as the sensor does not generate larger than 16bit values in its current configuration - Increasing the resolution by 1 bit doubles the sensor acquisition time, since we are already at 10Hz we are never going to use a higher resolution - The PPG algorithm buffers for ALS/HRS are already 16bit anyway - Remove functions for setting gain / drive that are unused throughout the codebase - Calculate constants with constexpr
* Refactored Ppg for frequency based algorithm. (#1486)Ceimour2023-04-301-71/+256
| | | | | | | 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).
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-15/+23
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Move up file header include to topReinhold Gschweicher2021-11-151-1/+1
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-1/+1
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-061-9/+2
| | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* Fix #209. Use int8_t for PPG data arraydavid2021-05-011-5/+5
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-20/+20
|
* fix build warnings in HR implementationpetter2021-01-251-1/+1
|
* Add License/copyright info in HR related files.Jean-François Milants2021-01-171-1/+7
|
* HR Sensor : Add start/stop button to the HeartRate app (the HR sensors stays ↵Jean-François Milants2021-01-171-0/+4
| | | | ON when the app is closed), display the HR value on the Clock app.
* First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2021-01-101-0/+96