Trip Computer - Why missing values?

DocOfClocks

Well-Known Member
Joined
Mar 7, 2021
Threads
4
Messages
68
Reaction score
123
Location
Ohio, US
Vehicles
Rapid Red Mach-E Premium AWD, CR-V Hybrid
Country flag
Perhaps someone out there with coding experience can explain this, but I can't think of a single reason why a digital display needs to skip digits. For the mi/kwh readout, you never see 2.9, 3.0, 3.2, 3.4, 3.6, etc. Why?
Sponsored

 

timbop

Well-Known Member
First Name
Tim
Joined
Jan 3, 2020
Threads
65
Messages
6,832
Reaction score
14,036
Location
New Jersey
Vehicles
Solar powered 2021 MME ER RWD (CA RT1)
Occupation
Software Engineer
Country flag
My guess is because they are trying to reduce the fluctuations in the display. If they're too precise, then the number will bounce around all the time. I suspect they also have some "fuzzy" logic so that if the computed value varies from 3.19xxx to 3.2xxx they just keep displaying 3.1 rather than ping-ponging between 3.3 and 3.1
 

benk016

Well-Known Member
First Name
Ben
Joined
Nov 12, 2020
Threads
38
Messages
3,265
Reaction score
5,093
Location
Tulsa, Oklahoma
Vehicles
2021 Mustang Mach-E GT
Country flag
I've seen 3.0, 3.1, 3.2, 3.4 and 3.6

It does seem to only update periodically. and There are a few spots I thought it was skipping numbers, but eventually I've seen them.
 

timbop

Well-Known Member
First Name
Tim
Joined
Jan 3, 2020
Threads
65
Messages
6,832
Reaction score
14,036
Location
New Jersey
Vehicles
Solar powered 2021 MME ER RWD (CA RT1)
Occupation
Software Engineer
Country flag
I've seen 3.0, 3.1, 3.2, 3.4 and 3.6

It does seem to only update periodically. and There are a few spots I thought it was skipping numbers, but eventually I've seen them.
I've seen 3.0, 3.1, 3.3, 3.5, and 3.7. I have never seen 3.2, 3.4, or 3.6
 
OP
OP
DocOfClocks

DocOfClocks

Well-Known Member
Joined
Mar 7, 2021
Threads
4
Messages
68
Reaction score
123
Location
Ohio, US
Vehicles
Rapid Red Mach-E Premium AWD, CR-V Hybrid
Country flag
I've seen 3.0, 3.1, 3.2, 3.4 and 3.6

It does seem to only update periodically. and There are a few spots I thought it was skipping numbers, but eventually I've seen them.
Interesting, but in over 2000 miles I've never seen some of these values.
 


Scarpia

Well-Known Member
First Name
Mike
Joined
Jan 5, 2021
Threads
3
Messages
566
Reaction score
918
Location
US
Vehicles
Infinite Blue Premium, Standard Range, RWD
I agree that it only uses certain values, at least in my experience. I am invariably seeing 3.3, 3.5, 3.7, 3.9, 4.1, and 4.4 - and nothing in between those. Very odd. It does make me wonder about the accuracy.

I've been thinking of getting one of the OBD readers, as I'm pretty sure this info would be available. It would be interesting to compare.
 

AZBill

Well-Known Member
First Name
Bill
Joined
May 26, 2021
Threads
12
Messages
1,987
Reaction score
2,314
Location
Arizona
Vehicles
MME CA Route 1, Hummer EV SUT, Escalade IQ
Occupation
Retired
Country flag
The issue is that they are coding with fixed point math, and getting rounding errors when converting to BCD, Binary Coded Decimal, for the display.
Sponsored

 
 







Top