Notices
ECU Flash

EvoScan v2.7 MapTracer Bilinear Interpolation

Old Oct 8, 2008 | 01:43 AM
  #1  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
EvoScan v2.7 MapTracer Bilinear Interpolation

How does the Evo ECUs do ignition advance interpolations?
and fuel map interpolation?

has someone pulled the code to get the calculations?

I found this:
http://en.wikipedia.org/wiki/Bilinear_interpolation

I want to calculate what the ECU Target Timing is at each RPM/LOAD based on interpolation, is there any point? because I think this is what AFRMAP already is? someone correct me if I'm wrong.

is there any target timing advance? or is it what is logged is already the target timing advance based from current rpm/load on the timing map?
Reply
Old Oct 8, 2008 | 02:06 AM
  #2  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
The interpolation is the same as for AFR, all 3D maps are interpolated same way, sub_B16 does the job. I have not deciphered the subroutine but it is deciphered by mrfred as

((255-r6)*r5 + r6*r4)/255 -> r0

So it seems, its more of trilinear interpolation, assuming both octane maps are in concern and octane number is a weight factor.
http://en.wikipedia.org/wiki/Trilinear_interpolation

what is logged is already the target timing advance, but some corrections take place after/before interpolation like knock correction, lean spool etc.

ROM:00000B16
ROM:00000B16 ; =============== S U B R O U T I N E =======================================
ROM:00000B16
ROM:00000B16 ; Attributes: noreturn
ROM:00000B16
ROM:00000B16 Interpolate_3D_Map: ; CODE XREF: sub_105BE+1A6p
ROM:00000B16 ; sub_141C8+7Ap ...
ROM:00000B16 mov.l r10, @-r15
ROM:00000B18 extu.w r4, r4
ROM:00000B1A extu.w r5, r5
ROM:00000B1C extu.w r6, r6
ROM:00000B1E mov.l @(h'100,pc), r10 ; [00000C20] = h'FF
ROM:00000B20 cmp/hi r10, r6
ROM:00000B22 bf loc_B26
ROM:00000B24 mov r10, r6
ROM:00000B26
ROM:00000B26 loc_B26: ; CODE XREF: Interpolate_3D_Map+Cj
ROM:00000B26 mov r10, r0
ROM:00000B28 sub r6, r0
ROM:00000B2A mulu r5, r0
ROM:00000B2C sts macl, r0
ROM:00000B2E mulu r4, r6
ROM:00000B30 sts macl, r4
ROM:00000B32 add r4, r0
ROM:00000B34 shll16 r10
ROM:00000B36 cmp/hs r10, r0
ROM:00000B38 bf loc_B3E
ROM:00000B3A bra loc_B64
ROM:00000B3C mov.l @(h'C0,pc), r0 ; loc_C00
ROM:00000B3E ; ---------------------------------------------------------------------------
ROM:00000B3E
ROM:00000B3E loc_B3E: ; CODE XREF: Interpolate_3D_Map+22j
ROM:00000B3E div0u
ROM:00000B40 div1 r10, r0
ROM:00000B42 div1 r10, r0
ROM:00000B44 div1 r10, r0
ROM:00000B46 div1 r10, r0
ROM:00000B48 div1 r10, r0
ROM:00000B4A div1 r10, r0
ROM:00000B4C div1 r10, r0
ROM:00000B4E div1 r10, r0
ROM:00000B50 div1 r10, r0
ROM:00000B52 div1 r10, r0
ROM:00000B54 div1 r10, r0
ROM:00000B56 div1 r10, r0
ROM:00000B58 div1 r10, r0
ROM:00000B5A div1 r10, r0
ROM:00000B5C div1 r10, r0
ROM:00000B5E div1 r10, r0
ROM:00000B60 rotcl r0
ROM:00000B62 extu.w r0, r0
ROM:00000B64
ROM:00000B64 loc_B64: ; CODE XREF: Interpolate_3D_Map+24j
ROM:00000B64 rts
ROM:00000B66 mov.l @r15+, r10
ROM:00000B66 ; End of function Interpolate_3D_Map

Last edited by acamus; Oct 8, 2008 at 08:49 AM.
Reply
Old Oct 8, 2008 | 12:21 PM
  #3  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
thanks, what does r6 r5 r4 r0 refer to?
Reply
Old Oct 8, 2008 | 01:34 PM
  #4  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
not everyone logs the Octane field so if its not logged I will assume octane 100 when interpolating in the MapTracer.
Reply
Old Oct 8, 2008 | 01:36 PM
  #5  
kkarim's Avatar
Evolving Member
iTrader: (2)
 
Joined: Sep 2007
Posts: 214
Likes: 0
From: Florida / Lebanon
will 2.7 fix the issue of vista 64 bit logging zeroes with 2.5?
Reply
Old Oct 8, 2008 | 02:16 PM
  #6  
mrfred's Avatar
EvoM Guru
iTrader: (50)
 
Joined: Mar 2006
Posts: 9,675
Likes: 132
From: Tri-Cities, WA // Portland, OR
((255-r6)*r5 + r6*r4)/255 -> r0 is the routine that does the linear interpolation between high octane and low octane maps. I haven't gone throught the table value interpolation routine yet.
Reply
Old Oct 9, 2008 | 01:08 AM
  #7  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
I could not write it in plain text, thus the picture
Attached Thumbnails EvoScan v2.7 MapTracer Bilinear Interpolation-3d-interpolation.bmp  
Reply
Old Oct 11, 2008 | 02:55 AM
  #8  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
awesome work acamus, thanks.
Reply
Old Oct 12, 2008 | 08:46 AM
  #9  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Originally Posted by evo4mad
awesome work acamus, thanks.
Will you include me into beta test team?
Or do I have to evaluate EvoScan with 1 bit modification?
Reply
Old Oct 12, 2008 | 10:26 AM
  #10  
JoeBee's Avatar
Evolving Member
 
Joined: Sep 2006
Posts: 152
Likes: 0
From: Germany
... and some informations how to initialize logging of ACD/AYC.
Reply
Old Oct 13, 2008 | 07:32 AM
  #11  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
Originally Posted by acamus
Will you include me into beta test team?
Or do I have to evaluate EvoScan with 1 bit modification?
Sure thing, do you have msn messenger?

Hopefully I will have the interpolation finished this week. I like to know how far off the ecu is when trying to match my target map. the ecu map is good, but it just doesn't show all the in-between values that you are always looking for.
Reply
Old Oct 13, 2008 | 07:33 AM
  #12  
evo4mad's Avatar
Thread Starter
Former Sponsor
iTrader: (4)
 
Joined: Dec 2003
Posts: 723
Likes: 1
From: TGA, New Zealand
I think its ok on evo7-9 logging because you can use AFRMap and TimingAdv to see the targets as per the ecu, but I know some model vehicles don't provide this.
Reply
Old Oct 13, 2008 | 10:56 AM
  #13  
fixem2's Avatar
Evolved Member
iTrader: (30)
 
Joined: Dec 2003
Posts: 929
Likes: 0
From: USA
evo4mad, how are you initilizing the logging of ACD? I ask this because it may help others determine how to read the ROM in the ACD controller. This thread discusses the topic :https://www.evolutionm.net/forums/sh...49#post6224149
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ast
ECU Flash
578
Aug 19, 2025 07:09 PM
4b11slayer
ECU Flash
2
Nov 5, 2016 11:11 AM
jeffbeagley
ECU Flash
10
Jan 15, 2015 06:38 PM
nightwalker
ECU Flash
6
Apr 20, 2008 07:01 PM
matt55
ECU Flash
4
Oct 1, 2006 09:39 PM


Thread Tools
Search this Thread

All times are GMT -7. The time now is 10:57 AM.