diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-01-10 16:57:26 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-01-10 16:57:26 (GMT) |
| commit | 1a582815ba218d2a9047abae92b9f33a3301ffd5 (patch) | |
| tree | 18aa0aeba146d990a0302f4840e870cad1c4ad6f /src/components/heartrate/Ptagc.h | |
| parent | 50ae0ae5e073ac48652e6c26549f9b19655e8da3 (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.h | 18 |
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; + + }; + } +} |
