summaryrefslogtreecommitdiff
path: root/src/components/heartrate/Ptagc.h
blob: 3476636b830a578c2d2b15eab6337c5a6e8b5271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
    };
  }
}