04-30-2013, 04:24 AM
|
#19 (permalink)
|
Master EcoModder
Join Date: Oct 2011
Location: Poland
Posts: 840
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(¤t);
} //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."
|
|
|
|