ECUFLash Edit Increment

OpenECU software executables and source code

Moderator: Freon

ECUFLash Edit Increment

Postby jack_of_trades » Thu Feb 28, 2008 10:31 pm

FIrst off, really sorry if this belongs in a Different Section (Mods feel free to move this on me,lol)

Hey guys, I'm trying to find out EXACTLY how the "Edit Increment" value gets calculated into the final value in the Scaling definitons. We are looking at the AFR scaling which is:

ROM to Display f(x)= 14.7*128/x
Display to ROM f(x)= 14.7*128/x

Edit Increment = 0.1

Data Type= uint8

People keep telling me it means the AFR value can be incremented in ".1" values but thats not true.

The values jump like so (decimal values added as well):

7.37882 AFR (255)
7.46667 AFR (252)
7.55663 AFR (249)
7.64878 AFR (246)
7.74321 AFR (243)
7.84000 AFR (240)
7.93924 AFR (237)
8.04103 AFR (234)
...
...etc,etc,etc,
...
18.44710 AFR (102)
18.62970 AFR (101)
18.81600 AFR (100)
19.00610 AFR (99)
19.20000 AFR (98)
19.39790 AFR (97)


I'm also not sure why it only goes to decimal value 97 in the AFR Map but I'm sure the Edit Increment is the reason for that.

I REALLY wanna know the formula used where the Edit Increment value gets entered here.

Any help is greatly appreciated!
User avatar
jack_of_trades
 
Posts: 2
Joined: Wed Feb 27, 2008 9:51 pm
Location: RHode Island

Postby jack_of_trades » Thu Feb 28, 2008 11:40 pm

Nevermind guys, I figured out what was confusing me, derr.

It TRIES to increment the .1 but that value lands between integers (0 to 255 in this case) so it rounds to the nearest integer.

So if it starts at 7.378824 (255) and you increment up 0.1, you land on 7.477824 (251.624) which it can't do because its not a whole number so it rounds to the nearest whole number (252), thusly changing the value on the map to 7.46667 AFR. Maybe this thread will help someone ELSE that gets a brainfart like I did :lol:
User avatar
jack_of_trades
 
Posts: 2
Joined: Wed Feb 27, 2008 9:51 pm
Location: RHode Island


Return to OpenECU Software

Who is online

Users browsing this forum: No registered users and 9 guests

cron