View Single Post
Old 06-04-2009, 02:33 AM   #1533 (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,362
Thanked 1,202 Times in 765 Posts
I've never tried that low of a throttle sample frequency. That's a good point about stuff being added later to the main loop. I get sort of short sighted sometimes. We could always have each of "the stuff" take its turn. Like another counter, with a series of descending

if (counter & 63 == 63) {
}
else if (counter & 31 == 31) {
}
else if (counter & 15 == 15) {
}
...

type of stuff in the main loop to keep the throttle updating fast if it needed to be. I'll try it out at lower frequency once I get a control replacement.

Man, I really need to make a new control section! ya!
__________________
kits and boards
  Reply With Quote