Author Topic: Interpolation  (Read 5444 times)

Offline z0tya

  • Sr. Member
  • ****
  • Posts: 252
  • BHP: 11
Interpolation
« on: January 18, 2010, 08:45:23 pm »
Has anybody info about vems VE, Spark, Lambdatarget map interpolation?
What cells are involved, what weight, and what is happen at the map edges?

THx

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: Interpolation
« Reply #1 on: January 19, 2010, 05:07:11 am »
Not sure what happens at map edges - I try not to go there!  (I suspect it simply "rails" to the last cell)

The interpolation is based on linear bivariate.  So it takes the 4 corner points for the "cell" you're in and weights them based on the distance from each corner.  You'll probably find a standard algorithm & explanation on wikipedia.

Offline z0tya

  • Sr. Member
  • ****
  • Posts: 252
  • BHP: 11
Re: Interpolation
« Reply #2 on: January 19, 2010, 02:28:21 pm »
Thx!

So no more than 4 points..

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: Interpolation
« Reply #3 on: January 19, 2010, 03:28:13 pm »
Personally I wouldn´t want more then 4 points.
Especially if the engine has quick changes in VE

Offline mattias

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1075
  • BHP: 41
    • Sävar Turbo Site
Re: Interpolation
« Reply #4 on: January 19, 2010, 08:07:30 pm »
Only 4 points yes. It will rail to the edges of the map if exceeding the bounds with one exception for ignition :
The cranking advance will interpolate from the cranking threshold rpm up to the first rpm bin in the ignition table. I found out the hard way that this was the normal and actually pretty ok behaviour.