aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-05-20 01:27:00 +0200
committerJF <JF002@users.noreply.github.com>2023-08-17 21:21:22 +0200
commit2b1eae7f597ea6c210b4c15a73ab5ba116fc5d2a (patch)
tree18ebb6f951857fd8e806a53e1d1738a4ab982b6a /src/displayapp/DisplayApp.cpp
parentcfe21103ea197f98555d5002d389d0c24e7b5544 (diff)
raisewake: Improve raise to wake algorithm
This new algorithm calculates the number of degrees that the wrist has rolled, and checks if that is above a threshold. First it checks if the wrist is still enough for the acceleration values to be considered mostly from gravity. It does this by calculating the mean over the past 2 SystemTask loops, and checking that the variance from that mean is below a threshold. Then it calculates the angle the wrist is being held at, and calculates the difference from the angle some time ago. If this difference is above the threshold, it wakes the watch.
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
0 files changed, 0 insertions, 0 deletions