summaryrefslogtreecommitdiff
path: root/src/components/heartrate/Ptagc.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-01-10 17:57:26 +0100
committerJean-François Milants <jf@codingfield.com>2021-01-10 17:57:26 +0100
commit1a582815ba218d2a9047abae92b9f33a3301ffd5 (patch)
tree18aa0aeba146d990a0302f4840e870cad1c4ad6f /src/components/heartrate/Ptagc.h
parent50ae0ae5e073ac48652e6c26549f9b19655e8da3 (diff)
First implementation of the HR sensor using 100% foss code (ported from waspos)
Diffstat (limited to 'src/components/heartrate/Ptagc.h')
-rw-r--r--src/components/heartrate/Ptagc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/heartrate/Ptagc.h b/src/components/heartrate/Ptagc.h
new file mode 100644
index 00000000..c20de4c0
--- /dev/null
+++ b/src/components/heartrate/Ptagc.h
@@ -0,0 +1,18 @@
+#pragma once
+
+namespace Pinetime {
+ namespace Controllers {
+ class Ptagc {
+ public:
+ Ptagc(float start, float decay, float threshold);
+ float Step(float spl);
+
+ private:
+ float peak;
+ float decay;
+ float boost;
+ float threshold;
+
+ };
+ }
+}