summaryrefslogtreecommitdiff
path: root/src/components/heartrate/Ptagc.h
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-01-20 20:11:56 (GMT)
committerGitHub <noreply@github.com>2021-01-20 20:11:56 (GMT)
commita0f2fa8469f3a2c0f5f2f914ad174029da321cc0 (patch)
tree4ac5f59cd088aea9af51d2d183376de279808e63 /src/components/heartrate/Ptagc.h
parent35d4f6d4875b68ff8fdecb436e3bc0a6f91099f3 (diff)
parent68674cec53e2e2add1c0a0b109e5a0e7d9ed5479 (diff)
Merge pull request #169 from JF002/heartRateSensor
Heart rate sensor
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 0000000..c20de4c
--- /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;
+
+ };
+ }
+}