-   OpenGauge / MPGuino FE computer (
-   -   Modifying displayed digits/decimals (

rickjames8 05-14-2013 11:57 PM

Modifying displayed digits/decimals

I've been using my MPGuino for a couple of weeks now and love it. However, I'm wondering if I can change the number of digits displayed by hacking the code slightly.

For instance, my preferred display is Instant/Current, which reads like this

IM075.45 SP055.43
CM048.34 DI156.65

It takes a second to focus on the info I want. What I'd rather see is:

IM 075.4 SP 55.4
CM 48.3 DI 156

The IM fluctuates so fast, theres no need for 1/100ths accuracy. I don't see myself going over 99mph in the Civic, so 2 digits there is fine. I guess what I'm saying is that I'd sacrifice some accuracy, and remove some leading zeros to have a cleaner screen if it was possible to modify the code. I didn't see a mention of it on the wiki.


nickdigger 05-18-2013 12:36 AM

I posted an improved format() procedure in:

Code hacks - EcoModder

It prints leading spaces instead of zeroes, and you can change the number of digits and decimal places. For example, "format(instantmph(),2,0)" would print "75". Or, "format(instantmph(),5,2)" would print " 75.33".

I think it was written for an earlier version of the code (0.82), but it might work in the current code without too much tweaking. If nothing else, it's a starting point to fix the ugly default.

All times are GMT -4. The time now is 11:35 AM.

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