View Single Post
Old 04-30-2013, 04:24 AM   #19 (permalink)
AndrzejM
Master EcoModder
 
AndrzejM's Avatar
 
Join Date: Oct 2011
Location: Poland
Posts: 840

Berta - '97 BMW 318 tds Compact
90 day: 62.03 mpg (US)

Charlie - '07 Citroen C4 Grand Picasso Exclusive
90 day: 37.58 mpg (US)

Corsa - '05 Opel Corsa C
90 day: 53.22 mpg (US)

Mruczek - '03 Audi A2
90 day: 60.61 mpg (US)
Thanks: 185
Thanked 167 Times in 117 Posts
Code changes for v0.86 to have Big RPM gauge

Just find the code and add the code marked in red

Define display func:
Quote:
pFunc displayFuncs[] = { doDisplayCustom, doDisplayInstantCurrent,
doDisplayInstantTank, doDisplayBigInstant, doDisplayBigCurrent,
doDisplayBigTank, doDisplayBigRPM, doDisplayCurrentTripData, doDisplayTankTripData,
doDisplayEOCIdleData, doDisplaySystemInfo, };
Define display func name:
Quote:
displayFuncNames[x++] = PSTR("Custom ");
displayFuncNames[x++] = PSTR("Instant/Current ");
displayFuncNames[x++] = PSTR("Instant/Tank ");
displayFuncNames[x++] = PSTR("BIG Instant ");
displayFuncNames[x++] = PSTR("BIG Current ");
displayFuncNames[x++] = PSTR("BIG Tank ");
displayFuncNames[x++] = PSTR("BIG RPM ");
displayFuncNames[x++] = PSTR("Current ");
displayFuncNames[x++] = PSTR("Tank ");
displayFuncNames[x++] = PSTR("EOC/Idle ");
displayFuncNames[x++] = PSTR("CPU Monitor ");
Display func body:
Quote:
void doDisplayBigTank() {
bigNum(tank.mpg(), "TANK", parms[metricIdx]==1?"L/K ":"MPG ");
}

void doDisplayBigRPM() {
bigNum(instantrpm(), "RPM", parms[metricIdx]==1?"rpm ":"rpm ");
}


void doDisplayCurrentTripData(void) {
tDisplay(&current);
} //display current trip formatted data.
__________________


Quote:
Gerhard Plattner: "The best attitude is to consider fuel saving a kind of sport. Everybody who has enough money for a strong car, can drive fast and hit the pedal. But saving fuel requires concentration, self-control and cleverness. It's a challenge with the nice effect of saving you money that you can use for other more important things."
  Reply With Quote