-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Background HR #2322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background HR #2322
Conversation
|
Build size and comparison to main:
|
|
Sim fix should be trivial, just a method rename it seems |
|
Merged this onto my main device and will try it out compared to the "old"(er) system. Anything to look out for in particular? |
|
I'm most interested in hearing whether it feels natural in terms of how it behaves when you have screen on measurements interacting with background measurements. Also any bugs ofc :) |
|
Thinking about it, it would actually make a lot of sense if this updated background HR fixes my reboots: Most of the reboots I have encountered have been when I am moving. I usually get a lot on the bike, and not so many just sitting at home. Sometimes when I'm sick and don't go out at all, I noticed uptimes of up to multiple days. All of this points to the idea that the reboots have something to do with me moving. The HR sensor on PineTime is notoriously not very good, if it works at all, when moving. That leads me to believe, that maybe the background HR was responsible for my reboots. So maybe the fail save function in this PR has fixed that. Has anybody noticed similar behavior? |
I'd very much welcome a PR which replaces zero with - everywhere. And TBH we should also refactor it all to expect |
See: #2342 |
JF002
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very similar to what I POC'ed a while ago.
This is still more complex than I'd like it to be
Yeah, I also thought I could make this simpler, but... complexity increased as soon as I tried to handle all use-cases as well :-)
And I think this PR makes a great use of std::optional, which is great!
cb6462c to
8017e88
Compare
Co-Authored-By: Patric Gruber <[email protected]>
8017e88 to
21f9dfb
Compare
|
OK should be good to go now. Will try get InfiniSim PR up soon |
|
@mark9064 InfiniTimeOrg/InfiniSim#180 might serve as a base :) |
|
@JF002 Hoi, ik zou graag even privé met je praten. Heb je een momentje? |
|
Sim PR is up InfiniTimeOrg/InfiniSim#184 Compiles locally |
|
either make the sim work for both code versions or I'll merge the sim PR after this one is merged |

Largely based on #1718
Changes:
lastBpmand the bodge to get correct not enough data messagesAccuracy improvements (second commit)
This is still more complex than I'd like it to be