View Single Post
Old 04-08-2014, 08:33 AM   #6420 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
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.
__________________
kits and boards
  Reply With Quote
The Following 5 Users Say Thank You to MPaulHolmes For This Useful Post:
duncan (04-08-2014), flores (04-08-2014), jedsmd (04-08-2014), mpgmike (01-23-2022), thingstodo (04-08-2014)