-
Notifications
You must be signed in to change notification settings - Fork 4
Working
- The c++ part which record the the pulse, analyse it to detect sleep and plays audio of the user's choice.
- The User interface part which is implemented to view the graphs on a browser.
The main.cpp calls a timer object derived out of CppTimer. The timer is started with a time period
of 2 ms. Every time the timer is fired signal from the ADC, and calculates BPM. When the BPM drops below a certain level, the program enters
the state of maybesleep
. If the state continues for a definite amount of time, then the program puts the sleep variable to True
. When the
sleep variable is True
, another function detects it and forks the process to create a child process to play audio. The pid of the process
which plays audio is killed whenever the subject's beats per minute value gets greater than the threshold.
For further information see Software Documentation
Please take your time and read these instructions carefully.
We provide detailed changes for each release.
Be sure to read the CONTRIBUTING guidelines before reporting a new issue or open a pull request.