buba said:
Another big one…
Here is an update on what I have been working on since my last post. I have read all the feedback!
------------------------------------------------------------------------------------------------------------------------------------
- The Cruise function has its own sub menu in the configuration menu where it is possible to set up Cruise as preferred by user.
- It is now possible to operate Cruise with two modes. The first one simply saves the current speed and maintains it and the other mode is settable: you can enter your target speed and it will get to and maintain that speed. There is a new sub field in the odometer field where the target speed is displayed. Switch between the two modes in the configuration menu.
- Completely new Cruise PID controller code. Smoother in all ranges of speed than my first implementation. It works by controlling the PWM to the motor by a custom made PID controller, tuned for safety for now. Can be made more aggressive but I see no need for that.
- Implemented button debounce on both Cruise and Walk Assist. But during testing this has turned out to be quite dangerous. Even for ultra short moments. I have removed this implementation due to safety. Please test out the functions as is and see how they work out.
- New sub menu in the configuration menu, Main Screen Setup, where the user can tailor the main screen. Enable or disable different sub fields in the odometer field. Future updates will enable users to switch out the time measurement for any other data, such as consumed watt-hours or, as user Dameri mentioned in a question, pedal cadence.
- Updated the Wiki and tried to explain all new functions and how they work. Please take a look and read more there: https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Features-and-configurations-for-version-0.18.X-(beta)
------------------------------------------------------------------------------------------------------------------------------------
Do note that all this is still in development. I have submitted a pull request and look forward to Casainho testing out the firmware. And with his approval anyone interested or curious can download the beta and test for themselves. Updates and more improvements are coming!
------------------------------------------------------------------------------------------------------------------------------------
Compressed changelog:
- Main Screen Setup
- Walk Assist
- Cruise
- Adjustable acceleration (current ramp up)
- New odometer sub menu: Current, Average and Max speed
- Experimental higher cadence mode
- Updated wiki
------------------------------------------------------------------------------------------------------------------------------------