This is how it is now. Only one extra bit shift compared to before:
Let's say we have an instantaneous throttle step of 0 to MAXIMUM. Time to maximum current is as follows (c-rr is current ramp rate):
c-rr 1 means it reaches maximum current in 16 seconds. (16/1)
c-rr 2 means it reaches maximum current in 8 seconds. (16/2)
c-rr 3 means it reaches maximum current in 5.33 seconds. (16/3)
c-rr 4 means it reaches maximum current in 4 seconds. (16/4)
c-rr 5 means it reaches maximum current in 3.2 seconds. (16/5)
c-rr 6 means it reaches maximum current in 2.7 seconds. (16/6)
c-rr 7 means it reaches maximum current in 2.3 seconds. (16/7)
c-rr 8 means it reaches maximum current in 2 seconds. (16/8)
...
c-rr 16000 means it reaches maximum current in 1mS. (16/16000)
c-rr "anything bigger than 16000" is still 1mS, since the loop is executed at 1kHz.
|