diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-26 03:49:12 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-26 03:49:12 (GMT) |
| commit | 6ef420d2407a4685b56a233f6b0f849e90c6cf49 (patch) | |
| tree | 917f4304cace71ca0d7e472546a1538d8ac991a4 /src/components/heartrate/Ppg.h | |
| parent | 8b7bbf4b84a008e42a0ebba8af316690af696d5b (diff) | |
sans heart
Diffstat (limited to 'src/components/heartrate/Ppg.h')
| -rw-r--r-- | src/components/heartrate/Ppg.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/components/heartrate/Ppg.h b/src/components/heartrate/Ppg.h deleted file mode 100644 index 7000c87..0000000 --- a/src/components/heartrate/Ppg.h +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include <array> -#include <cstddef> -#include <cstdint> -#include "components/heartrate/Biquad.h" -#include "components/heartrate/Ptagc.h" - -namespace Pinetime { - namespace Controllers { - class Ppg { - public: - Ppg(); - int8_t Preprocess(float spl); - float HeartRate(); - - void SetOffset(uint16_t i); - void Reset(); - - private: - std::array<int8_t, 200> data; - size_t dataIndex = 0; - float offset; - Biquad hpf; - Ptagc agc; - Biquad lpf; - - float ProcessHeartRate(); - }; - } -} |
