aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/motion/MotionController.h
Commit message (Collapse)AuthorAgeFilesLines
* Step counter historyHunman2025-11-081-3/+16
| | | Store 2 days steps history and display yesterday's steps on the Steps screen
* Unconditionally calculate shake speedmark90642025-10-151-1/+0
|
* lowersleep: Improve algorithm by checking wrist angleFintasticMan2024-03-121-3/+5
| | | | Inspired by https://github.com/InfiniTimeOrg/InfiniTime/pull/827#issuecomment-1881580414.
* Only inhibit sleep if motion notifications are enabled, not just Bluetoothapilat2024-01-231-0/+4
|
* lowersleep: Implement Lower to Sleep functionality (#827)FintasticMan2023-08-271-0/+1
|
* raisewake: Improve raise to wake algorithmFinlay Davidson2023-08-171-2/+1
| | | | | | | | | | | | | 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.
* motioncontroller: Add functions for analysisFinlay Davidson2023-08-171-0/+16
| | | | | | These are functions for converting acceleration due to gravity to angles in degrees, and some statistical analysis including the mean and variance.
* motioncontroller: Store acceleration historyFinlay Davidson2023-08-171-6/+6
| | | | Store history of acceleration values for the y and z axes.
* ShakeWake: Fixed instant wake after sleep issue in certain positions (#1691)Isaac2023-06-171-0/+1
| | | | | | | | | | | | * 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>
* MotionController: Remove IsOk variableRiku Isokoski2023-04-161-9/+0
| | | | We should be able to assume MotionController is safe to use.
* raisewake: Change names in line with the style guideFinlay Davidson2023-03-091-2/+2
|
* motioncontroller: Fix clang-tidy warningsFinlay Davidson2023-03-091-6/+11
| | | | Also move one-line functions to header.
* shakewake: Switch to more generic timekeepingFinlay Davidson2023-03-091-3/+6
| | | | Could be used for other motion-based algorithms in the future.
* shakewake: Switch to more generic last* varsFinlay Davidson2023-03-091-6/+8
| | | | | These could be used for other motion-based algorithms in the future. Also fix includes.
* shakewake: Fix names according to style guideFinlay Davidson2023-03-091-4/+8
|
* Format header filesFinlay Davidson2023-01-091-0/+5
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Better Sensitivity UI, Calibration button addedTim Keller2022-01-041-1/+1
|
* Add averaging to wake threshold. Makes it take more then just a "flick" to ↵Tim Keller2022-01-041-0/+1
| | | | turn on
* Add start of settings app for senstivity.Tim Keller2022-01-041-1/+2
| | | | | 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.
* CleanupTim Keller2022-01-041-4/+0
|
* Added Shake to wakeTim Keller2022-01-041-1/+11
|
* Ran clang-formatStephanie2021-12-301-2/+2
|
* Renamed confusing variables and general cleanupStephanie2021-12-301-1/+0
|
* Moved trip meter update to MotionController and changed trip meter logicStephanie2021-12-301-4/+6
|
* Changed lap counter to trip meterStephanie2021-12-301-5/+5
|
* Added "lap" button to step counterStephanie2021-12-301-0/+7
|
* Add MotionService : expose step count and RAW X/Y/Z values to the host.Jean-François Milants2021-10-171-0/+3
|
* Add support for BMA425 acceleration sensor. (#440)JF0022021-06-191-0/+14
| | | * Add support for BMA425 acceleration sensor.
* Merge branch 'develop' ofJoaquim2021-04-261-5/+15
|\ | | | | | | https://github.com/JF002/InfiniTime into StepsApp
| * Changed access modified indentationAvamander2021-04-241-2/+2
| |
| * Reformatted all the files according to clang-format styleAvamander2021-04-241-7/+17
| |
* | New Steps appJoaquim2021-04-191-3/+3
|/ | | | | | Settings to set the steps goal More detail in Motion app New 42px Font
* Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants2021-04-041-2/+5
| | | | fails. This allows to boot InfiniTime even if the device cannot initialize.
* First integration of the motion sensor (bma 421) : step counting + wake on ↵Jean-François Milants2021-04-041-0/+26
wrist rotation + app to see the value of the 3 axis in "real time".