View Single Post
Old 03-23-2009, 01:09 PM   #623 (permalink)
MazdaMatt
Master EcoModder
 
Join Date: Jun 2008
Location: London, Ontario
Posts: 1,096

2k2Prot5 - '02 Mazda Protege5
90 day: 33.82 mpg (US)
Thanks: 0
Thanked 17 Times in 14 Posts
Wait a tick... i just noticed that it is all happening in a while loop. Don't do that. Use static variables and just keep calling the function at a standard interval like 0.5ms or something... maybe faster if you can.
  Reply With Quote