Quadratic Throtle #226
Replies: 5 comments 22 replies
-
Hey, can you explain what exactly is changed I cant quite understand what I need to change. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hey I just tried this and it's great! So much easier to feather the throttle and start the bike from a stand-still, and you still get full power when you mash the throttle quickly. Thanks for the tip, and I'll definitely keep this :D |
Beta Was this translation helpful? Give feedback.
-
uint8_t normalized_throttle = (uint8_t)((throttle_percent * throttle_percent) / 100); Is there an overflow issue in this code above as throttle_percent is a uint8_t. When I compile with the line below there is an extra byte. uint8_t normalized_throttle = (uint8_t)(((uint16_t)throttle_percent * throttle_percent) / 100); Any thoughts, anyone? |
Beta Was this translation helpful? Give feedback.
-
I flashed this yesterday and it is really nice, thanks for the code. Now I can pre-tension the drivetrain smoothly with just the throttle. I feel like I get lower max motor power now and that makes sense because my Throttle End Voltage (mV) is probably wrong and quadratic throttle makes this even more apparent. I always had it set to 4200mV. What value do you guys use with the stock BBS02 thumb throttle? Has anyone actually measured the throttle voltage range? Wiki says 3600mV, is that correct? What is the highest end voltage that still gives you 100% power? |
Beta Was this translation helpful? Give feedback.
-
Hi @danielnilsson9, i see you added code for quadratic toggle to firmware 1.5.0 but forgot to add it to config tool. |
Beta Was this translation helpful? Give feedback.
-
ive added quadratic throttle for beter control in low currents maybe you would want to implement it in your code.
edited app.c
Beta Was this translation helpful? Give feedback.
All reactions