the power levels of a simple PAS control have to be implemented next...
I've implemented it now, the PAS mode is triggered by a torque filter value of 255.
It's simply one line of code. The max motor current of the recent level is ramped with the cadence. The minimum cadence is defined by the PAS timeout, the cadence where the current is reaching the maximum for the level, is defined by the parameter Ramp End. It's a little tricky, you have to devide the value by ten. If you want a threshold cadence of 60/min, you have to set the parameter to 6.0.
With the smallest PAS timeout of 0.1s and 24 pulses per crank revolution, we get a minimum candence of 25/min before the motor starts assisting.
This are quite a lot differences to the UART BBS01 behaviour, but I think we need some experience and user feedback to decide if we need some improvement.
- I don't know, how many pulses per crank revolution the M215 provides on one quadrature line.
- the motor current is controlled, not the battery current --> the motor power is increasing with the cadence.
- no gimmiks like start boost, I'm not familiar with the BBS01 UART parameters, I just know the discussion, that no one knows which parameter has which function....
Firmware for Bafang E-Bike controllers with GD32F303 processors - Implementing simple PAS levels · EBiCS/BAFANG_GD32F303RCT6@9e2f64e
github.com