Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 05-15-2013, 12:57 AM   #1 (permalink)
EcoModding Lurker
 
Join Date: Dec 2011
Location: Sterling, VA
Posts: 27

Civic VX - '94 Honda Civic VX
Thanks: 7
Thanked 7 Times in 5 Posts
Modifying displayed digits/decimals

Hello,

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.

-Rick

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-18-2013, 01:36 AM   #2 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
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.

  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
AndrzejM (05-19-2013)
Reply  Post New Thread






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