|
||||||
| Scion FR-S / Toyota 86 GT86 General Forum The place to start for the Scion FR-S / Toyota 86 | GT86 |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Senior Member
Join Date: Apr 2012
Drives: 2013 FR-S, Manual, Argento
Location: Saint Paul, Minn.
Posts: 141
Thanks: 307
Thanked 267 Times in 50 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
|
What's up with the number 127.0?
I’ve owned cars before with mpg gauges, and it’s a feature I appreciate. I usually leave the “instant mpg” feature up most of the time I’m driving my daily commute. So here’s my question, which is admittedly irrelevant and doesn’t matter. But does anyone else find it odd that when you’re coasting along, the mpg gauge “maxes out” at 127.0 mpg? What is the significance of this number? Most other cars, when they're getting "infinite" mileage, either show 99 mpg, 999 mpg, go blank, show dashes, or whatever. But to max out at such a specific number? Just seems odd.
BTW -- so far, after about 1300 miles, the cumulative average of my 6MT is 32.7 mpg, which exceeds my expectations and I’m extremely pleased with. Last edited by avusblue; 06-21-2012 at 03:52 PM. |
|
|
|
|
|
#2 |
|
That guy
Join Date: Feb 2012
Drives: Ultramarine mt FR-S
Location: chicago
Posts: 2,370
Thanks: 692
Thanked 1,389 Times in 730 Posts
Mentioned: 71 Post(s)
Tagged: 0 Thread(s)
|
I was in a chevy cruz that capped at 99mpg. If they allow that number to go too high it will skew the average mpg way over what it actually is. By allowing it to get to a higher threshold but not hit 1kmpg it will keep the calculated MPG more true to actual real world performance of the car.
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2012
Drives: 2013 FR-S Hot Lava, 2007 Tundra
Location: Utah
Posts: 174
Thanks: 283
Thanked 117 Times in 50 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
|
It's called "quantization error." It has to do with the minimum volume of fuel which will trigger the "fuel used" sensor. As fuel is consumed, the sensor sends a pulse for every "unit," like a paddlewheel might if it closed a momentary contact every revolution. Yes, you might be using 100 mpg worth of fuel during some interval, but the sensor still sent only one pulse. Same applies to distance traveled.
|
|
|
|
| The Following User Says Thank You to b.e For This Useful Post: | bestwheelbase (06-22-2012) |
|
|
#4 |
|
Senior Member
Join Date: Mar 2012
Drives: 2004 Toyota RAV-4 5M
Location: MD
Posts: 297
Thanks: 13
Thanked 155 Times in 102 Posts
Mentioned: 3 Post(s)
Tagged: 1 Thread(s)
|
Its a computer thing. Most likely they are using an 8 bit number for MPG. So, in other words, they are using 7 bits for the whole number (2^7 = 128, for numbers 0-127) and the final bit for the decimal point.
This may not be exactly right, as it has been a while since I had those early comp sci classes, but the reason for 127 should be related to this. |
|
|
|
| The Following 4 Users Say Thank You to ja1217 For This Useful Post: |
|
|
#5 | |
|
Junior Member
Join Date: Mar 2012
Drives: 07 Impreza Wagon, 04 F150
Location: Western NY, USA
Posts: 9
Thanks: 0
Thanked 3 Times in 1 Post
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
|
Quote:
|
|
|
|
|
| The Following 3 Users Say Thank You to Alkiera For This Useful Post: |
|
|
#6 |
|
Senior Member
Join Date: Jun 2012
Drives: FR-S MT
Location: New England
Posts: 1,081
Thanks: 118
Thanked 483 Times in 241 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
|
MPG estimator is accurate.
For what it is worth, after 8 fill ups, I find that my calculations using the odometer and gas pump are within a few tenths of a gallon of the in-car MPG calculator.
The real-time mpg calculator is pretty useful in comparing driving techniques. For example it is more efficient to drive at 2000 rpm in 6th than the same RPM in 5th. |
|
|
|
|
|
#7 | |
|
Member
Join Date: Dec 2011
Drives: '03 WRX Wagon, '89 Camry Alltrac
Location: Pasadena
Posts: 49
Thanks: 0
Thanked 18 Times in 11 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
|
Quote:
When the car is in gear (MT) and coasting (above say 1200-1300rpm) it really is using no fuel. The injectors never open. The error on the OBC mileage generally comes from imperfectly calculated injector opening time, plus a bit of 'optimistic' engineering (OBC mileage reads ~2mpg better than actual on most cars). -Charlie |
|
|
|
|
| The Following 3 Users Say Thank You to phattyduck For This Useful Post: |
|
|
#8 |
|
First 86
Join Date: Dec 2011
Drives: Whiteout MT FR-S
Location: Parker, CO
Posts: 537
Thanks: 297
Thanked 187 Times in 73 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
|
I'm a EE, and I dork with fixed point math in DSPs and FPGAs all day.
My first thought was that they used an 8-bit signed number, but the fact that there's a decimal place is weird. It could be fixed point as someone said, but that seems unlikely, as it works out to a weird number of bits. Sure it could be 7.9 or something, but that would make your LSB (least significant bit) about .002 MPG, and that's a bit more precision than anyone really needs. It probably actually is an 8-bit signed value, as weird as that may be. Maybe they gave that part of the interface to a co-op. It reminds me of the original Zelda on the NES where you could only get up to 255 rupees (8 bit unsigned value). I'm a nerd. Brett
__________________
Don't shop, adopt!
|
|
|
|
| The Following 4 Users Say Thank You to Brett For This Useful Post: |
|
|
#9 |
|
Senior Member
Join Date: Jan 2012
Drives: Raven / 6MT FR-S
Location: Bay area / California
Posts: 106
Thanks: 12
Thanked 27 Times in 17 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
|
This would make a great puzzler for car talk. I'm an ME and immediately converted MPG into different units to see if it was a round number, but of course it is not. Can we change the units on the display? That would, I think, confirm that it has to do with being an 8 bit number if we see the same pattern.
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Dec 2011
Drives: '13 BRZ Lmtd
Location: Eastern, CT
Posts: 99
Thanks: 22
Thanked 32 Times in 16 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
|
I agree the 127 probably comes from 7 bits before the decimal or 8 bit signed. This value doesn't have anything to do with the accuracy of the average. You compute average MPG from total miles and total fuel since reset. You never just average together the instantaneous MPG, because when the injectors shut off while the car is moving the instantaneous MPG really is infinity: so there is no correct value to choose that would yield a proper average.
Last edited by DSPographer; 06-22-2012 at 06:46 AM. |
|
|
|
|
|
#11 | |
|
Senior Member
Join Date: Aug 2010
Drives: 4 Wheels Auto
Location: Canada
Posts: 1,191
Thanks: 251
Thanked 274 Times in 187 Posts
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
|
Question: for the instantaneous MPG figure, do you have the decimal points shown (e.g. 32.7 MPG)?
When it said it shows 127.0 MPG, we do not know if this is an integer (7-bit or 8-bit), or a floating point number (16/32 bit) or a floating point number with other customized format. Bear in mind that this CPU also needs to be able to display fuel usage number like L/100KM or other units. I would even assume that it can handle the floating point number calculation. Since in integer calculation, you cannot divide past the decimal. So, if the CPU is doing a true floating point calculation, I would think the number 127.0 MPG was randomly chosen by the person and trying to imitate the maximum value of a 8-bit sign number (2^7-1=127) since it is known that the car could never reach 127.0 MPG in real life.
__________________
Quote:
|
|
|
|
|
|
|
#12 | |
|
Rocket Surgeon
Join Date: Apr 2011
Drives: PSM GGA OMG
Location: FL
Posts: 1,312
Thanks: 10
Thanked 141 Times in 84 Posts
Mentioned: 2 Post(s)
Tagged: 1 Thread(s)
|
Quote:
|
|
|
|
|
|
|
#13 | ||
|
Senior Member
Join Date: Aug 2010
Drives: 4 Wheels Auto
Location: Canada
Posts: 1,191
Thanks: 251
Thanked 274 Times in 187 Posts
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
|
Quote:
Does anyone have any idea of the CPU that is used in automotive application. I would be surprise if that does not have a floating point ALU embedded already.
__________________
Quote:
|
||
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Dec 2011
Drives: BRZ and NA
Location: Annapolis, MD
Posts: 878
Thanks: 46
Thanked 270 Times in 167 Posts
Mentioned: 11 Post(s)
Tagged: 2 Thread(s)
|
I'm an embedded software designer, but not for automobiles. Remember that the average mpg reading is basically a calculus operation (area under the curve) of the instantaneous mpg over time. When the instantaneous display reads 127 mpg, it is literally using 0 fuel, which basically means infinite mpg. Since 0 fuel used could really screw up a division, my bet is that they tweak the min fuel used number to give realistic results. On some cars they set it to 99 or 999 mpg. On my VW it used 200 mpg.
I highly doubt that they would use anything less than a standard 32-bit floating point (float in C parlance for most compilers) to represent the MPG. Even they are using 16 bit computers, a half-precision floating point is still capable of representing 2^-14 to 65504. If they are using an floating point processor for this calculation, it would make zero sense to use anything less than a half-precision float. What I've also done in the past is avoid floating point computations all together. The way this can be accomplished it by using a 16 or 32 bit unsigned integer and take known measurements. Then, floating point division can be approximated by algorithms utilizing integer division, multiplication, and bit shifts. Skipping the floating point arithmetic is great for speedy computations on slower computers. Like I said before, I'm an embedded software designer, but not for automobiles. I work with much less capable computers and we have to be conscious of how efficient our algorithms work. My bet is, like I said before, that the 127.0 figure is a decent 'maximum value' for the algorithm to use to produce realistic real world results. |
|
|
|
|
|
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What number do you have? | fayth22 | Scion FR-S / Toyota 86 GT86 General Forum | 88 | 04-24-2017 01:28 PM |
| what is chassis number for 86? | AE25 | Suspension | Chassis | Brakes -- Sponsored by 949 Racing | 20 | 07-15-2013 02:31 AM |
| The number 86 popping up everywhere.. | CSSM | Off-Topic Lounge [WARNING: NO POLITICS] | 19 | 06-19-2012 12:15 PM |
| BRZ number plates NSW AU. | Will | Cars for Sale/Trade | 3 | 06-02-2012 11:13 PM |
| 5AD Spoiler Part Number | djliquidsteele | Cosmetic Modification (Interior/Exterior/Lighting) | 4 | 06-02-2012 12:48 AM |