View Single Post
Old 05-14-2009, 05:02 PM   #3 (permalink)
dcb
Don't Panic
 
dcb's Avatar
 
Join Date: Feb 2008
Location: 3rd rock
Posts: 2,674

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Golf TDI
90 day: 53.56 mpg (US)
Thanks: 7
Thanked 28 Times in 26 Posts
I would suggest changing tDisplay thusly (so current and tank data screens show injector pulses in the upper left instead of mph) :
PHP Code:
//arduino doesn't do well with types defined in a script as parameters, so have to pass as void * and use -> notation.      
void tDisplayvoid r){ //display trip functions.        
  
Trip *= (Trip *)r;      
  
LCD::gotoXY(0,0);LCD::print("IP");LCD::print(format(t->injPulses*1000));LCD::print("MG");LCD::print(format(t->mpg()));      
  
LCD::gotoXY(0,1);LCD::print("MI");LCD::print(format(t->miles()));LCD::print("GA");LCD::print(format(t->gallons()));      

__________________
"I kicked a giant mouse in the butt! Do I have to draw you a diagram?"
  Reply With Quote