Skip to content
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

I broke my cadence sensor, workaround in software #129

Open
djwlindenaar opened this issue Jan 5, 2020 · 0 comments
Open

I broke my cadence sensor, workaround in software #129

djwlindenaar opened this issue Jan 5, 2020 · 0 comments

Comments

@djwlindenaar
Copy link

So my cadence sensor broke (in a similar way as here )

I'm now on 0.20.0-beta1, so I thought I could still run the motor in Torque mode, since the torque sensor is still working fine. Only, I needed to adapt the code to ignore the cadence signal. I got that working fine (still need to test on a longer drive, but it seems OK during the test drive).

Actually this got me wondering whether we really need the candence sensor. OK, when it's there it is quite nice and allows for quick response to stopping the pedaling. On the other hand, if it is broken, the other sensors (torque and motor speed) should still allow for estimation of the cadence as follows:

if (Torque > 0) // maybe plus some offset to make it more stable
  cadence = motor_cadence * transmission_ratio
else
  cadence = 0

Am I missing something? If you all think this could work, we can implement a setting which would allow anyone with a broken cadence sensor to keep using the bike. Simply by enabling that setting...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant