| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Inspired by https://github.com/InfiniTimeOrg/InfiniTime/pull/827#issuecomment-1881580414.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
These are functions for converting acceleration due to gravity to angles
in degrees, and some statistical analysis including the mean and
variance.
|
| |
|
|
| |
Store history of acceleration values for the y and z axes.
|
| |
|
|
|
|
| |
The accumulated speed was calculated by dividing first and multiplying
after, which results in more rounding errors than if you multiply first
and then divide. The values aren't big enough to overflow.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* ShakeWake: Fixed instant wake after sleep issue in certain positions
Add lastX var to track the previous x acceleration for correct calculation of speed.
Reorder axes for clarity.
---------
Co-authored-by: Isaac <114504394+isaacc27@users.noreply.github.com>
Co-authored-by: FintasticMan <52415484+FintasticMan@users.noreply.github.com>
|
| | |
|
| |
|
|
| |
Also move one-line functions to header.
|
| |
|
|
| |
Could be used for other motion-based algorithms in the future.
|
| | |
|
| |
|
|
|
| |
These could be used for other motion-based algorithms in the future.
Also fix includes.
|
| | |
|
| |
|
|
|
| |
Also add configuration options only available in 13 and 14.
Fixes warning about -fstack-usage in clang-tidy check.
|
| |
|
|
|
| |
Don't enable coding conventions from unrelated projects. Only enable
generic checks.
|
| |
|
|
| |
Code formatting
|
| | |
|
| |
|
|
| |
turn on
|
| |
|
|
|
| |
really just debugging. I want to make it more configurable then high med low.
Position of setting needs a new location...dynamicly adding it currently at the end. Which honestly im fine with.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Don't use relative imports like `../foo.h` as those depend on the
relative position of both files. Rather than that use imports relative
to the `src` directory, which explicitly is part of the include
directories.
|
| | |
|
| |
|
| |
* Add support for BMA425 acceleration sensor.
|
| |
|
|
| |
fails. This allows to boot InfiniTime even if the device cannot initialize.
|
|
|
wrist rotation + app to see the value of the 3 axis in "real time".
|