Results 1 to 3 of 3

Thread: table lookup

  1. #1
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,045

    table lookup

    low level question to help me with a development project.

    for table lookups, the old ecms i'm used to dealing with usually use linear interpolation between cells. so in an imaginary table with 4 columns like 10,20,30,40 and a set of values like 2,3,4,5, a lookup of 10 would give you 2, but a lookup of 35 would give you 4.5.

    so functionally if you have a pair of columns x0,x1 and a pair of values y0,y1 you could do something like y0+((x-x0)/(x1-x0))*(y1-y0) to find the value of the column position x

    and in a table with both columns and rows, it's just bilinear, so you'd do a lookup against row and column and average it.

    my question is do modern ECMs do any more smooth lookups such as cubic/bicubic splines for anything? i have used bicubic spline functions for 3d lookup where my table is low resolution and i know the output should be smooth, so i am wondering if this was used on any of the ECMs we work with.

  2. #2
    Fuel Injected!
    Join Date
    Mar 2013
    Posts
    1,475
    I would say it depends on the processor being used.
    68332 motorola[vpw gm stuff] have built in table look up commands[opcodes], and cpu does in its own.

    newer stuff with ppc processor uses old style tablelookup, not sure about precision and methods used but maf table on e38+ is really short, so the lookup should do really well. codes for lookup can be reversed to c++ code and figured if needed.

    I think the extra precision comes from 16 and 32 bit values used, along with some float point maths.

    What cpu your project have.

  3. #3
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,045
    What cpu your project have.
    any cpu...its for a universal tool i'm writing in my spare time, that besides log analysis just does some useful things with tables, one of its functions is table interpolation.

    probably really handy for 'old to new' ecm swaps, but also in the subaru tuning world that i play in, you can freely modify the table columns and rows of any table to modify its resolution, so you are constantly re-shaping tables

    it's not flawless but saves a lot of time for me

    linear interpolation between two tables can create flaws, see below example pic.. in reality it's close enough for an engine tuning baseline.

    maf table on e38+ is really short, so the lookup should do really well.
    then we can probably assume it does use some kind of method involving curvature like a spline since mafs are just a curve

    68332 motorola[vpw gm stuff] have built in table look up commands, and cpu does in its own.
    i had no idea, i will have to look into that
    Attached Images Attached Images

Similar Threads

  1. BCC LOOKUP, An Extensive Reference
    By ddaxe in forum GM EFI Systems
    Replies: 5
    Last Post: 01-25-2019, 06:22 PM
  2. Replies: 2
    Last Post: 06-11-2014, 02:56 PM
  3. can MAT inverse Lookup table be data traced in 7730 ecm $8D
    By MSM Vette in forum TunerPro Tuning Talk
    Replies: 0
    Last Post: 06-04-2014, 10:10 PM
  4. TunerPro ADX and XDF lookup! Find your files here!
    By EagleMark in forum TunerPro Tuning Talk
    Replies: 0
    Last Post: 01-25-2012, 01:11 AM
  5. TunerPro XDF and ADX lookup Project
    By EagleMark in forum TunerPro Tuning Talk
    Replies: 15
    Last Post: 01-12-2012, 07:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •