casainho
10 GW
- Joined
- Feb 14, 2011
- Messages
- 6,058
I did a release for V0.6. The issue of speed is corrected. I tested and the firmware works well as before.
I developed a new feature: now assist levels factor are configured on LCD3. We can also choose how many assist levels:
2 things that are not working that we may look at them in the future:
1. watchdog time is not enabled, the code is commented on motor.c other way seems that the controllers is always resetting... it shouldn't, I don't know why...
2. eeprom_write_if_values_changed ()
// 2018.08.29:
// NOTE: the next code gives a problem with motor, when we exchange assist level on LCD3 and
// all the variables all written to EEPROM. As per datasheet, seems each byte takes ~6ms to be written
// I am not sure the issue is the amount of time...
Next I should focus on implementing walk assist level and the speed limit.Yes, I did read all the messages but I don't have time to answer to all of them. And I will be helping EndlessCadence at the speed limiter: https://github.com/OpenSource-EBike-firmware/TongSheng_TSDZ2_motor_controller_firmware/issues/14
I developed a new feature: now assist levels factor are configured on LCD3. We can also choose how many assist levels:
Code:
3: assist level
0: number of assist levels: default value: 5. This is the number of available assist levels, max number is 9.
1: assist level factor: this is the factor (for assist level 1) that is multiplied to the calculated human power that the rider does on the bicycle pedals and will scale the final motor assist level.
x: assist level factor: factor for assist level x -- same as the previous and repeats for the next assist level.
2 things that are not working that we may look at them in the future:
1. watchdog time is not enabled, the code is commented on motor.c other way seems that the controllers is always resetting... it shouldn't, I don't know why...
2. eeprom_write_if_values_changed ()
// 2018.08.29:
// NOTE: the next code gives a problem with motor, when we exchange assist level on LCD3 and
// all the variables all written to EEPROM. As per datasheet, seems each byte takes ~6ms to be written
// I am not sure the issue is the amount of time...
Next I should focus on implementing walk assist level and the speed limit.Yes, I did read all the messages but I don't have time to answer to all of them. And I will be helping EndlessCadence at the speed limiter: https://github.com/OpenSource-EBike-firmware/TongSheng_TSDZ2_motor_controller_firmware/issues/14