summaryrefslogtreecommitdiff
path: root/src/components/heartrate/Ptagc.h
diff options
context:
space:
mode:
authorThe King <27705324+jlukanc1@users.noreply.github.com>2021-01-24 21:01:14 (GMT)
committerGitHub <noreply@github.com>2021-01-24 21:01:14 (GMT)
commit8c3df5f0211e0cc31de90039a73fe48b9a9aafe0 (patch)
tree88fc0671a629b27793a418df76f543c7913b644a /src/components/heartrate/Ptagc.h
parent51c8cadcb78bdbe9013f5aace629c96ed3dfd06f (diff)
parent80838d1e42e83b50188d6237d16c81cfa27781a6 (diff)
Merge branch 'develop' into upstream-dev
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;
+
+ };
+ }
+}