Hi!
Finally got around to installing this firmware yesterday, it has made a nice difference to the performance of my bike (somewhat higher cadence, even with a 48v motor on a 48v battery, and more power - top speed on flats went up by maybe 4km/h); thanks to everyone involved
However, I am now trying to address a problem with shifting:
I use integrated gear hubs (previously a Sturmey RX-RK5, now a Rohloff) and find I have to wait too long before the motor stops, and miss some shifts due to this.
It would therefore be nice to be able to
instantly cut power when easing off the pedals for a shift (even without having a gear sensor).
1/ Is there some setting which would already achieve this? Activating the coaster brake setting, perhaps? 'cadence fast stop', from the non-stock-display version of the firmware seems promising too; any thoughts on this?
2/ If not, I could work on it; however, I may need a few pointers ( pun half-intended
) - is there some... reference regarding the structure of the code?
Regarding how it should work:
- Pedal torque, which decreases to (almost) zero twice per rotation, might not be ideal, though I can imagine a very short delay workaround.
- However, if my understanding is correct, the motor also has a cadence sensor? In which case, a quick decrease in pedalling cadence could be interpreted as an instruction to
immediately stop assisting, i.e. as soon as enough decrease is detected, and before the pedals are fully stopped.
- Note to self: will cutting motor power be good enough, or should a very short burst of reverse power be applied, in order to fully cut assist torque?
Cheers!
EDIT:
Found PWM_DUTY_CYCLE_RAMP_DOWN_INVERSE_STEP_* parameters in main.h - I'll try setting them down to 1 tomorrow and see what happens.
EDIT2: Confirmed; simply setting PWM_DUTY_CYCLE_RAMP_DOWN_INVERSE_STEP_DEFAULT to 10 results in much faster ramp down and essentially eliminates mis-shifts for me! Now I just have to improve cooling, increase current limits, and feed battery voltage through a DC boost converter