Notices
ECU Flash

EvoScan v2.7 MapTracer Bilinear Interpolation

Thread Tools
 
Search this Thread
 
Old Oct 8, 2008, 01:43 AM
  #1  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
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?
Old Oct 8, 2008, 02:06 AM
  #2  
Evolved Member
 
acamus's Avatar
 
Join Date: Mar 2008
Location: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Posts: 730
Likes: 0
Received 2 Likes on 2 Posts
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.
Old Oct 8, 2008, 12:21 PM
  #3  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
thanks, what does r6 r5 r4 r0 refer to?
Old Oct 8, 2008, 01:34 PM
  #4  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
not everyone logs the Octane field so if its not logged I will assume octane 100 when interpolating in the MapTracer.
Old Oct 8, 2008, 01:36 PM
  #5  
Evolving Member
iTrader: (2)
 
kkarim's Avatar
 
Join Date: Sep 2007
Location: Florida / Lebanon
Posts: 214
Likes: 0
Received 0 Likes on 0 Posts
will 2.7 fix the issue of vista 64 bit logging zeroes with 2.5?
Old Oct 8, 2008, 02:16 PM
  #6  
EvoM Guru
iTrader: (50)
 
mrfred's Avatar
 
Join Date: Mar 2006
Location: Tri-Cities, WA // Portland, OR
Posts: 9,675
Received 128 Likes on 96 Posts
((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.
Old Oct 9, 2008, 01:08 AM
  #7  
Evolved Member
 
acamus's Avatar
 
Join Date: Mar 2008
Location: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Posts: 730
Likes: 0
Received 2 Likes on 2 Posts
I could not write it in plain text, thus the picture
Attached Thumbnails EvoScan v2.7 MapTracer Bilinear Interpolation-3d-interpolation.bmp  
Old Oct 11, 2008, 02:55 AM
  #8  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
awesome work acamus, thanks.
Old Oct 12, 2008, 08:46 AM
  #9  
Evolved Member
 
acamus's Avatar
 
Join Date: Mar 2008
Location: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Posts: 730
Likes: 0
Received 2 Likes on 2 Posts
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?
Old Oct 12, 2008, 10:26 AM
  #10  
Evolving Member
 
JoeBee's Avatar
 
Join Date: Sep 2006
Location: Germany
Posts: 152
Likes: 0
Received 0 Likes on 0 Posts
... and some informations how to initialize logging of ACD/AYC.
Old Oct 13, 2008, 07:32 AM
  #11  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
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.
Old Oct 13, 2008, 07:33 AM
  #12  
Former Sponsor
Thread Starter
iTrader: (4)
 
evo4mad's Avatar
 
Join Date: Dec 2003
Location: TGA, New Zealand
Posts: 723
Likes: 0
Received 1 Like on 1 Post
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.
Old Oct 13, 2008, 10:56 AM
  #13  
Evolved Member
iTrader: (30)
 
fixem2's Avatar
 
Join Date: Dec 2003
Location: USA
Posts: 929
Likes: 0
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ast
ECU Flash
567
Dec 15, 2023 12:55 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



Quick Reply: EvoScan v2.7 MapTracer Bilinear Interpolation



All times are GMT -7. The time now is 07:56 PM.