View Single Post
Old 05-14-2009, 05:02 PM   #3 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

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

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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()));      

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote