diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-01-17 16:33:45 +0100 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-01-17 16:33:45 +0100 |
commit | 3a3a14115a81b9dd2c6f839c0ad1b14d04367642 (patch) | |
tree | 1d3572d42e872a0f6151a2d2c5acfdcb19c96643 /src/components/heartrate/Ptagc.cpp | |
parent | 04063cf0af29e09946bf3d1fa77ae91235cd8b84 (diff) |
Add License/copyright info in HR related files.
Diffstat (limited to 'src/components/heartrate/Ptagc.cpp')
-rw-r--r-- | src/components/heartrate/Ptagc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/heartrate/Ptagc.cpp b/src/components/heartrate/Ptagc.cpp index 9302af97..dd7c4411 100644 --- a/src/components/heartrate/Ptagc.cpp +++ b/src/components/heartrate/Ptagc.cpp @@ -1,8 +1,15 @@ +/* + SPDX-License-Identifier: LGPL-3.0-or-later + Original work Copyright (C) 2020 Daniel Thompson + C++ port Copyright (C) 2021 Jean-François Milants +*/ + #include <cmath> #include "Ptagc.h" using namespace Pinetime::Controllers; +/** Original implementation from wasp-os : https://github.com/daniel-thompson/wasp-os/blob/master/wasp/ppg.py */ Ptagc::Ptagc(float start, float decay, float threshold) : peak{start}, decay{decay}, boost{1.0f/decay}, threshold{threshold} { } |