Skip to content

Issue with stroke detection in old-school mechanical FlyWheel #10

Answered by JaapvanEkris
JaapvanEkris asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Lars,

A first solution with decent code and "some" parameters that can be tuned to the machine. I placed the really changed code it in the modified code in the "liquidFlywheel = false" part, as I can't test whether it can be tuned to a waterrower.

First step is the sanity check of the recently gathered currentDt. By simply doing some sanity checks, I was able to reduce the false strokes with 50%. Given the machine it could be less effective, but putting some sane values in there does help. First check is a hard range check (upper and lower), second is a sanity check based on the procentual change with respect to the previous points. When the machine has less datapoints, this can be eas…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@laberning
Comment options

@JaapvanEkris
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by laberning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants