summaryrefslogtreecommitdiff
path: root/src/components/heartrate/Ppg.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-05-21 09:38:38 (GMT)
committerGitea <gitea@fake.local>2021-05-21 09:38:38 (GMT)
commitde69905c0647997091d9e385538c96de30be93e6 (patch)
tree4775001d808da520c93a7552da1bea80e7714a30 /src/components/heartrate/Ppg.h
parenta80e782f267cd2424d22da23d809c0c6a8ff8761 (diff)
parent7c9513be8a3bf36fda5706cb0fb1bd6232d42ffd (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/components/heartrate/Ppg.h')
-rw-r--r--src/components/heartrate/Ppg.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/heartrate/Ppg.h b/src/components/heartrate/Ppg.h
index 747ae01..ee07dfc 100644
--- a/src/components/heartrate/Ppg.h
+++ b/src/components/heartrate/Ppg.h
@@ -10,22 +10,21 @@ namespace Pinetime {
public:
explicit Ppg(float spl);
- int Preprocess(float spl);
+ int8_t Preprocess(float spl);
float HeartRate();
void SetOffset(uint16_t i);
void Reset();
private:
- std::array<int, 200> data;
+ std::array<int8_t, 200> data;
size_t dataIndex = 0;
float offset;
Biquad hpf;
Ptagc agc;
Biquad lpf;
-
float ProcessHeartRate();
};
}
-} \ No newline at end of file
+}