EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   OpenGauge / MPGuino FE computer (https://ecomodder.com/forum/opengauge-mpguino-fe-computer.html)
-   -   Change "Custom" Screen? (https://ecomodder.com/forum/showthread.php/change-custom-screen-6994.html)

Nevyn 02-05-2009 10:26 AM

Change "Custom" Screen?
 
I think I have it figured out, but I want to check in case I missed something. I want to adjust the "Custom" screen to display like this:
Code:

Instant MPG                    Trip MPG
Instant GPH                    Gals Used


Do do so, I change

Code:

void doDisplayCustom(){displayTripCombo('M','G',instantmpg(),'S',instantmph(),'G','H',instantgph(),'C',current.mpg());}

to be
Code:

void doDisplayCustom(){displayTripCombo('M','G',instantmpg(),'C','M',current.mpg(),'G','H',instantgph(),'G',tank.idleGallons());}
Is that correct? Are the stats called "Current" for "current trip"?

rmccomiskie 02-05-2009 04:54 PM

This might do it:

void doDisplayCustom(){displayTripCombo('M','G',instant mpg(),'M',tank.mpg(),'G','H',instantgph(),'G',tank .gallons());}

The order of the values is Upper Left, Upper Right, Lower Left, Lower Right. There's only room on the display for a single letter label for the two right hand values.

I assume here that you want the instant information on the left and the tank information on the right. So, the 2 right hand values will be reset by pressing the left & middle buttons simultaneously. If you want the current trip instead of the tank, substitute current.mpg() and current.gallons().

dcb 02-05-2009 05:39 PM

FYI, tank.idleGallons() will give you the number of gallons burned at zero mph for the tank. You might want tank.gallons()

Nevyn 02-05-2009 06:36 PM

Instant I'd like on top, and Gallons on bottom. I didn't see tank.gallons when I was glancing over it at work - thanks for that. My 'guino display went blank on me on the way home today, so bust on the new tank of gas. I shut the car door, and an arrow "blipped" on the display in the left char on the top row, and then the display went blank. backlight still went up/down, but that's all I could do. So now that calibration is moot for this tank of gas, I unplugged it and will re-flash the code.


All times are GMT -4. The time now is 09:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com